commit: 35b90e43b516fe1624beb54d0c8f06e47dfb08be Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> AuthorDate: Sat Oct 4 19:15:02 2014 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Sat Oct 4 19:15:02 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=35b90e43
[eclass] Introduce FRAMEWORKS_MINIMAL eclass variable. Avoids manual duplication of values as well as permitting simplified control to consumers. --- eclass/kde5-functions.eclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index 5b4b2cc..4bfc853 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -23,6 +23,11 @@ case ${EAPI} in *) die "EAPI=${EAPI:-0} is not supported" ;; esac +# @ECLASS-VARIABLE: FRAMEWORKS_MINIMAL +# @DESCRIPTION: +# Minimal Qt version to require for the package. +: ${FRAMEWORKS_MINIMAL:=5.2.0} + # @ECLASS-VARIABLE: KDEBASE # @DESCRIPTION: # This gets set to a non-zero value when a package is considered a kde or @@ -107,10 +112,10 @@ add_frameworks_dep() { elif [[ ${CATEGORY} = kde-base ]]; then case $(get_kde_version) in 5.1) version=5.3.0 ;; - *) version=5.2.0 ;; + *) version=${FRAMEWORKS_MINIMAL} ;; esac elif [[ -z "${version}" ]] ; then - version=5.2.0 + version=${FRAMEWORKS_MINIMAL} fi _add_kdecategory_dep kde-frameworks "${1}" "${2}" "${version}"