commit:     12a98e5265ea65c6e604eb1a0d8cf7d78cfc8589
Author:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  9 11:49:31 2017 +0000
Commit:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
CommitDate: Sat Dec  9 11:49:31 2017 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=12a98e52

qt5-build.eclass: add support for 5.10 URIs

 eclass/qt5-build.eclass | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 7462ab20..8728acc2 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}
                ;;

Reply via email to