Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: eclass/
Date: Sat, 04 Oct 2014 19:16:23
Message-Id: 1412450102.35b90e43b516fe1624beb54d0c8f06e47dfb08be.kensington@gentoo
1 commit: 35b90e43b516fe1624beb54d0c8f06e47dfb08be
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 4 19:15:02 2014 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 4 19:15:02 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=35b90e43
7
8 [eclass] Introduce FRAMEWORKS_MINIMAL eclass variable.
9
10 Avoids manual duplication of values as well as permitting simplified control to
11 consumers.
12
13 ---
14 eclass/kde5-functions.eclass | 9 +++++++--
15 1 file changed, 7 insertions(+), 2 deletions(-)
16
17 diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
18 index 5b4b2cc..4bfc853 100644
19 --- a/eclass/kde5-functions.eclass
20 +++ b/eclass/kde5-functions.eclass
21 @@ -23,6 +23,11 @@ case ${EAPI} in
22 *) die "EAPI=${EAPI:-0} is not supported" ;;
23 esac
24
25 +# @ECLASS-VARIABLE: FRAMEWORKS_MINIMAL
26 +# @DESCRIPTION:
27 +# Minimal Qt version to require for the package.
28 +: ${FRAMEWORKS_MINIMAL:=5.2.0}
29 +
30 # @ECLASS-VARIABLE: KDEBASE
31 # @DESCRIPTION:
32 # This gets set to a non-zero value when a package is considered a kde or
33 @@ -107,10 +112,10 @@ add_frameworks_dep() {
34 elif [[ ${CATEGORY} = kde-base ]]; then
35 case $(get_kde_version) in
36 5.1) version=5.3.0 ;;
37 - *) version=5.2.0 ;;
38 + *) version=${FRAMEWORKS_MINIMAL} ;;
39 esac
40 elif [[ -z "${version}" ]] ; then
41 - version=5.2.0
42 + version=${FRAMEWORKS_MINIMAL}
43 fi
44
45 _add_kdecategory_dep kde-frameworks "${1}" "${2}" "${version}"