summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2023-03-30 19:52:01 -0400
committerMatt Turner <mattst88@gentoo.org>2023-04-01 20:56:55 -0400
commit4ea7d5776899af553083a5eb01f9352864d7f808 (patch)
tree033d6a1584308155ee915d7009834ce91eb2a2d1 /eclass/gnome.org.eclass
parentgnome.org.eclass: Rename GNOME_ORG_PVP -> GNOME_ORG_RELEASE (diff)
downloadgentoo-4ea7d5776899af553083a5eb01f9352864d7f808.tar.gz
gentoo-4ea7d5776899af553083a5eb01f9352864d7f808.tar.bz2
gentoo-4ea7d5776899af553083a5eb01f9352864d7f808.zip
gnome.org.eclass: Add GNOME_ORG_PV variable
Provides the package version in the format used upstream by GNOME projects. Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'eclass/gnome.org.eclass')
-rw-r--r--eclass/gnome.org.eclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/gnome.org.eclass b/eclass/gnome.org.eclass
index 2add88ef59f7..d5f9102e5818 100644
--- a/eclass/gnome.org.eclass
+++ b/eclass/gnome.org.eclass
@@ -57,6 +57,13 @@ else
: "${GNOME_ORG_RELEASE:=$(ver_cut 1-2)}"
fi
+# @ECLASS_VARIABLE: GNOME_ORG_PV
+# @DESCRIPTION:
+# PV in the GNOME version scheme format.
+# The package version in the format used upstream by GNOME projects.
+# See https://discourse.gnome.org/t/new-gnome-versioning-scheme/4235
+: "${GNOME_ORG_PV:=$(ver_rs 1- .)}"
+
SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_RELEASE}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}"
S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV}"