summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimi Huotari <chiitoo@gentoo.org>2017-12-09 13:49:31 +0200
committerMichael Palimaka <kensington@gentoo.org>2017-12-22 22:56:00 +1100
commit94e985fdb4f139cb621a23733a90187283349d4a (patch)
tree3b3c0f01166b54f7b4ddc02f7c5d3e8f8c6057f5 /eclass/qt5-build.eclass
parentnet-p2p/qbittorrent: avoid Werror (diff)
downloadgentoo-94e985fdb4f139cb621a23733a90187283349d4a.tar.gz
gentoo-94e985fdb4f139cb621a23733a90187283349d4a.tar.bz2
gentoo-94e985fdb4f139cb621a23733a90187283349d4a.zip
qt5-build.eclass: add support for 5.10 URIs
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r--eclass/qt5-build.eclass16
1 files changed, 14 insertions, 2 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 7462ab2059b3..8728acc2c18d 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -73,14 +73,26 @@ case ${PV} in
*_alpha*|*_beta*|*_rc*)
# development release
QT5_BUILD_TYPE="release"
- MY_P=${QT5_MODULE}-opensource-src-${PV/_/-}
+
+ if [[ ${QT5_MINOR_VERSION} -ge 10 ]]; then
+ MY_P=${QT5_MODULE}-everywhere-src-${PV/_/-}
+ else
+ MY_P=${QT5_MODULE}-opensource-src-${PV/_/-}
+ fi
+
SRC_URI="https://download.qt.io/development_releases/qt/${PV%.*}/${PV/_/-}/submodules/${MY_P}.tar.xz"
S=${WORKDIR}/${MY_P}
;;
*)
# official stable release
QT5_BUILD_TYPE="release"
- MY_P=${QT5_MODULE}-opensource-src-${PV}
+
+ if [[ ${QT5_MINOR_VERSION} -ge 10 ]]; then
+ MY_P=${QT5_MODULE}-everywhere-src-${PV}
+ else
+ MY_P=${QT5_MODULE}-opensource-src-${PV}
+ fi
+
SRC_URI="https://download.qt.io/official_releases/qt/${PV%.*}/${PV}/submodules/${MY_P}.tar.xz"
S=${WORKDIR}/${MY_P}
;;