Provides the package version in the format used upstream by GNOME
projects.

Signed-off-by: Matt Turner <matts...@gentoo.org>
---
 eclass/gnome.org.eclass | 7 +++++++
 1 file changed, 7 insertions(+)

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}"
-- 
2.39.2


Reply via email to