diff options
author | Dan Armak <danarmak@gentoo.org> | 2005-01-14 13:45:35 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2005-01-14 13:45:35 +0000 |
commit | 9994abb70f8bf384a1a5d9a1dcbebadd617b714a (patch) | |
tree | 48f24865d37db0267479492d75b47fe915d0a3eb /eclass/kde-functions.eclass | |
parent | Back to amd64 instead of emul... (diff) | |
download | historical-9994abb70f8bf384a1a5d9a1dcbebadd617b714a.tar.gz historical-9994abb70f8bf384a1a5d9a1dcbebadd617b714a.tar.bz2 historical-9994abb70f8bf384a1a5d9a1dcbebadd617b714a.zip |
split deprange() into two functions: deprange() is a wrapper around deprange-list(), and the latter returns the package list without the || ( ... ) markers, which i'm going to use elsewhere
Diffstat (limited to 'eclass/kde-functions.eclass')
-rw-r--r-- | eclass/kde-functions.eclass | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/kde-functions.eclass b/eclass/kde-functions.eclass index 6c1b37c87518..3dc7180fe3d1 100644 --- a/eclass/kde-functions.eclass +++ b/eclass/kde-functions.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-functions.eclass,v 1.79 2005/01/13 16:56:11 greg_g Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.80 2005/01/14 13:45:35 danarmak Exp $ # # Author Dan Armak <danarmak@gentoo.org> # @@ -49,6 +49,11 @@ need-autoconf() { # Note that only the kde versioning scheme is supported - ie x.y, and we only iterate through y # (i.e. x can contain more . separators). deprange() { + echo -n "|| ( " + deprange-list $@ + echo -n " )" +} +deprange-list() { # Assign, parse params local MINVER=$1 @@ -154,7 +159,7 @@ deprange() { # then from lowest normal version to lowest suffix. # Cf. the blocks that initialize MAXALPHA, MINBETA etc above to understand why # the loops below work. - local NEWDEP="|| ( " + local NEWDEP="" local i # max version's allowed suffixes @@ -203,7 +208,6 @@ deprange() { done fi - NEWDEP="$NEWDEP ) " echo -n $NEWDEP done } @@ -254,7 +258,7 @@ need-kde() { # Also, split kde-base ebuilds are not updated with every KDE release, and so # can require support of different versions of kdelibs. # KM_DEPRANGE should contain 2nd and 3rd parameter to deprange: - # max and min KDE versions. E.g. KM_DEPRANGE="3.3.4 $PV". + # max and min KDE versions. E.g. KM_DEPRANGE="$PV $MAXKDEVER". if [ -n "$KM_DEPRANGE" ]; then DEPEND="$DEPEND $(deprange $KM_DEPRANGE kde-base/kdelibs)" RDEPEND="$RDEPEND $(deprange $KM_DEPRANGE kde-base/kdelibs)" |