diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-05-13 21:00:42 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-05-13 21:00:42 +0000 |
commit | 0cfaa83e80fd3bd46177c6b423c6ce5e643950ad (patch) | |
tree | 0538d97eca5071a34323c69056e3693b64f82802 /eclass | |
parent | Remove duplict file in Makefile.am; bug #267926 (diff) | |
download | gentoo-2-0cfaa83e80fd3bd46177c6b423c6ce5e643950ad.tar.gz gentoo-2-0cfaa83e80fd3bd46177c6b423c6ce5e643950ad.tar.bz2 gentoo-2-0cfaa83e80fd3bd46177c6b423c6ce5e643950ad.zip |
Add export for kdedir when not working in kde-base.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde-functions.eclass | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/eclass/kde-functions.eclass b/eclass/kde-functions.eclass index 37a12408c5bf..30998003da89 100644 --- a/eclass/kde-functions.eclass +++ b/eclass/kde-functions.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.172 2009/05/12 12:55:46 tampakrap Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.173 2009/05/13 21:00:42 scarabeus Exp $ # @ECLASS: kde-functions.eclass # @MAINTAINER: @@ -717,11 +717,15 @@ set-kdedir() { if [[ -n "$KDEPREFIX" ]]; then export PREFIX="$KDEPREFIX" else - case $KDEMAJORVER.$KDEMINORVER in - 3*) export PREFIX="/usr/kde/3.5";; - 5.0) export PREFIX="/usr/kde/svn";; - *) die "failed to set PREFIX";; - esac + if [[ -z "$KDEBASE" ]]; then + PREFIX="/usr/kde/3.5" + else + case $KDEMAJORVER.$KDEMINORVER in + 3*) export PREFIX="/usr/kde/3.5";; + 5.0) export PREFIX="/usr/kde/svn";; + *) die "failed to set PREFIX";; + esac + fi fi # kdelibs location |