commit:     7453ab7b796d547dcaf603ba1abcbc6922855d41
Author:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 12 22:49:23 2016 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Tue Apr 12 23:18:16 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7453ab7b

qt5-build.eclass: define a subslot for 5.6 and later

*Only* intended for packages using Qt private APIs.

Gentoo-Bug: 554190

 eclass/qt5-build.eclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 368af37..5ea0ce1 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -57,7 +57,11 @@ LICENSE="|| ( LGPL-2.1 LGPL-3 ) FDL-1.3"
 QT5_MINOR_VERSION=$(get_version_component_range 2)
 readonly QT5_MINOR_VERSION
 
-SLOT="5"
+if [[ ${QT5_MINOR_VERSION} -ge 6 ]]; then
+       SLOT=5/$(get_version_component_range 1-2)
+else
+       SLOT=5
+fi
 
 case ${PV} in
        5.9999)

Reply via email to