commit: 2fc0178a73b14b6872cb550c5c84b42080e0b7dd
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 20 18:29:51 2015 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Aug 20 18:29:51 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fc0178a
kde4-functions.eclass: improve dependency version handling when mixing KDE SC
and KDE Applications packages.
eclass/kde4-functions.eclass | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass
index f7a3bda..133fd26 100644
--- a/eclass/kde4-functions.eclass
+++ b/eclass/kde4-functions.eclass
@@ -292,10 +292,10 @@ add_kdeapps_dep() {
ver=${KDE_OVERRIDE_MINIMAL}
elif [[ ${KDEBASE} != kde-base ]]; then
ver=${KDE_MINIMAL}
- # if building stable-live version depend just on the raw KDE version
- # to allow merging packages against more stable basic stuff
- elif [[ ${PV} == *.9999 ]]; then
- ver=$(get_kde_version)
+ # if building kde-apps, live master or stable-live branch,
+ # use the final SC version since there are no further general releases.
+ elif [[ ${CATEGORY} == kde-apps || ${PV} == *9999 ]]; then
+ ver=4.14.3
else
ver=${PV}
fi
@@ -325,16 +325,15 @@ add_kdebase_dep() {
ver=${3}
elif [[ -n ${KDE_OVERRIDE_MINIMAL} ]]; then
ver=${KDE_OVERRIDE_MINIMAL}
- elif [[ -n ${KDE_MINIMAL} ]]; then
+ elif [[ ${KDEBASE} != kde-base ]]; then
ver=${KDE_MINIMAL}
- # if building live version depend on the final release since there will
- # not be any more major development. this solves dep errors as not all
- # packages have kde-base live versions now
-
- # depend on the last sane released version where the normal >=${PV} dep
- # is not possible
- elif [[ ${CATEGORY} == kde-apps || ${PV} == *9999 ]]; then
+ # if building live master or kde-apps, use the final SC version
+ # since there are no further general releases.
+ elif [[ ${CATEGORY} == kde-apps || ${PV} == 9999 ]]; then
ver=4.14.3
+ # if building a live version branch (eg. 4.11.49.9999) use the major
version
+ elif [[ ${PV} == *.9999 ]]; then
+ ver=$(get_kde_version)
else
ver=${PV}
fi