Gentoo Archives: gentoo-dev

From: "Marty E. Plummer" <hanetzer@×××××××××.com>
To: gentoo-dev@l.g.o
Cc: "Marty E. Plummer" <hanetzer@×××××××××.com>
Subject: [gentoo-dev] [PATCH] gnome.org.eclass: use eapi7-ver
Date: Tue, 01 Jan 2019 20:13:29
Message-Id: 20190101201247.29614-1-hanetzer@startmail.com
1 Signed-off-by: Marty E. Plummer <hanetzer@×××××××××.com>
2 ---
3 eclass/gnome.org.eclass | 6 +++---
4 1 file changed, 3 insertions(+), 3 deletions(-)
5
6 diff --git a/eclass/gnome.org.eclass b/eclass/gnome.org.eclass
7 index 6b2ae672a2d..f41646749a0 100644
8 --- a/eclass/gnome.org.eclass
9 +++ b/eclass/gnome.org.eclass
10 @@ -1,4 +1,4 @@
11 -# Copyright 1999-2011 Gentoo Foundation
12 +# Copyright 1999-2019 Gentoo Authors
13 # Distributed under the terms of the GNU General Public License v2
14
15 # @ECLASS: gnome.org.eclass
16 @@ -11,7 +11,7 @@
17 # @DESCRIPTION:
18 # Provide a default SRC_URI for tarball hosted on gnome.org mirrors.
19
20 -inherit versionator
21 +[[ ${EAPI} == [0123456] ]] && inherit eapi7-ver
22
23 # @ECLASS-VARIABLE: GNOME_TARBALL_SUFFIX
24 # @DESCRIPTION:
25 @@ -41,7 +41,7 @@ fi
26 # @INTERNAL
27 # @DESCRIPTION:
28 # Major and minor numbers of the version number.
29 -: ${GNOME_ORG_PVP:=$(get_version_component_range 1-2)}
30 +: ${GNOME_ORG_PVP:=$(ver_cut 1-2)}
31
32 SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}"
33
34 --
35 2.20.1