summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2021-03-21 16:50:46 -0400
committerMatt Turner <mattst88@gentoo.org>2021-03-21 17:59:41 -0400
commit76ba5705c512949fcc04fd8435489764fb74101f (patch)
treedbe51b9ee36aa326f86d8adaccf405d9b4732441 /eclass/gnome.org.eclass
parentapp-admin/entr: vbump to 4.8. (diff)
downloadgentoo-76ba5705c512949fcc04fd8435489764fb74101f.tar.gz
gentoo-76ba5705c512949fcc04fd8435489764fb74101f.tar.bz2
gentoo-76ba5705c512949fcc04fd8435489764fb74101f.zip
gnome.org.eclass: Update GNOME_ORG_PVP logic for v40 releases
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'eclass/gnome.org.eclass')
-rw-r--r--eclass/gnome.org.eclass10
1 files changed, 7 insertions, 3 deletions
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}"