Lines 10-16
Link Here
|
10 |
inherit base eutils kde-functions flag-o-matic libtool |
10 |
inherit base eutils kde-functions flag-o-matic libtool |
11 |
DESCRIPTION="Based on the $ECLASS eclass" |
11 |
DESCRIPTION="Based on the $ECLASS eclass" |
12 |
HOMEPAGE="http://www.kde.org/" |
12 |
HOMEPAGE="http://www.kde.org/" |
13 |
IUSE="debug arts xinerama" |
13 |
IUSE="debug xinerama" |
|
|
14 |
|
15 |
if [[ ${ARTS_IS_OPTIONAL} != "no" ]]; then |
16 |
IUSE="${IUSE} arts" |
17 |
fi |
14 |
|
18 |
|
15 |
if [[ ${CATEGORY} == "kde-base" ]]; then |
19 |
if [[ ${CATEGORY} == "kde-base" ]]; then |
16 |
IUSE="${IUSE} kdeenablefinal" |
20 |
IUSE="${IUSE} kdeenablefinal" |
Lines 41-53
Link Here
|
41 |
|
45 |
|
42 |
kde_pkg_setup() { |
46 |
kde_pkg_setup() { |
43 |
if [ "${PN}" != "arts" ] && [ "${PN}" != "kdelibs" ] ; then |
47 |
if [ "${PN}" != "arts" ] && [ "${PN}" != "kdelibs" ] ; then |
44 |
use arts && if ! built_with_use kde-base/kdelibs arts ; then |
48 |
if [ ${ARTS_IS_OPTIONAL} == 'no' ] || use arts ; then |
45 |
eerror "You are trying to compile ${CATEGORY}/${P} with the \"arts\" USE flag enabled." |
49 |
if ! built_with_use kde-base/kdelibs arts ; then |
46 |
eerror "However, $(best_version kde-base/kdelibs) was compiled with this flag disabled." |
50 |
eerror "You are trying to compile ${CATEGORY}/${P} with the \"arts\" USE flag enabled." |
47 |
eerror |
51 |
eerror "However, $(best_version kde-base/kdelibs) was compiled with this flag disabled." |
48 |
eerror "You must either disable this use flag, or recompile" |
52 |
eerror |
49 |
eerror "$(best_version kde-base/kdelibs) with this use flag enabled." |
53 |
eerror "You must either disable this use flag, or recompile" |
50 |
die |
54 |
eerror "$(best_version kde-base/kdelibs) with this use flag enabled." |
|
|
55 |
die |
56 |
fi |
51 |
fi |
57 |
fi |
52 |
fi |
58 |
fi |
53 |
|
59 |
|
Lines 155-162
Link Here
|
155 |
if hasq kdeenablefinal ${IUSE}; then |
161 |
if hasq kdeenablefinal ${IUSE}; then |
156 |
myconf="$myconf $(use_enable kdeenablefinal final)" |
162 |
myconf="$myconf $(use_enable kdeenablefinal final)" |
157 |
fi |
163 |
fi |
158 |
[[ -z "$KDEBASE" ]] && myconf="$myconf $(use_with arts)" |
164 |
if [[ ${ARTS_IS_OPTIONAL} == 'no' ]]; then |
159 |
[[ -n "$KDEBASE" && "$KDEMINORVER" -ge 3 ]] && myconf="$myconf $(use_with arts)" |
165 |
myconf="$myconf --with-alsa" |
|
|
166 |
else |
167 |
[[ -z "$KDEBASE" ]] && myconf="$myconf $(use_with arts)" |
168 |
[[ -n "$KDEBASE" && "$KDEMINORVER" -ge 3 ]] && myconf="$myconf $(use_with arts)" |
169 |
fi |
160 |
debug-print "$FUNCNAME: myconf: set to ${myconf}" |
170 |
debug-print "$FUNCNAME: myconf: set to ${myconf}" |
161 |
;; |
171 |
;; |
162 |
configure) |
172 |
configure) |