summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-04-17 21:13:26 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2021-08-25 16:35:46 +0200
commit4f483925f323776cc3845b5c883b49088f097c9b (patch)
treec01e152c229f9aa31e227abae1836a2a6e112f44 /eclass/qt5-build.eclass
parentqt5-build.eclass: Add eclassdoc for QT5_BUILD_TYPE (diff)
downloadgentoo-4f483925f323776cc3845b5c883b49088f097c9b.tar.gz
gentoo-4f483925f323776cc3845b5c883b49088f097c9b.tar.bz2
gentoo-4f483925f323776cc3845b5c883b49088f097c9b.zip
qt5-build.eclass: Rename MY_P to _QT5_P and fix eclassdoc warning
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r--eclass/qt5-build.eclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 5cccc529e0a8..9a60d9a3a991 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -37,6 +37,13 @@ readonly QT5_BUILD_TYPE
# SRC_URI and EGIT_REPO_URI. Must be set before inheriting the eclass.
: ${QT5_MODULE:=${PN}}
+# @ECLASS-VARIABLE: _QT5_P
+# @INTERNAL
+# @DESCRIPTION:
+# The upstream package name of the module this package belongs to.
+# Used for SRC_URI and S.
+_QT5_P=${QT5_MODULE}-everywhere-src-${PV}
+
# @ECLASS-VARIABLE: QT5_TARGET_SUBDIRS
# @DEFAULT_UNSET
# @DESCRIPTION:
@@ -81,9 +88,8 @@ case ${PV} in
;;
*)
# official stable 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}
+ SRC_URI="https://download.qt.io/official_releases/qt/${PV%.*}/${PV}/submodules/${_QT5_P}.tar.xz"
+ S=${WORKDIR}/${_QT5_P}
;;
esac