From 76ba5705c512949fcc04fd8435489764fb74101f Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 21 Mar 2021 16:50:46 -0400 Subject: gnome.org.eclass: Update GNOME_ORG_PVP logic for v40 releases Signed-off-by: Matt Turner --- eclass/gnome.org.eclass | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'eclass/gnome.org.eclass') diff --git a/eclass/gnome.org.eclass b/eclass/gnome.org.eclass index fd6077e4594c..281627859e86 100644 --- a/eclass/gnome.org.eclass +++ b/eclass/gnome.org.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: gnome.org.eclass @@ -45,8 +45,12 @@ fi # @ECLASS-VARIABLE: GNOME_ORG_PVP # @INTERNAL # @DESCRIPTION: -# Major and minor numbers of the version number. -: ${GNOME_ORG_PVP:=$(ver_cut 1-2)} +# 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)} +else + : ${GNOME_ORG_PVP:=$(ver_cut 1-2)} +fi SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}" -- cgit v1.2.3