diff options
author | Dan Armak <danarmak@gentoo.org> | 2005-01-15 14:52:10 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2005-01-15 14:52:10 +0000 |
commit | c2a9e32130ef91487b55b7b9e3d1a7f160a839d3 (patch) | |
tree | 7b4aebf0b8ad0a47a2d90b5395158cf790ab6d75 /eclass | |
parent | Added ~ppc64 to KEYWORDS (Manifest recommit) (diff) | |
download | gentoo-2-c2a9e32130ef91487b55b7b9e3d1a7f160a839d3.tar.gz gentoo-2-c2a9e32130ef91487b55b7b9e3d1a7f160a839d3.tar.bz2 gentoo-2-c2a9e32130ef91487b55b7b9e3d1a7f160a839d3.zip |
...and then I found out about $CATEGORY. i knew something like that should have existed :-)
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde-functions.eclass | 16 | ||||
-rw-r--r-- | eclass/kde-meta.eclass | 4 |
2 files changed, 4 insertions, 16 deletions
diff --git a/eclass/kde-functions.eclass b/eclass/kde-functions.eclass index 3001255517e8..f55e77c433f3 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.84 2005/01/15 11:48:04 danarmak Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.85 2005/01/15 14:52:10 danarmak Exp $ # # Author Dan Armak <danarmak@gentoo.org> # @@ -386,18 +386,6 @@ get-child-packages () { done } -# Because I've no idea how to do it properly (fex how to get the category of the current ebuild), -# this is a centralized function, and can be fixed centrally -get-current-package () { - if [ -n "$KDEBASE" ]; then - echo -n kde-base/$PN - elif [ "$KMNAME" == "koffice" ]; then - echo -n app-office/$PN - else - die "get-current-parent-package() called from unrecognized ebuild $PN, please bugreport" - fi -} - # convinience functions for requesting autotools versions need-automake() { @@ -644,7 +632,7 @@ deprange-dual() { for PACKAGE in $@; do PARENT=$(get-parent-package $PACKAGE) NEWDEP="$NEWDEP || ( $(deprange-list $MIN $MAX $PACKAGE)" - if [ "$PARENT" != "$(get-parent-package $(get-current-package))" ]; then + if [ "$PARENT" != "$(get-parent-package $CATEGORY/$PN)" ]; then NEWDEP="$NEWDEP $(deprange-list $MIN $MAX $PARENT)" fi NEWDEP="$NEWDEP )" diff --git a/eclass/kde-meta.eclass b/eclass/kde-meta.eclass index 778cdf4f9530..71d8719cef01 100644 --- a/eclass/kde-meta.eclass +++ b/eclass/kde-meta.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-meta.eclass,v 1.12 2005/01/14 22:44:26 danarmak Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-meta.eclass,v 1.13 2005/01/15 14:52:10 danarmak Exp $ # # Author Dan Armak <danarmak@gentoo.org> # Simone Gotti <simone.gotti@email.it> @@ -107,7 +107,7 @@ DEPEND="$DEPEND kdexdeltas? ( dev-util/xdelta )" # Add a blocking dep on the package we're derived from # This is ugly, but I don't know how to get at the category of an ebuild -for x in $(deprange-list $SLOT.0_alpha1 $SLOT.10 $(get-parent-package $(get-current-package))); do +for x in $(deprange-list $SLOT.0_alpha1 $SLOT.10 $(get-parent-package $CATEGORY/$PN)); do DEPEND="$DEPEND !$x" RDEPEND="$RDEPEND !$x" done |