diff options
author | Adam Feldman <NP-Hardass@gentoo.org> | 2021-03-22 21:53:06 -0400 |
---|---|---|
committer | Adam Feldman <NP-Hardass@gentoo.org> | 2021-06-30 10:36:23 -0400 |
commit | f7e317c1cee1b75e81d154abc277bb0ba9b9ec3b (patch) | |
tree | 1e9a84d94add9741831c74e3d5eb41e53a5171da /eclass | |
parent | net-misc/vde: Fix typo in initscript (diff) | |
download | gentoo-f7e317c1cee1b75e81d154abc277bb0ba9b9ec3b.tar.gz gentoo-f7e317c1cee1b75e81d154abc277bb0ba9b9ec3b.tar.bz2 gentoo-f7e317c1cee1b75e81d154abc277bb0ba9b9ec3b.zip |
eclass/mate-desktop.org.eclass: Add EAPI 7 support
Closes: https://bugs.gentoo.org/770277
Signed-off-by: Adam Feldman <NP-Hardass@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mate-desktop.org.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/mate-desktop.org.eclass b/eclass/mate-desktop.org.eclass index 849479d048f0..92f1d1d33d0f 100644 --- a/eclass/mate-desktop.org.eclass +++ b/eclass/mate-desktop.org.eclass @@ -6,7 +6,7 @@ # mate@gentoo.org # @AUTHOR: # Authors: NP-Hardass <NP-Hardass@gentoo.org> based upon the gnome.org eclass. -# @SUPPORTED_EAPIS: 6 +# @SUPPORTED_EAPIS: 6 7 # @BLURB: Helper eclass for mate-desktop.org hosted archives # @DESCRIPTION: # Provide a default SRC_URI and EGIT_REPO_URI for MATE packages as well as @@ -14,7 +14,7 @@ # EAPIs < 6 are banned. case "${EAPI:-0}" in - 6) ;; + 6|7) ;; *) die "EAPI=${EAPI:-0} is not supported" ;; esac @@ -22,7 +22,7 @@ if [[ ${PV} == 9999 ]]; then inherit git-r3 fi -inherit versionator +[[ ${EAPI:-0} -eq 6 ]] && inherit eapi7-ver # @ECLASS-VARIABLE: MATE_TARBALL_SUFFIX # @INTERNAL @@ -47,7 +47,7 @@ inherit versionator # @DESCRIPTION: # Major and minor numbers of the version number, unless live. # If live ebuild, will be set to '9999'. -: ${MATE_BRANCH:=$(get_version_component_range 1-2)} +: ${MATE_BRANCH:=$(ver_cut 1-2)} # Set SRC_URI or EGIT_REPO_URI based on whether live if [[ ${PV} == 9999 ]]; then |