From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-818311-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 42E5E138D0D
	for <garchives@archives.gentoo.org>; Wed,  8 Jul 2015 00:06:33 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9C2F0E097D;
	Wed,  8 Jul 2015 00:06:27 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 3F562E097D
	for <gentoo-commits@lists.gentoo.org>; Wed,  8 Jul 2015 00:06:27 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 3952D340FAF
	for <gentoo-commits@lists.gentoo.org>; Wed,  8 Jul 2015 00:06:26 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 3029E750
	for <gentoo-commits@lists.gentoo.org>; Wed,  8 Jul 2015 00:06:24 +0000 (UTC)
From: "Davide Pesavento" <pesa@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Davide Pesavento" <pesa@gentoo.org>
Message-ID: <1436313942.dc5198319f4e13261e91504a0e1d411b6f11be3c.pesa@gentoo>
Subject: [gentoo-commits] proj/qt:master commit in: eclass/
X-VCS-Repository: proj/qt
X-VCS-Files: eclass/qt5-build.eclass
X-VCS-Directories: eclass/
X-VCS-Committer: pesa
X-VCS-Committer-Name: Davide Pesavento
X-VCS-Revision: dc5198319f4e13261e91504a0e1d411b6f11be3c
X-VCS-Branch: master
Date: Wed,  8 Jul 2015 00:06:24 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 35c89584-0757-4087-b3d1-edf756e69a42
X-Archives-Hash: d2d351ce32d735d057829c3d949beb30

commit:     dc5198319f4e13261e91504a0e1d411b6f11be3c
Author:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  8 00:05:42 2015 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Wed Jul  8 00:05:42 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=dc519831

[qt5-build.eclass] Implement subslotting for all Qt5 modules.

 eclass/qt5-build.eclass | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index fd9406e..100a36c 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -17,14 +17,16 @@ case ${EAPI} in
 	*)	die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;;
 esac
 
-inherit eutils flag-o-matic multilib toolchain-funcs virtualx
-
-QT5_MINOR_VERSION=${PV#*.}
-QT5_MINOR_VERSION=${QT5_MINOR_VERSION%%.*}
+inherit eutils flag-o-matic multilib toolchain-funcs versionator virtualx
 
 HOMEPAGE="https://www.qt.io/"
 LICENSE="|| ( LGPL-2.1 LGPL-3 ) FDL-1.3"
-SLOT="5"
+
+# IMPORTANT: add a subslot dependency to your package only if you are sure
+#            that it uses some private Qt APIs (most likely it does not)
+SLOT=5/$(get_version_component_range 1-2)
+
+QT5_MINOR_VERSION=$(get_version_component_range 2)
 
 # @ECLASS-VARIABLE: QT5_MODULE
 # @DESCRIPTION: