summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2016-02-02 18:31:26 +0100
committerDavide Pesavento <pesa@gentoo.org>2016-02-02 19:34:41 +0100
commit9dab205dde1a6c889515dc3af3f268900ad44e1e (patch)
tree3a04a710e056c551f533a9d1c950a6965ad5f872 /eclass/qt5-build.eclass
parentapp-admin/keepassx: Bump to version 2.0.2 (diff)
downloadgentoo-9dab205dde1a6c889515dc3af3f268900ad44e1e.tar.gz
gentoo-9dab205dde1a6c889515dc3af3f268900ad44e1e.tar.bz2
gentoo-9dab205dde1a6c889515dc3af3f268900ad44e1e.zip
qt5-build.eclass: use versionator.eclass to construct QT5_MINOR_VERSION
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r--eclass/qt5-build.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 792a736c44b9..26dd217d1287 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -17,13 +17,13 @@ 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"
+
+QT5_MINOR_VERSION=$(get_version_component_range 2)
+
SLOT="5"
# @ECLASS-VARIABLE: QT5_MODULE