From 7218e1b46bceac05841e90472501742d905fb3fc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 12 Mar 2021 21:55:15 +0000 Subject: gentoo resync : 12.03.2021 --- eclass/aspell-dict-r1.eclass | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'eclass/aspell-dict-r1.eclass') diff --git a/eclass/aspell-dict-r1.eclass b/eclass/aspell-dict-r1.eclass index b07af61fdf1e..89f7b954dd68 100644 --- a/eclass/aspell-dict-r1.eclass +++ b/eclass/aspell-dict-r1.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: aspell-dict-r1.eclass @@ -7,7 +7,7 @@ # @AUTHOR: # Original author: Seemant Kulleen # -r1 author: David Seifert -# @SUPPORTED_EAPIS: 6 +# @SUPPORTED_EAPIS: 7 # @BLURB: An eclass to streamline the construction of ebuilds for new aspell dicts # @DESCRIPTION: # The aspell-dict-r1 eclass is designed to streamline the construction of @@ -22,6 +22,7 @@ # inheriting the eclass. # @ECLASS-VARIABLE: ASPELL_VERSION +# @DEFAULT_UNSET # @DESCRIPTION: # What major version of aspell is this dictionary for? Valid values are 5, 6 or undefined. # This value is used to construct SRC_URI and *DEPEND strings. If defined to 6, @@ -30,10 +31,10 @@ # it needs to be overridden before inheriting the eclass. case ${EAPI:-0} in - [0-5]) + [0-6]) die "aspell-dict-r1.eclass is banned in EAPI ${EAPI:-0}" ;; - 6) + 7) ;; *) die "Unknown EAPI ${EAPI:-0}" @@ -43,24 +44,24 @@ esac EXPORT_FUNCTIONS src_configure src_install if [[ ! ${_ASPELL_DICT_R1} ]]; then +_ASPELL_DICT_R1=1 # aspell packages have an idiosyncratic versioning scheme, that is # the last separating version separator is replaced by a '-'. _ASPELL_P=aspell${ASPELL_VERSION}-${PN/aspell-/}-${PV%.*}-${PV##*.} +S="${WORKDIR}/${_ASPELL_P}" # @ECLASS-VARIABLE: ASPELL_SPELLANG # @DESCRIPTION: # Short (readonly) form of the language code, generated from ${PN} # For instance, 'aspell-hu' yields the value 'hu'. readonly ASPELL_SPELLANG=${PN/aspell-/} -S="${WORKDIR}/${_ASPELL_P}" DESCRIPTION="${ASPELL_LANG} language dictionary for aspell" HOMEPAGE="http://aspell.net" SRC_URI="mirror://gnu/aspell/dict/${ASPELL_SPELLANG}/${_ASPELL_P}.tar.bz2" unset _ASPELL_P -IUSE="" SLOT="0" _ASPELL_MAJOR_VERSION=${ASPELL_VERSION:-5} @@ -86,5 +87,4 @@ aspell-dict-r1_src_install() { [[ -s info ]] && dodoc info } -_ASPELL_DICT_R1=1 fi -- cgit v1.2.3