add a blocking dep to split packages on all relevant versions of the parent monolithi...
authorDan Armak <danarmak@gentoo.org>
Fri, 14 Jan 2005 22:44:26 +0000 (22:44 +0000)
committerDan Armak <danarmak@gentoo.org>
Fri, 14 Jan 2005 22:44:26 +0000 (22:44 +0000)
eclass/kde-meta.eclass

index 6f73ae830340a66917bbc0ef8e0b104a96e1f0d3..778cdf4f9530df275bbcf704c3ea0c1e9675bda7 100644 (file)
@@ -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.11 2005/01/14 11:18:58 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde-meta.eclass,v 1.12 2005/01/14 22:44:26 danarmak Exp $
 #
 # Author Dan Armak <danarmak@gentoo.org>
 # Simone Gotti <simone.gotti@email.it>
@@ -105,6 +105,13 @@ DEPEND="$DEPEND kdexdeltas? ( dev-util/xdelta )"
 
 # END adapted from kde-dist.eclass
 
+# 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
+       DEPEND="$DEPEND !$x"
+       RDEPEND="$RDEPEND !$x"
+done
+
 # Don't support prepackaged Makefiles with alpha/beta/rc version.
 # DISABLED - SEMIBROKEN --danarmak
 # case $myPV in
@@ -131,8 +138,6 @@ fi
 
 # TODO FIX ends
 
-# The following code adds support for broken-up kde-base-derived ebuilds, e.g. a separate
-# kmail ebuild that still uses the big kdepim tarball. KM is short for 'kde meta'.
 # Set the following variables in the ebuild. Only KMNAME must be set, the rest are optional.
 # A directory or file can be a path with any number of components (eg foo/bar/baz.h). 
 # Do not include the same item in more than one of KMMODULE, KMMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY, KMCOPYLIB.