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 01/15] perl-module.eclass: Allow EAPI=6, ban PERL_EXPORT_PHASE_FUNCTIONS there, simplify perl dependency
Date: Fri, 11 Dec 2015 21:04:58
Message-Id: 1449867791-30513-1-git-send-email-dilfridge@gentoo.org
In Reply to: [gentoo-dev] perl-module.eclass EAPI=6 support by "Andreas K. Huettel"
1 From: "Andreas K. Huettel (dilfridge)" <dilfridge@g.o>
2
3 ---
4 eclass/perl-module.eclass | 54 ++++++++++++++++++++++++++++++++++++++---------
5 1 file changed, 44 insertions(+), 10 deletions(-)
6
7 diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
8 index 5a476d2..82c72fc 100644
9 --- a/eclass/perl-module.eclass
10 +++ b/eclass/perl-module.eclass
11 @@ -37,21 +37,55 @@ case "${EAPI:-0}" in
12 RDEPEND="${DEPEND}"
13 ;;
14 esac
15 +
16 + case "${PERL_EXPORT_PHASE_FUNCTIONS:-yes}" in
17 + yes)
18 + EXPORT_FUNCTIONS ${PERL_EXPF}
19 + ;;
20 + no)
21 + debug-print "PERL_EXPORT_PHASE_FUNCTIONS=no"
22 + ;;
23 + *)
24 + die "PERL_EXPORT_PHASE_FUNCTIONS=${PERL_EXPORT_PHASE_FUNCTIONS} is not supported by perl-module.eclass"
25 + ;;
26 + esac
27 ;;
28 - *)
29 - die "EAPI=${EAPI} is not supported by perl-module.eclass"
30 - ;;
31 -esac
32 + 6)
33 + [[ ${CATEGORY} == "perl-core" ]] && \
34 + PERL_EXPF+=" pkg_postinst pkg_postrm"
35 +
36 + case "${GENTOO_DEPEND_ON_PERL:-yes}" in
37 + yes)
38 + case "${GENTOO_DEPEND_ON_PERL_SUBSLOT:-yes}" in
39 + yes)
40 + DEPEND="dev-lang/perl:="
41 + ;;
42 + *)
43 + DEPEND="dev-lang/perl"
44 + ;;
45 + esac
46 + RDEPEND="${DEPEND}"
47 + ;;
48 + esac
49 +
50 + case "${PERL_EXPORT_PHASE_FUNCTIONS:-undefined}" in
51 + yes)
52 + die "PERL_EXPORT_PHASE_FUNCTIONS is banned in EAPI=6. It defaults to yes anyway."
53 + ;;
54 + no)
55 + die "PERL_EXPORT_PHASE_FUNCTIONS is banned in EAPI=6. Inherit perl-functions.eclass instead."
56 + ;;
57 + undefined)
58 + ;;
59 + *)
60 + die "PERL_EXPORT_PHASE_FUNCTIONS is banned in EAPI=6."
61 + ;;
62 + esac
63
64 -case "${PERL_EXPORT_PHASE_FUNCTIONS:-yes}" in
65 - yes)
66 EXPORT_FUNCTIONS ${PERL_EXPF}
67 ;;
68 - no)
69 - debug-print "PERL_EXPORT_PHASE_FUNCTIONS=no"
70 - ;;
71 *)
72 - die "PERL_EXPORT_PHASE_FUNCTIONS=${PERL_EXPORT_PHASE_FUNCTIONS} is not supported by perl-module.eclass"
73 + die "EAPI=${EAPI} is not supported by perl-module.eclass"
74 ;;
75 esac
76
77 --
78 2.6.3

Replies

Subject Author
[gentoo-dev] [PATCH 03/15] perl-module.eclass: Just go ahead when calling configure twice in EAPI=6 dilfridge@g.o
[gentoo-dev] [PATCH 04/15] perl-module.eclass: Use default unpacking from EAPI=6 on dilfridge@g.o
[gentoo-dev] [PATCH 09/15] perl-module.eclass: Use DIST_ prefix instead of MODULE_ prefix in EAPI=6 for control variables. dilfridge@g.o
[gentoo-dev] [PATCH 05/15] perl-module.eclass: Use eapply from EAPI=6 on and always call eapply_user dilfridge@g.o
[gentoo-dev] [PATCH 07/15] perl-module.eclass: Do not do any magic with MY_... variables in EAPI=6 anymore dilfridge@g.o
[gentoo-dev] [PATCH 08/15] perl-module.eclass: Document variables available in EAPI=6 dilfridge@g.o
[gentoo-dev] [PATCH 02/15] perl-module.eclass: Remove references to perlinfo_done dilfridge@g.o
[gentoo-dev] [PATCH 11/15] perl-module.eclass: Introduce DIST_TEST_OVERRIDE in EAPI=6 dilfridge@g.o
[gentoo-dev] [PATCH 13/15] perl-module.eclass: Make some former warnings fatal to get rid of PERLQAFATAL, eqawarn, and (in EAPI=6) eutils.eclass dilfridge@g.o
[gentoo-dev] [PATCH 10/15] perl-module.eclass: Rename SRC_TEST to DIST_TEST in EAPI=6 and default to "do parallel" dilfridge@g.o
[gentoo-dev] [PATCH 15/15] dev-perl/CGI: Add EAPI=6 test ebuild dilfridge@g.o
[gentoo-dev] [PATCH 14/15] perl-module.eclass: Rewrite src_test for EAPI=6 dilfridge@g.o
[gentoo-dev] [PATCH 12/15] perl-module.eclass: Minor docu improvements dilfridge@g.o
[gentoo-dev] [PATCH 06/15] perl-module.eclass: Introduce MODULE_NAME and MODULE_P while still keeping existing weirdness compatible dilfridge@g.o
Re: [gentoo-dev] [PATCH 01/15] perl-module.eclass: Allow EAPI=6, ban PERL_EXPORT_PHASE_FUNCTIONS there, simplify perl dependency "Michał Górny" <mgorny@g.o>