summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMaciej Mrozowski <reavertm@gentoo.org>2010-09-13 21:47:37 +0000
committerMaciej Mrozowski <reavertm@gentoo.org>2010-09-13 21:47:37 +0000
commitdccbb528b4c41fd28dfa2c6729a1474711a1a34a (patch)
tree49483e567f42f97f7bb26cc2193d380bbdbaa95f /eclass
parentRemove handbook USE flag, depend on kdelibs[handbook] (handbook css styleshee... (diff)
downloadgentoo-2-dccbb528b4c41fd28dfa2c6729a1474711a1a34a.tar.gz
gentoo-2-dccbb528b4c41fd28dfa2c6729a1474711a1a34a.tar.bz2
gentoo-2-dccbb528b4c41fd28dfa2c6729a1474711a1a34a.zip
Sync from overlay: use add_kdebase_dep in eclass, depend on perl everywhere (kconfig update needs it at runtime), update handbook handling (just pull khelpcenter)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde4-base.eclass71
1 files changed, 27 insertions, 44 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass
index 0c08181aeb9b..abb66212a282 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.72 2010/09/11 05:18:35 reavertm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.73 2010/09/13 21:47:37 reavertm Exp $
# @ECLASS: kde4-base.eclass
# @MAINTAINER:
@@ -273,6 +273,7 @@ unset cppuintdepend
# KDE dependencies
# Qt accessibility classes are needed in various places, bug 325461
kdecommondepend="
+ dev-lang/perl
>=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl]
>=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus]
>=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde]
@@ -286,32 +287,24 @@ kdecommondepend="
x11-libs/libXxf86vm
)
"
-#perl is not needed on host (+ difficult crosscompilation)
-tc-is-cross-compiler || kdecommondepend+=" dev-lang/perl"
if [[ ${PN} != kdelibs ]]; then
- if [[ ${KDEBASE} = kde-base ]]; then
- kdecommondepend+=" $(add_kdebase_dep kdelibs)"
- else
- kdecommondepend+="
- >=kde-base/kdelibs-${KDE_MINIMAL}
- "
- if [[ ${KDEBASE} = kdevelop ]]; then
- if [[ ${PN} != kdevplatform ]]; then
- # @ECLASS-VARIABLE: KDEVPLATFORM_REQUIRED
- # @DESCRIPTION:
- # Specifies whether kdevplatform is required. Possible values are 'always' (default) and 'never'.
- # Applies to KDEBASE=kdevelop only.
- KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}"
- case ${KDEVPLATFORM_REQUIRED} in
- always)
- kdecommondepend+="
- >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION}
- "
- ;;
- *) ;;
- esac
- fi
+ kdecommondepend+=" $(add_kdebase_dep kdelibs)"
+ if [[ ${KDEBASE} = kdevelop ]]; then
+ if [[ ${PN} != kdevplatform ]]; then
+ # @ECLASS-VARIABLE: KDEVPLATFORM_REQUIRED
+ # @DESCRIPTION:
+ # Specifies whether kdevplatform is required. Possible values are 'always' (default) and 'never'.
+ # Applies to KDEBASE=kdevelop only.
+ KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}"
+ case ${KDEVPLATFORM_REQUIRED} in
+ always)
+ kdecommondepend+="
+ >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION}
+ "
+ ;;
+ *) ;;
+ esac
fi
fi
fi
@@ -323,6 +316,7 @@ kdedepend="
x11-proto/xf86vidmodeproto
)
"
+kderdepend=""
# Handbook handling - dependencies
if [[ -n ${KDE_HANDBOOK} ]]; then
@@ -332,41 +326,30 @@ if [[ -n ${KDE_HANDBOOK} ]]; then
app-text/docbook-xsl-stylesheets
)
"
- if [[ ${PN} != kdelibs ]]; then
- if [[ ${KDEBASE} = kde-base ]]; then
- PDEPEND+=" handbook? ( $(add_kdebase_dep kdelibs 'handbook') )"
- else
- PDEPEND+=" handbook? ( >=kde-base/kdelibs-${KDE_MINIMAL}[handbook] )"
- fi
- elif [[ ${PN} != khelpcenter ]]; then
- if [[ ${KDEBASE} = kde-base ]]; then
- PDEPEND+=" handbook? ( $(add_kdebase_dep khelpcenter 'handbook') )"
- else
- PDEPEND+=" handbook? ( >=kde-base/khelpcenter-${KDE_MINIMAL}[handbook] )"
- fi
- fi
+ [[ ${PN} != kdelibs ]] && kderdepend+=" handbook? ( $(add_kdebase_dep khelpcenter) )"
fi
case ${KDE_REQUIRED} in
always)
IUSE+=" aqua"
- COMMONDEPEND+=" ${kdecommondepend}"
- DEPEND+=" ${kdedepend}"
+ [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}"
+ [[ -n ${kdedepend} ]] && DEPEND+=" ${kdedepend}"
+ [[ -n ${kderdepend} ]] && RDEPEND+=" ${kderdepend}"
;;
optional)
IUSE+=" aqua kde"
- COMMONDEPEND+=" kde? ( ${kdecommondepend} )"
- DEPEND+=" kde? ( ${kdedepend} )"
+ [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" kde? ( ${kdecommondepend} )"
+ [[ -n ${kdedepend} ]] && DEPEND+=" kde? ( ${kdedepend} )"
+ [[ -n ${kderdepend} ]] && RDEPEND+=" kde? ( ${kderdepend} )"
;;
*) ;;
esac
-unset kdecommondepend kdedepend
+unset kdecommondepend kdedepend kderdepend
debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}"
debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}"
debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}"
-debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: PDEPEND is ${PDEPEND}"
# Accumulate dependencies set by this eclass
DEPEND+=" ${COMMONDEPEND}"