# 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>
# 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
# 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.