commit: cd04c5bd4629929907af1c4abc574b6cef99f249 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> AuthorDate: Sat Oct 4 19:01:39 2014 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Sat Oct 4 19:01:39 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=cd04c5bd
[eclass] Respect version parameter if it is passed. --- eclass/kde5-functions.eclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index 4d48d0b..bc5afd4 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