diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-09-05 23:33:24 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-09-07 17:43:38 +0200 |
commit | 7bdafe706c39de34b751bbccebf2e0c7bfe06135 (patch) | |
tree | 41c67a1f4fb4cd21333b3f3b7ea667f4cb4fc529 /eclass | |
parent | dev-qt: mv 5.15.9999 to 5.15.2.9999 (diff) | |
download | qt-7bdafe706c39de34b751bbccebf2e0c7bfe06135.tar.gz qt-7bdafe706c39de34b751bbccebf2e0c7bfe06135.tar.bz2 qt-7bdafe706c39de34b751bbccebf2e0c7bfe06135.zip |
qt5-build.eclass: Introduce QT5_PV for intra-dev-qt deps
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/qt5-build.eclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index 40c9387a..a320a78d 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -37,6 +37,12 @@ readonly QT5_BUILD_TYPE # SRC_URI and EGIT_REPO_URI. Must be set before inheriting the eclass. : ${QT5_MODULE:=${PN}} +# @ECLASS-VARIABLE: QT5_PV +# @DESCRIPTION: +# 3-component version for use in dependency declarations on other dev-qt/ pkgs. +QT5_PV=$(ver_cut 1-3) +readonly QT5_PV + # @ECLASS-VARIABLE: _QT5_P # @INTERNAL # @DESCRIPTION: @@ -109,7 +115,7 @@ BDEPEND=" virtual/pkgconfig " if [[ ${PN} != qttest ]]; then - DEPEND+=" test? ( ~dev-qt/qttest-$(ver_cut 1-3) )" + DEPEND+=" test? ( =dev-qt/qttest-${QT5_PV}* )" fi ###### Phase functions ###### @@ -127,7 +133,7 @@ qt5-build_src_prepare() { # 5.15.3 release is closed and this will never be more than a Qt 5.15.2 # with patches on top. einfo "Preparing KDE Qt5PatchCollection snapshot at ${KDE_ORG_COMMIT}" - sed -e "/^MODULE_VERSION/s/5\.15\.3/5\.15\.2/" -i .qmake.conf || die + sed -e "/^MODULE_VERSION/s/5\.15\.[3456789]/${QT5_PV}/" -i .qmake.conf || die mkdir -p .git || die # need to fake a git repository for configure fi |