summaryrefslogtreecommitdiff
path: root/eclass/kde4-base.eclass
diff options
context:
space:
mode:
authorMaciej Mrozowski (reavertm) <reavertm@poczta.fm>2009-08-31 00:54:51 +0200
committerMaciej Mrozowski (reavertm) <reavertm@poczta.fm>2009-08-31 00:54:51 +0200
commit5ba420f170df57e2690172e99b6cfc030aa3adc8 (patch)
tree116433ead1c8fe5606500d963404c0700b7aadb9 /eclass/kde4-base.eclass
parent46ad0f1e4d1b147694f5cae6b3f2ca7642e9c706 (diff)
downloadkde-5ba420f170df57e2690172e99b6cfc030aa3adc8.tar.gz
kde-5ba420f170df57e2690172e99b6cfc030aa3adc8.tar.bz2
kde-5ba420f170df57e2690172e99b6cfc030aa3adc8.zip
[eclass] Pull libknotificationitem when building against >=kdelibs:4.3
Also: - moved to KDE_MINIMAL=4.3 being the default - removed kde-4 SLOT - added function for SLOT comparison (beware! it currently relies on string compatison instead of order in KDE_SLOTS, KDE_LIVE_SLOTS - still it's the fastest one - and should be, it's in global scope) - a little cleanup in kde4-functions 4.1 SLOT support can be removed when tree is fixed
Diffstat (limited to 'eclass/kde4-base.eclass')
-rw-r--r--eclass/kde4-base.eclass17
1 files changed, 6 insertions, 11 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass
index f8ddf46fa0c..af5bd007493 100644
--- a/eclass/kde4-base.eclass
+++ b/eclass/kde4-base.eclass
@@ -74,13 +74,6 @@ CPPUNIT_REQUIRED="${CPPUNIT_REQUIRED:-never}"
# Note that for kde-base packages this variable is fixed to 'always'.
KDE_REQUIRED="${KDE_REQUIRED:-always}"
-# @ECLASS-VARIABLE: LIBKNOTIFICATIONITEM_REQUIRED
-# @DESCRIPTION:
-# Is libknotificationitem required? Possible values are 'always, 'never'.
-# Set this before inheriting any KDE eclasses. Defauls to 'never'.
-# Note that it only applies when KDE_REQUIRED is 'always' or 'optional' and enabled.
-LIBKNOTIFICATIONITEM_REQUIRED="${LIBKNOTIFICATIONITEM_REQUIRED:-never}"
-
# Verify KDE_MINIMAL (display QA notice in pkg_setup, still we need to fix it here)
if [[ -n ${KDE_MINIMAL} ]]; then
for slot in ${KDE_SLOTS[@]} ${KDE_LIVE_SLOTS[@]}; do
@@ -95,11 +88,11 @@ fi
# @ECLASS-VARIABLE: KDE_MINIMAL
# @DESCRIPTION:
# This variable is used when KDE_REQUIRED is set, to specify required KDE minimal
-# version for apps to work. Currently defaults to 4.2
+# version for apps to work. Currently defaults to 4.3
# One may override this variable to raise version requirements.
# For possible values look at KDE_SLOTS and KDE_LIVE_SLOTS variables.
# Note that it is fixed to ${SLOT} for kde-base packages.
-KDE_MINIMAL="${KDE_MINIMAL:-4.2}"
+KDE_MINIMAL="${KDE_MINIMAL:-4.3}"
# Fallback behaviour (for now)
# TODO Remove when tree is clean
@@ -200,6 +193,7 @@ case ${KDEBASE} in
9999*) SLOT="live" ;; # regular live
*) die "Unsupported ${PV}" ;;
esac
+ KDE_MINIMAL="${SLOT}"
_kdedir="${SLOT}"
_pv="-${PV}:${SLOT}"
_pvn="-${PV}"
@@ -236,12 +230,13 @@ kdecommondepend="
)
"
if [[ ${PN} != kdelibs ]]; then
+ slot_is_at_least 4.3 ${KDE_MINIMAL} && local libknotificationitem_required=1
if [[ ${KDEBASE} = kde-base ]]; then
kdecommondepend+="
kdeprefix? ( >=kde-base/kdelibs${_pv}[kdeprefix] )
!kdeprefix? ( >=kde-base/kdelibs${_pvn}[-kdeprefix] )
"
- [[ ${LIBKNOTIFICATIONITEM_REQUIRED} = always ]] && \
+ [[ -n ${libknotificationitem_required} ]] && \
kdecommondepend+="
kdeprefix? ( >=kde-base/libknotificationitem${_pv}[kdeprefix] )
!kdeprefix? ( >=kde-base/libknotificationitem${_pvn}[-kdeprefix] )
@@ -250,7 +245,7 @@ if [[ ${PN} != kdelibs ]]; then
kdecommondepend+="
>=kde-base/kdelibs${_pv}
"
- [[ ${LIBKNOTIFICATIONITEM_REQUIRED} = always ]] && \
+ [[ -n ${libknotificationitem_required} ]] && \
kdecommondepend+="
>=kde-base/libknotificationitem${_pv}
"