ecm.eclass: Set correct KFMIN default for kde-frameworks/*
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 15 Dec 2019 16:25:25 +0000 (17:25 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 15 Dec 2019 16:35:10 +0000 (17:35 +0100)
Closes: https://bugs.gentoo.org/703006
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
eclass/ecm.eclass

index 5d9cccff02c035cf5db40a9b2ce98f885e4765fe..ddfe92c1d0b9b9a3ec36a56a7209d44068fc22fa 100644 (file)
@@ -152,10 +152,15 @@ fi
 : ${ECM_TEST:=false}
 
 # @ECLASS-VARIABLE: KFMIN
+# @DEFAULT_UNSET
 # @DESCRIPTION:
-# Minimum version of Frameworks to require. The default value is not going to
-# be changed unless we also bump EAPI, which usually implies (rev-)bumping.
+# Minimum version of Frameworks to require. Default value for kde-frameworks
+# is ${PV} and 5.64.0 baseline for everything else. This is not going to be
+# changed unless we also bump EAPI, which usually implies (rev-)bumping.
 # Version will later be used to differentiate between KF5/Qt5 and KF6/Qt6.
+if [[ ${CATEGORY} = kde-frameworks ]]; then
+       : ${KFMIN:=${PV}}
+fi
 : ${KFMIN:=5.64.0}
 
 # @ECLASS-VARIABLE: KFSLOT