Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Thu, 01 Dec 2016 20:14:08
Message-Id: 1480623239.f2eb785b6831053adc11e68c01d202e861910ecc.polynomial-c@gentoo
1 commit: f2eb785b6831053adc11e68c01d202e861910ecc
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 1 20:09:34 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 1 20:13:59 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2eb785b
7
8 aspell-dict.eclass: Some tweaks so the eclass works with EAPI>0 ebuilds.
9
10 eclass/aspell-dict.eclass | 16 ++++++++++++++--
11 1 file changed, 14 insertions(+), 2 deletions(-)
12
13 diff --git a/eclass/aspell-dict.eclass b/eclass/aspell-dict.eclass
14 index 6207f6a..5600d9a 100644
15 --- a/eclass/aspell-dict.eclass
16 +++ b/eclass/aspell-dict.eclass
17 @@ -24,7 +24,10 @@
18 # @DESCRIPTION:
19 # What major version of aspell is this dictionary for?
20
21 -EXPORT_FUNCTIONS src_compile src_install
22 +case ${EAPI} in
23 + 0|1) EXPORT_FUNCTIONS src_compile src_install ;;
24 + *) EXPORT_FUNCTIONS src_configure src_compile src_install ;;
25 +esac
26
27 #MY_P=${PN}-${PV%.*}-${PV#*.*.}
28 MY_P=${P%.*}-${PV##*.}
29 @@ -46,11 +49,20 @@ else
30 DEPEND="${RDEPEND}"
31 fi
32
33 +# @FUNCTION: aspell-dict_src_configure
34 +# @DESCRIPTION:
35 +# The aspell-dict src_configure function which is exported.
36 +aspell-dict_src_configure() {
37 + ./configure || die
38 +}
39 +
40 # @FUNCTION: aspell-dict_src_compile
41 # @DESCRIPTION:
42 # The aspell-dict src_compile function which is exported.
43 aspell-dict_src_compile() {
44 - ./configure || die
45 + case ${EAPI} in
46 + 0|1) aspell-dict_src_configure ;;
47 + esac
48 emake || die
49 }