diff options
author | Dan Armak <danarmak@gentoo.org> | 2005-02-03 15:38:03 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2005-02-03 15:38:03 +0000 |
commit | aca5b73e52bf85a6e4b9cdb8657640a1092912ca (patch) | |
tree | e60b84da03e87c6128961d95f080eba7275f5b86 /eclass/kde.eclass | |
parent | add global USE flag kdeenablefinal. Applies to all ebuilds in kde-base/ (othe... (diff) | |
download | gentoo-2-aca5b73e52bf85a6e4b9cdb8657640a1092912ca.tar.gz gentoo-2-aca5b73e52bf85a6e4b9cdb8657640a1092912ca.tar.bz2 gentoo-2-aca5b73e52bf85a6e4b9cdb8657640a1092912ca.zip |
add kdeenablefinal USE flag handling to enable/disable --enable-final configure flag (for KDEBASE ebuilds only). bug 14003.
Diffstat (limited to 'eclass/kde.eclass')
-rw-r--r-- | eclass/kde.eclass | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass index 54e31a92f3c3..f58d8b69d095 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.110 2005/01/29 13:42:43 danarmak Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.111 2005/02/03 15:38:03 danarmak Exp $ # # Author Dan Armak <danarmak@gentoo.org> # @@ -12,7 +12,7 @@ ECLASS=kde INHERITED="$INHERITED $ECLASS" DESCRIPTION="Based on the $ECLASS eclass" HOMEPAGE="http://www.kde.org/" -IUSE="${IUSE} debug arts xinerama" +IUSE="${IUSE} debug arts xinerama kdeenablefinal" DEPEND=">=sys-devel/automake-1.7.0 sys-devel/autoconf @@ -97,6 +97,11 @@ 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" + fi [ -z "$KDEBASE" ] && myconf="$myconf $(use_with arts)" [ -n "$KDEBASE" -a "$KDEMINORVER" -ge 3 ] && myconf="$myconf $(use_with arts)" debug-print "$FUNCNAME: myconf: set to ${myconf}" |