commit:     7b921d451e1c05c35e811eff4be93f423d8cb60b
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  2 15:17:51 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Jul  2 15:17:51 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=7b921d45

[eclass] Improve add_frameworks_dep minimum version handling.

Packages in kde-frameworks depending on other frameworks should require a
version equal or greater to their own. Packages in all other categories should
require some minimal version (like KDE_MINIMAL from KDE4).

This solves an issue where live Plasma 5 packages require live Frameworks
packages, when really a recent release works fine.

---
 eclass/kde5-functions.eclass | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
index d54e748..f9638bb 100644
--- a/eclass/kde5-functions.eclass
+++ b/eclass/kde5-functions.eclass
@@ -105,7 +105,15 @@ _add_kdecategory_dep() {
 add_frameworks_dep() {
        debug-print-function ${FUNCNAME} "$@"
 
-       _add_kdecategory_dep kde-frameworks "${1}" "${2}" "${3}"
+       local version=${3}
+
+       if [[ ${CATEGORY} = kde-frameworks ]]; then
+               version=${PV}
+       elif [[ -z "${version}" ]] ; then
+               version=4.100.0
+       fi
+
+       _add_kdecategory_dep kde-frameworks "${1}" "${2}" "${version}"
 }
 
 # @FUNCTION: add_kdebase_dep

Reply via email to