| 1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.53 2003/10/19 11:50:36 lanius Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.55 2003/12/22 20:40:05 rac Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Seemant Kulleen <seemant@gentoo.org> |
5 | # Author: Seemant Kulleen <seemant@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # The perl-module eclass is designed to allow easier installation of perl |
7 | # The perl-module eclass is designed to allow easier installation of perl |
| 8 | # modules, and their incorporation into the Gentoo Linux system. |
8 | # modules, and their incorporation into the Gentoo Linux system. |
| … | |
… | |
| 15 | perlinfo updatepod |
15 | perlinfo updatepod |
| 16 | |
16 | |
| 17 | eval `perl '-V:version'` |
17 | eval `perl '-V:version'` |
| 18 | newdepend ">=dev-lang/perl-5.8.0-r12" |
18 | newdepend ">=dev-lang/perl-5.8.0-r12" |
| 19 | SRC_PREP="no" |
19 | SRC_PREP="no" |
|
|
20 | SRC_TEST="skip" |
| 20 | |
21 | |
| 21 | SITE_LIB="" |
22 | SITE_LIB="" |
| 22 | ARCH_LIB="" |
23 | ARCH_LIB="" |
| 23 | POD_DIR="" |
24 | POD_DIR="" |
| 24 | |
25 | |
| 25 | # handling of DESTDIR changed in makemaker 6.11 |
26 | # handling of DESTDIR changed in makemaker 6.11 |
| 26 | MMSIXELEVEN=`perl -e 'use ExtUtils::MakeMaker; print( $ExtUtils::MakeMaker::VERSION gt "6.11" )'` |
27 | MMSIXELEVEN=`perl -e 'use ExtUtils::MakeMaker; print( $ExtUtils::MakeMaker::VERSION ge "6.11" )'` |
| 27 | |
28 | |
| 28 | perl-module_src_prep() { |
29 | perl-module_src_prep() { |
| 29 | |
30 | |
| 30 | SRC_PREP="yes" |
31 | SRC_PREP="yes" |
| 31 | if [ "${style}" == "builder" ]; then |
32 | if [ "${style}" == "builder" ]; then |
| … | |
… | |
| 47 | [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep |
48 | [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep |
| 48 | if [ "${style}" != "builder" ]; then |
49 | if [ "${style}" != "builder" ]; then |
| 49 | make ${mymake} || die "compilation failed" |
50 | make ${mymake} || die "compilation failed" |
| 50 | fi |
51 | fi |
| 51 | |
52 | |
|
|
53 | if [ "${SRC_TEST}" == "do" ]; then |
|
|
54 | perl-module_src_test || die "test failed" |
|
|
55 | SRC_TEST="done" |
|
|
56 | fi |
| 52 | } |
57 | } |
| 53 | |
58 | |
| 54 | perl-module_src_test() { |
59 | perl-module_src_test() { |
| 55 | if [ "${style}" == "builder" ]; then |
60 | if [ "${style}" == "builder" ]; then |
| 56 | perl ${S}/Build test |
61 | perl ${S}/Build test |