diff options
author | Dan Armak <danarmak@gentoo.org> | 2002-08-26 09:49:54 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2002-08-26 09:49:54 +0000 |
commit | bebbcf3285392d23c1fe41c55650292502473c5e (patch) | |
tree | 3b603654b8bbdf2bc31f1a162745ef7cd967e76b /eclass/kde-functions.eclass | |
parent | Cleanups (diff) | |
download | gentoo-2-bebbcf3285392d23c1fe41c55650292502473c5e.tar.gz gentoo-2-bebbcf3285392d23c1fe41c55650292502473c5e.tar.bz2 gentoo-2-bebbcf3285392d23c1fe41c55650292502473c5e.zip |
a few minor fixes and the new kde-new-admin() support (preliminary, in testing but can't break anything unless an ebuild calls it explicitly so i'm committing it)
Diffstat (limited to 'eclass/kde-functions.eclass')
-rw-r--r-- | eclass/kde-functions.eclass | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/eclass/kde-functions.eclass b/eclass/kde-functions.eclass index c16626d2f5c1..c88ec5582d57 100644 --- a/eclass/kde-functions.eclass +++ b/eclass/kde-functions.eclass @@ -1,7 +1,7 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Dan Armak <danarmak@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.25 2002/08/18 23:54:59 danarmak Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.26 2002/08/26 09:49:54 danarmak Exp $ # This contains everything except things that modify ebuild variables and functions (e.g. $P, src_compile() etc.) ECLASS=kde-functions INHERITED="$INHERITED $ECLASS" @@ -206,9 +206,11 @@ need-qt() { debug-print-function $FUNCNAME $* QTVER="$1" + QT=qt + case $QTVER in - 2*) newdepend "=x11-libs/qt-2.3*" ;; - 3*) newdepend ">=x11-libs/qt-3" ;; + 2*) newdepend "=x11-libs/${QT}-2.3*" ;; + 3*) newdepend ">=x11-libs/${QT}-3" ;; *) echo "!!! error: $FUNCNAME() called with invalid parameter: \"$QTVER\", please report bug" && exit 1;; esac @@ -220,6 +222,7 @@ set-qtdir() { debug-print-function $FUNCNAME $* + # select 1st element in dot-separated string IFSBACKUP=$IFS IFS="." @@ -231,6 +234,7 @@ set-qtdir() { export QTDIR="/usr/qt/$QTMAJORVER" + } # returns minimal qt version needed for specified kde version @@ -315,6 +319,8 @@ kde_sandbox_patch() { # $2: flag to remove kde_remove_flag() { + debug-print-function $FUNCNAME $* + cd ${S}/${1} || die [ -n "$2" ] || die @@ -325,3 +331,11 @@ kde_remove_flag() { cd $OLDPWD } + + +# get new admin/ files +kde-new-admin() { + + SRC_URI="$SRC_URI mirror://gentoo/admin-new-20020826.tar.gz" + +} |