diff options
author | David Seifert <soap@gentoo.org> | 2022-12-27 17:30:14 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-12-27 17:30:14 +0100 |
commit | 9dd05df92c60f216ec826017bd27d871d164ae4e (patch) | |
tree | 1e918700c7b74d02a22703850d4c9dda7c2856e8 /eclass/toolchain-autoconf.eclass | |
parent | selinux-policy-2.eclass: drop EAPI 6 support (diff) | |
download | gentoo-9dd05df92c60f216ec826017bd27d871d164ae4e.tar.gz gentoo-9dd05df92c60f216ec826017bd27d871d164ae4e.tar.bz2 gentoo-9dd05df92c60f216ec826017bd27d871d164ae4e.zip |
toolchain-autoconf.eclass: drop EAPI 6, add EAPI 8 support
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/toolchain-autoconf.eclass')
-rw-r--r-- | eclass/toolchain-autoconf.eclass | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/eclass/toolchain-autoconf.eclass b/eclass/toolchain-autoconf.eclass index 2c8184f894cc..2ba27638468e 100644 --- a/eclass/toolchain-autoconf.eclass +++ b/eclass/toolchain-autoconf.eclass @@ -1,29 +1,22 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: toolchain-autoconf.eclass # @MAINTAINER: # <base-system@gentoo.org> -# @SUPPORTED_EAPIS: 6 7 +# @SUPPORTED_EAPIS: 7 8 # @BLURB: Common code for sys-devel/autoconf ebuilds # @DESCRIPTION: # This eclass contains the common phase functions migrated from # sys-devel/autoconf eblits. -case ${EAPI:-0} in - [0-5]) - die "${ECLASS} is banned in EAPI ${EAPI:-0}" - ;; - [6-7]) - ;; - *) - die "Unknown EAPI ${EAPI:-0}" - ;; +case ${EAPI} in + 7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac if [[ -z ${_TOOLCHAIN_AUTOCONF_ECLASS} ]]; then - -EXPORT_FUNCTIONS src_prepare src_configure src_install +_TOOLCHAIN_AUTOCONF_ECLASS=1 toolchain-autoconf_src_prepare() { find -name Makefile.in -exec sed -i '/^pkgdatadir/s:$:-@VERSION@:' {} + || die @@ -75,5 +68,6 @@ toolchain-autoconf_src_install() { slot_info_pages } -_TOOLCHAIN_AUTOCONF_ECLASS=1 fi + +EXPORT_FUNCTIONS src_prepare src_configure src_install |