Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 10 Sep 2018 17:10:47
Message-Id: 1536599184.5b58f83e6a23b001f6bdd5393e82cc6ab36072d2.grknight@gentoo
1 commit: 5b58f83e6a23b001f6bdd5393e82cc6ab36072d2
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 7 13:33:55 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 10 17:06:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b58f83e
7
8 eclass: libtool - Mark compatible EAPIs and introduce BDEPEND
9
10 The eltpatch command is run on the build host.
11 As such, it needs to be in BDEPEND for EAPI 7.
12
13 Also taking this opportunity to list compatible EAPIs to consider
14 future adjustments.
15
16 eclass/libtool.eclass | 9 +++++++--
17 1 file changed, 7 insertions(+), 2 deletions(-)
18
19 diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
20 index 2e0f608d342..942bf34aa27 100644
21 --- a/eclass/libtool.eclass
22 +++ b/eclass/libtool.eclass
23 @@ -1,9 +1,10 @@
24 -# Copyright 1999-2017 Gentoo Foundation
25 +# Copyright 1999-2018 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27
28 # @ECLASS: libtool.eclass
29 # @MAINTAINER:
30 # base-system@g.o
31 +# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
32 # @BLURB: quickly update bundled libtool code
33 # @DESCRIPTION:
34 # This eclass patches ltmain.sh distributed with libtoolized packages with the
35 @@ -16,7 +17,11 @@
36 if [[ -z ${_LIBTOOL_ECLASS} ]]; then
37 _LIBTOOL_ECLASS=1
38
39 -DEPEND=">=app-portage/elt-patches-20170422"
40 +case ${EAPI:-0} in
41 + 0|1|2|3|4|5|6) DEPEND=">=app-portage/elt-patches-20170422" ;;
42 + 7) BDEPEND=">=app-portage/elt-patches-20170422" ;;
43 + *) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
44 +esac
45
46 inherit toolchain-funcs