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 |