summaryrefslogtreecommitdiff
path: root/eclass/kde5-functions.eclass
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2014-10-05 06:01:39 +1100
committerMichael Palimaka <kensington@gentoo.org>2014-10-05 06:01:39 +1100
commitcd04c5bd4629929907af1c4abc574b6cef99f249 (patch)
treed8ceb970084cfdbf463a183fbbb7ecbaefd184a7 /eclass/kde5-functions.eclass
parenta2ed80892307423ca0dad27dd7845b016573f601 (diff)
downloadkde-cd04c5bd4629929907af1c4abc574b6cef99f249.tar.gz
kde-cd04c5bd4629929907af1c4abc574b6cef99f249.tar.bz2
kde-cd04c5bd4629929907af1c4abc574b6cef99f249.zip
[eclass] Respect version parameter if it is passed.
Diffstat (limited to 'eclass/kde5-functions.eclass')
-rw-r--r--eclass/kde5-functions.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
index 4d48d0b4b3e..bc5afd45d88 100644
--- a/eclass/kde5-functions.eclass
+++ b/eclass/kde5-functions.eclass
@@ -98,9 +98,11 @@ _add_kdecategory_dep() {
add_frameworks_dep() {
debug-print-function ${FUNCNAME} "$@"
- local version=${3}
+ local version
- if [[ ${CATEGORY} = kde-frameworks ]]; then
+ if [[ -n ${3} ]]; then
+ version=${3}
+ elif [[ ${CATEGORY} = kde-frameworks ]]; then
version=${PV}
elif [[ -z "${version}" ]] ; then
version=5.2.0