1 |
commit: b67579249230638ade63a31bdd5bfcb11a78423f |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 12 22:58:31 2015 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 19 13:24:23 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6757924 |
7 |
|
8 |
perl-module.eclass: style |
9 |
|
10 |
eclass/perl-module.eclass | 14 +++++++------- |
11 |
1 file changed, 7 insertions(+), 7 deletions(-) |
12 |
|
13 |
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass |
14 |
index 9971b03..80a829d 100644 |
15 |
--- a/eclass/perl-module.eclass |
16 |
+++ b/eclass/perl-module.eclass |
17 |
@@ -18,7 +18,7 @@ |
18 |
# ExtUtils::MakeMaker or Module::Build), we recommend to use perl-functions.eclass |
19 |
# instead. |
20 |
|
21 |
-case "${EAPI:-0}" in |
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 |
@@ -40,9 +40,9 @@ esac |
27 |
# slot operator (EAPI=6). All packages installing into the vendor_perl |
28 |
# path must use yes here. |
29 |
|
30 |
-case "${EAPI:-0}" in |
31 |
+case ${EAPI:-0} in |
32 |
5) |
33 |
- [[ ${CATEGORY} == "perl-core" ]] && \ |
34 |
+ [[ ${CATEGORY} == perl-core ]] && \ |
35 |
PERL_EXPF+=" pkg_postinst pkg_postrm" |
36 |
|
37 |
case "${GENTOO_DEPEND_ON_PERL:-yes}" in |
38 |
@@ -72,7 +72,7 @@ case "${EAPI:-0}" in |
39 |
esac |
40 |
;; |
41 |
6) |
42 |
- [[ ${CATEGORY} == "perl-core" ]] && \ |
43 |
+ [[ ${CATEGORY} == perl-core ]] && \ |
44 |
PERL_EXPF+=" pkg_postinst pkg_postrm" |
45 |
|
46 |
case "${GENTOO_DEPEND_ON_PERL:-yes}" in |
47 |
@@ -99,7 +99,7 @@ case "${EAPI:-0}" in |
48 |
EXPORT_FUNCTIONS ${PERL_EXPF} |
49 |
;; |
50 |
*) |
51 |
- die "EAPI=${EAPI} is not supported by perl-module.eclass" |
52 |
+ die "EAPI=${EAPI:-0} is not supported by perl-module.eclass" |
53 |
;; |
54 |
esac |
55 |
|
56 |
@@ -131,7 +131,7 @@ LICENSE="${LICENSE:-|| ( Artistic GPL-1+ )}" |
57 |
# (EAPI=6) This variable sets the module author name for the calculation of |
58 |
# SRC_URI. Named MODULE_AUTHOR in EAPI=5. |
59 |
|
60 |
-if [[ ${EAPI:-0} = 5 ]] ; then |
61 |
+if [[ ${EAPI:-0} == 5 ]]; then |
62 |
if [[ -n ${MY_PN} || -n ${MY_PV} || -n ${MODULE_VERSION} ]] ; then |
63 |
: ${MY_P:=${MY_PN:-${PN}}-${MY_PV:-${MODULE_VERSION:-${PV}}}} |
64 |
S=${MY_S:-${WORKDIR}/${MY_P}} |
65 |
@@ -327,7 +327,7 @@ perl-module_src_test() { |
66 |
local my_test_control |
67 |
local my_test_verbose |
68 |
|
69 |
- if [[ ${EAPI:-0} = 5 ]] ; then |
70 |
+ if [[ ${EAPI:-0} == 5 ]] ; then |
71 |
my_test_control=${SRC_TEST} |
72 |
my_test_verbose=${TEST_VERBOSE:-0} |
73 |
if has 'do' ${my_test_control} || has 'parallel' ${my_test_control} ; then |