From 6882d8d1110ef4feeec532196a1f0a25420d0fd1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 2 Apr 2023 05:16:35 +0100 Subject: gentoo auto-resync : 02:04:2023 - 05:16:35 --- eclass/gnome.org.eclass | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'eclass/gnome.org.eclass') diff --git a/eclass/gnome.org.eclass b/eclass/gnome.org.eclass index 99b0090fda7c..760dc2ba0b66 100644 --- a/eclass/gnome.org.eclass +++ b/eclass/gnome.org.eclass @@ -47,18 +47,25 @@ fi # Leave unset if package name matches module name. : "${GNOME_ORG_MODULE:=$PN}" -# @ECLASS_VARIABLE: GNOME_ORG_PVP +# @ECLASS_VARIABLE: GNOME_ORG_RELEASE # @INTERNAL # @DESCRIPTION: # Components of the version number that correspond to a 6 month release. if ver_test -ge 40.0; then - : "${GNOME_ORG_PVP:=$(ver_cut 1)}" + : "${GNOME_ORG_RELEASE:=$(ver_cut 1)}" else - : "${GNOME_ORG_PVP:=$(ver_cut 1-2)}" + : "${GNOME_ORG_RELEASE:=$(ver_cut 1-2)}" fi -SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}" +# @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}-${GNOME_ORG_PV}.tar.${GNOME_TARBALL_SUFFIX}" -S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV}" +S="${WORKDIR}/${GNOME_ORG_MODULE}-${GNOME_ORG_PV}" fi -- cgit v1.2.3