Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 19 Dec 2015 21:50:39
Message-Id: 1450531030.640c8f78470c0417b610773b4fd5cd239b125d24.dilfridge@gentoo
1 commit: 640c8f78470c0417b610773b4fd5cd239b125d24
2 Author: Andreas K. Huettel (dilfridge) <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 28 21:26:22 2015 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 19 13:17:10 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=640c8f78
7
8 perl-module.eclass: Use default unpacking from EAPI=6 on
9
10 eclass/perl-module.eclass | 17 ++++++++++++++---
11 1 file changed, 14 insertions(+), 3 deletions(-)
12
13 diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
14 index bc654a9..9b8e36a 100644
15 --- a/eclass/perl-module.eclass
16 +++ b/eclass/perl-module.eclass
17 @@ -15,9 +15,20 @@
18 # All exported functions from perl-functions.eclass (inherited here)
19 # explicitly also belong to the interface of perl-module.eclass.
20
21 -inherit eutils multiprocessing unpacker perl-functions
22 +case "${EAPI:-0}" in
23 + 5)
24 + inherit eutils multiprocessing unpacker perl-functions
25 + PERL_EXPF="src_unpack src_prepare src_configure src_compile src_test src_install"
26 + ;;
27 + 6)
28 + inherit eutils multiprocessing perl-functions
29 + PERL_EXPF="src_prepare src_configure src_compile src_test src_install"
30 + ;;
31 + *)
32 + die "EAPI=${EAPI} is not supported by perl-module.eclass"
33 + ;;
34 +esac
35
36 -PERL_EXPF="src_unpack src_prepare src_configure src_compile src_test src_install"
37
38 case "${EAPI:-0}" in
39 5)
40 @@ -109,7 +120,7 @@ pm_echovar=""
41 # This function is to be called during the ebuild src_unpack() phase.
42 perl-module_src_unpack() {
43 debug-print-function $FUNCNAME "$@"
44 -
45 + [[ ${EAPI:-0} == 5 ]] || die "perl-module_src_unpack is banned in EAPI=6 or later"
46 unpacker_src_unpack
47 }