qt5-build.eclass: define a subslot for 5.6 and later
authorDavide Pesavento <pesa@gentoo.org>
Tue, 12 Apr 2016 22:49:23 +0000 (00:49 +0200)
committerDavide Pesavento <pesa@gentoo.org>
Tue, 12 Apr 2016 23:18:16 +0000 (01:18 +0200)
*Only* intended for packages using Qt private APIs.

Gentoo-Bug: 554190

eclass/qt5-build.eclass

index 368af3766ae94a0e33f9c0706c8dbaf1f9774e62..5ea0ce1dd8b2d2fcaef8be86f348dc238ee88796 100644 (file)
@@ -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)