summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJonathan Callen <abcd@gentoo.org>2011-06-06 18:42:55 +0000
committerJonathan Callen <abcd@gentoo.org>2011-06-06 18:42:55 +0000
commit8303dcb0eb9e370b2216ff56998d55e359ffb4dd (patch)
tree76665adcbf1d41f95d0996560561ab9eafefe391 /eclass
parentFixed metadata.xml (diff)
downloadgentoo-2-8303dcb0eb9e370b2216ff56998d55e359ffb4dd.tar.gz
gentoo-2-8303dcb0eb9e370b2216ff56998d55e359ffb4dd.tar.bz2
gentoo-2-8303dcb0eb9e370b2216ff56998d55e359ffb4dd.zip
Goodbye kdeprefix (part 1 -- die on +kdeprefix)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde4-base.eclass16
1 files changed, 15 insertions, 1 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass
index 808e7bf3a0c3..6779d41a0c4b 100644
--- a/eclass/kde4-base.eclass
+++ b/eclass/kde4-base.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.94 2011/06/06 17:51:26 abcd Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.95 2011/06/06 18:42:55 abcd Exp $
# @ECLASS: kde4-base.eclass
# @MAINTAINER:
@@ -620,6 +620,20 @@ debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SRC_URI is ${SRC_URI}"
kde4-base_pkg_setup() {
debug-print-function ${FUNCNAME} "$@"
+ if has kdeprefix ${IUSE//+} && use kdeprefix; then
+ eerror "Sorry, kdeprefix support has been removed."
+ eerror "Please remove kdeprefix from your USE variable."
+ die "kdeprefix support has been removed"
+ fi
+
+ if [[ ${CATEGORY}/${PN} != kde-base/kdelibs && ${CATEGORY}/${PN} != kde-base/kde-env ]] && \
+ { [[ ${KDE_REQUIRED} == always ]] || { [[ ${KDE_REQUIRED} == optional ]] && use kde; }; } && \
+ has_version kde-base/kdelibs[kdeprefix]; then
+ eerror "Sorry, kdeprefix support has been removed."
+ eerror "Please rebuild kdelibs without kdeprefix support."
+ die "kdeprefix support has been removed"
+ fi
+
# QA ebuilds
[[ -z ${KDE_MINIMAL_VALID} ]] && ewarn "QA Notice: ignoring invalid KDE_MINIMAL (defaulting to ${KDE_MINIMAL})."