diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-04-17 21:19:25 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-08-25 16:35:46 +0200 |
commit | 9bccaf261c41fa89301f35f4f37152bab8522d98 (patch) | |
tree | ff8cd41f6dc7d4ebc488b0549bb277b12b58a48c /eclass | |
parent | qt5-build.eclass: Drop _alpha/_beta/_rc tarball support (diff) | |
download | gentoo-9bccaf261c41fa89301f35f4f37152bab8522d98.tar.gz gentoo-9bccaf261c41fa89301f35f4f37152bab8522d98.tar.bz2 gentoo-9bccaf261c41fa89301f35f4f37152bab8522d98.zip |
qt5-build.eclass: Add eclassdoc for QT5_BUILD_TYPE
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/qt5-build.eclass | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index 9e92e91f975f..5cccc529e0a8 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -20,6 +20,16 @@ case ${EAPI} in *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac +# @ECLASS-VARIABLE: QT5_BUILD_TYPE +# @DESCRIPTION: +# Default value is "release". +# If PV matches "*9999*", this is automatically set to "live". +QT5_BUILD_TYPE=release +if [[ ${PV} == *9999* ]]; then + QT5_BUILD_TYPE=live +fi +readonly QT5_BUILD_TYPE + # @ECLASS-VARIABLE: QT5_MODULE # @PRE_INHERIT # @DESCRIPTION: @@ -67,18 +77,15 @@ case ${PV} in 5.15.9999) # KDE upstream for 5.15 patches HOMEPAGE+=" https://invent.kde.org/qt/qt/" - QT5_BUILD_TYPE="live" EGIT_BRANCH="kde/5.15" ;; *) # official stable release - QT5_BUILD_TYPE="release" MY_P=${QT5_MODULE}-everywhere-src-${PV} SRC_URI="https://download.qt.io/official_releases/qt/${PV%.*}/${PV}/submodules/${MY_P}.tar.xz" S=${WORKDIR}/${MY_P} ;; esac -readonly QT5_BUILD_TYPE EGIT_REPO_URI=( "https://invent.kde.org/qt/qt/${QT5_MODULE}.git" ) |