summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2023-12-06 13:47:19 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2023-12-15 17:21:03 +0100
commit74b43a5490e11371b6a3e9c72f806df90365882c (patch)
treed9fac3c3d0978f6a761454c5ecf9fdd7516ae81a /eclass/kde.org.eclass
parentpackage.mask: Last rite dev-python/pypy3-exe{,-bin} (diff)
downloadgentoo-74b43a5490e11371b6a3e9c72f806df90365882c.tar.gz
gentoo-74b43a5490e11371b6a3e9c72f806df90365882c.tar.bz2
gentoo-74b43a5490e11371b6a3e9c72f806df90365882c.zip
kde.org.eclass: Add KDE_ORG_TAR_PN override variable
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/kde.org.eclass')
-rw-r--r--eclass/kde.org.eclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass
index c972c12ab8a5..b9d68ccbf5c2 100644
--- a/eclass/kde.org.eclass
+++ b/eclass/kde.org.eclass
@@ -98,7 +98,7 @@ readonly KDE_ORG_CATEGORIES
# @PRE_INHERIT
# @DESCRIPTION:
# If unset, default value is set to ${PN}.
-# Name of the package as hosted on kde.org mirrors.
+# Name of the package (repository) as hosted on invent.kde.org.
: "${KDE_ORG_NAME:=$PN}"
# @ECLASS_VARIABLE: KDE_ORG_SCHEDULE_URI
@@ -114,6 +114,15 @@ readonly KDE_ORG_CATEGORIES
# add a dependency on sec-policy/selinux-${KDE_SELINUX_MODULE} to (R)DEPEND.
: "${KDE_SELINUX_MODULE:=none}"
+# @ECLASS_VARIABLE: KDE_ORG_TAR_PN
+# @PRE_INHERIT
+# @DESCRIPTION:
+# If unset, default value is set to ${KDE_ORG_NAME}.
+# Filename sans version of the tarball as hosted on kde.org download mirrors.
+# This is used e.g. when upstream's tarball name differs from repository,
+# especially after repository moves.
+: "${KDE_ORG_TAR_PN:=$KDE_ORG_NAME}"
+
case ${KDE_SELINUX_MODULE} in
none) ;;
*)
@@ -179,7 +188,7 @@ case ${KDE_BUILD_TYPE} in
S=${WORKDIR}/${KDE_ORG_NAME}-${KDE_ORG_COMMIT}
[[ ${CATEGORY} == dev-qt ]] && QT5_BUILD_DIR="${S}_build"
else
- S=${WORKDIR}/${KDE_ORG_NAME}-${PV}
+ S=${WORKDIR}/${KDE_ORG_TAR_PN}-${PV}
fi
;;
esac