1 |
* Torsten Veller <ml-en@××××××.net>: |
2 |
> The perl-module.eclass must be updated to support EAPI=3 [1] and |
3 |
> a new eclass will be added which does contain some (more or less) useful |
4 |
> stand-alone functions split from the old perl-module.eclass without |
5 |
> exporting phase functions. |
6 |
|
7 |
Somehow I was sleeping: It's more useful to set EXPORT_FUNCTIONS |
8 |
conditionally and have all functions in perl-module.eclass. |
9 |
|
10 |
I think this justifies the elimination of the perl-helper.eclass. |
11 |
|
12 |
Sorry for the confusion. Hopefully wide awake now. |
13 |
|
14 |
|
15 |
|
16 |
New perl-helper.eclass: |
17 |
|
18 |
| # Copyright 1999-2010 Gentoo Foundation |
19 |
| # Distributed under the terms of the GNU General Public License v2 |
20 |
| # $Header: $ |
21 |
| |
22 |
| # @DEAD |
23 |
| |
24 |
| PERL_EXPORT_PHASE_FUNCTIONS=no |
25 |
| inherit perl-module |
26 |
|
27 |
|
28 |
Head of new perl-module.eclass: |
29 |
http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=tree;f=eclass;hb=HEAD |
30 |
|
31 |
| @@ -12,19 +12,19 @@ |
32 |
| # The perl-module eclass is designed to allow easier installation of perl |
33 |
| # modules, and their incorporation into the Gentoo Linux system. |
34 |
| |
35 |
| -inherit perl-helper eutils base |
36 |
| +inherit eutils base |
37 |
| [[ ${CATEGORY} == "perl-core" ]] && inherit alternatives |
38 |
| |
39 |
| PERL_EXPF="src_unpack src_compile src_test src_install" |
40 |
| |
41 |
| case "${EAPI:-0}" in |
42 |
| 0|1) |
43 |
| - PERL_EXPF="${PERL_EXPF} pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm" |
44 |
| + PERL_EXPF+=" pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm" |
45 |
| ;; |
46 |
| 2|3) |
47 |
| - PERL_EXPF="${PERL_EXPF} src_prepare src_configure" |
48 |
| + PERL_EXPF+=" src_prepare src_configure" |
49 |
| [[ ${CATEGORY} == "perl-core" ]] && \ |
50 |
| - PERL_EXPF="${PERL_EXPF} pkg_postinst pkg_postrm" |
51 |
| + PERL_EXPF+=" pkg_postinst pkg_postrm" |
52 |
| |
53 |
| case "${GENTOO_DEPEND_ON_PERL:-yes}" in |
54 |
| yes) |
55 |
| @@ -38,7 +38,17 @@ case "${EAPI:-0}" in |
56 |
| ;; |
57 |
| esac |
58 |
| |
59 |
| -EXPORT_FUNCTIONS ${PERL_EXPF} |
60 |
| +case "${PERL_EXPORT_PHASE_FUNCTIONS:-yes}" in |
61 |
| + yes) |
62 |
| + EXPORT_FUNCTIONS ${PERL_EXPF} |
63 |
| + ;; |
64 |
| + no) |
65 |
| + debug-print "PERL_EXPORT_PHASE_FUNCTIONS=no" |
66 |
| + ;; |
67 |
| + *) |
68 |
| + DEPEND+=" PERL_EXPORT_PHASE_FUNCTIONS-UNSUPPORTED" |
69 |
| + ;; |
70 |
| +esac |
71 |
| |
72 |
| DESCRIPTION="Based on the $ECLASS eclass" |
73 |
... |