commit:     76ba5705c512949fcc04fd8435489764fb74101f
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 21 20:50:46 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sun Mar 21 21:59:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76ba5705

gnome.org.eclass: Update GNOME_ORG_PVP logic for v40 releases

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 eclass/gnome.org.eclass | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/eclass/gnome.org.eclass b/eclass/gnome.org.eclass
index fd6077e4594..281627859e8 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}"
 

Reply via email to