Gentoo Archives: gentoo-dev

From: dilfridge@g.o
To: gentoo-dev@l.g.o
Cc: "Andreas K. Huettel (dilfridge)" <dilfridge@g.o>
Subject: [gentoo-dev] [PATCH 04/15] perl-module.eclass: Use default unpacking from EAPI=6 on
Date: Fri, 11 Dec 2015 21:05:41
Message-Id: 1449867791-30513-4-git-send-email-dilfridge@gentoo.org
In Reply to: [gentoo-dev] [PATCH 01/15] perl-module.eclass: Allow EAPI=6, ban PERL_EXPORT_PHASE_FUNCTIONS there, simplify perl dependency by dilfridge@gentoo.org
1 From: "Andreas K. Huettel (dilfridge)" <dilfridge@g.o>
2
3 ---
4 eclass/perl-module.eclass | 17 ++++++++++++++---
5 1 file changed, 14 insertions(+), 3 deletions(-)
6
7 diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
8 index 734de11..8caa981 100644
9 --- a/eclass/perl-module.eclass
10 +++ b/eclass/perl-module.eclass
11 @@ -15,9 +15,20 @@
12 # All exported functions from perl-functions.eclass (inherited here)
13 # explicitly also belong to the interface of perl-module.eclass.
14
15 -inherit eutils multiprocessing unpacker perl-functions
16 +case "${EAPI:-0}" in
17 + 5)
18 + inherit eutils multiprocessing unpacker perl-functions
19 + PERL_EXPF="src_unpack src_prepare src_configure src_compile src_test src_install"
20 + ;;
21 + 6)
22 + inherit eutils multiprocessing perl-functions
23 + PERL_EXPF="src_prepare src_configure src_compile src_test src_install"
24 + ;;
25 + *)
26 + die "EAPI=${EAPI} is not supported by perl-module.eclass"
27 + ;;
28 +esac
29
30 -PERL_EXPF="src_unpack src_prepare src_configure src_compile src_test src_install"
31
32 case "${EAPI:-0}" in
33 5)
34 @@ -116,7 +127,7 @@ pm_echovar=""
35 # This function is to be called during the ebuild src_unpack() phase.
36 perl-module_src_unpack() {
37 debug-print-function $FUNCNAME "$@"
38 -
39 + [[ ${EAPI}==5 ]] || die "perl-module_src_unpack is banned in EAPI=6 or later"
40 unpacker_src_unpack
41 }
42
43 --
44 2.6.3

Replies