commit: b0d5d45b9cecba5061938be67f3610edd3820c9b Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Wed Jan 17 23:31:18 2018 +0000 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> CommitDate: Thu Jan 18 09:40:32 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0d5d45b
toolchain-autoconf.eclass: Modernise * Add EAPI blacklist Closes: https://github.com/gentoo/gentoo/pull/6893 eclass/toolchain-autoconf.eclass | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/eclass/toolchain-autoconf.eclass b/eclass/toolchain-autoconf.eclass index 59057b8d6eb..18276f0b49c 100644 --- a/eclass/toolchain-autoconf.eclass +++ b/eclass/toolchain-autoconf.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # @ECLASS: toolchain-autoconf.eclass @@ -9,16 +9,24 @@ # This eclass contains the common phase functions migrated from # sys-devel/autoconf eblits. -if [[ -z ${_TOOLCHAIN_AUTOCONF_ECLASS} ]]; then +case ${EAPI:-0} in + [0-5]) + die "${ECLASS} is banned in EAPI ${EAPI:-0}" + ;; + 6) + ;; + *) + die "Unknown EAPI ${EAPI:-0}" + ;; +esac -inherit eutils +if [[ -z ${_TOOLCHAIN_AUTOCONF_ECLASS} ]]; then EXPORT_FUNCTIONS src_prepare src_configure src_install toolchain-autoconf_src_prepare() { find -name Makefile.in -exec sed -i '/^pkgdatadir/s:$:-@VERSION@:' {} + || die - - [[ ${#PATCHES[@]} -gt 0 ]] && epatch "${PATCHES[@]}" + default } toolchain-autoconf_src_configure() {
