diff options
author | Brian Evans <grknight@gentoo.org> | 2018-09-07 09:33:55 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2018-09-10 13:06:24 -0400 |
commit | 5b58f83e6a23b001f6bdd5393e82cc6ab36072d2 (patch) | |
tree | e81da49036be0fdab4d3431bd9a6cd6197fa266c | |
parent | dev-lang/rakudo: Bump (diff) | |
download | gentoo-5b58f83e6a23b001f6bdd5393e82cc6ab36072d2.tar.gz gentoo-5b58f83e6a23b001f6bdd5393e82cc6ab36072d2.tar.bz2 gentoo-5b58f83e6a23b001f6bdd5393e82cc6ab36072d2.zip |
eclass: libtool - Mark compatible EAPIs and introduce BDEPEND
The eltpatch command is run on the build host.
As such, it needs to be in BDEPEND for EAPI 7.
Also taking this opportunity to list compatible EAPIs to consider
future adjustments.
-rw-r--r-- | eclass/libtool.eclass | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass index 2e0f608d342f..942bf34aa278 100644 --- a/eclass/libtool.eclass +++ b/eclass/libtool.eclass @@ -1,9 +1,10 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # @ECLASS: libtool.eclass # @MAINTAINER: # base-system@gentoo.org +# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 # @BLURB: quickly update bundled libtool code # @DESCRIPTION: # This eclass patches ltmain.sh distributed with libtoolized packages with the @@ -16,7 +17,11 @@ if [[ -z ${_LIBTOOL_ECLASS} ]]; then _LIBTOOL_ECLASS=1 -DEPEND=">=app-portage/elt-patches-20170422" +case ${EAPI:-0} in + 0|1|2|3|4|5|6) DEPEND=">=app-portage/elt-patches-20170422" ;; + 7) BDEPEND=">=app-portage/elt-patches-20170422" ;; + *) die "${ECLASS}: EAPI ${EAPI} not supported" ;; +esac inherit toolchain-funcs |