diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-01-04 21:55:47 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-01-04 21:55:47 +0000 |
commit | ac4b9d2cad087a4ba672f499cf914b5b432f41da (patch) | |
tree | ed08424bdd45a99977c81a36ac8869e3ddec3bd5 /eclass | |
parent | Removed a problematic doctest so that src_test will work (diff) | |
download | gentoo-2-ac4b9d2cad087a4ba672f499cf914b5b432f41da.tar.gz gentoo-2-ac4b9d2cad087a4ba672f499cf914b5b432f41da.tar.bz2 gentoo-2-ac4b9d2cad087a4ba672f499cf914b5b432f41da.zip |
Don't add kdeenablefinal useflag to every package, but just for the ones in kde-base. Enable or disable final support depending on presence of kdeenablefinal in $IUSE and it being enabled or not. Does not break old packages, but will probably make --newuse a bit funny.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde.eclass | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass index 6e96a6ab08b8..effd325f8fb1 100644 --- a/eclass/kde.eclass +++ b/eclass/kde.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.140 2005/12/17 01:51:01 carlo Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.141 2006/01/04 21:55:47 flameeyes Exp $ # # Author Dan Armak <danarmak@gentoo.org> # @@ -10,7 +10,11 @@ inherit base eutils kde-functions flag-o-matic DESCRIPTION="Based on the $ECLASS eclass" HOMEPAGE="http://www.kde.org/" -IUSE="debug arts xinerama kdeenablefinal" +IUSE="debug arts xinerama" + +if [[ ${CATEGORY} == "kde-base" ]]; then + IUSE="${IUSE} kdeenablefinal" +fi DEPEND=">=sys-devel/automake-1.7.0 sys-devel/autoconf @@ -102,10 +106,8 @@ kde_src_compile() { else myconf="$myconf --disable-debug --without-debug" fi - if useq kdeenablefinal && [ -n "$KDEBASE" ]; then - myconf="$myconf --enable-final" - else - myconf="$myconf --disable-final" + if hasq kdeenablefinal ${IUSE}; then + myconf="$myconf $(use_enable kdeenablefinal final)" fi [ -z "$KDEBASE" ] && myconf="$myconf $(use_with arts)" [ -n "$KDEBASE" -a "$KDEMINORVER" -ge 3 ] && myconf="$myconf $(use_with arts)" |