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.43 2003/06/27 00:57:17 mcummings Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.48 2003/07/25 21:08:44 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. |
… | |
… | |
13 | EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm \ |
13 | EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm \ |
14 | src_compile src_install src_test \ |
14 | src_compile src_install src_test \ |
15 | perlinfo updatepod |
15 | perlinfo updatepod |
16 | |
16 | |
17 | eval `perl '-V:version'` |
17 | eval `perl '-V:version'` |
18 | DEPEND=">=dev-lang/perl-5.6.1-r12 |
18 | newdepend ">=dev-lang/perl-5.8.0-r12" |
19 | ${DEPEND}" |
|
|
20 | SRC_PREP="no" |
19 | SRC_PREP="no" |
21 | |
20 | |
22 | SITE_LIB="" |
21 | SITE_LIB="" |
23 | ARCH_LIB="" |
22 | ARCH_LIB="" |
24 | POD_DIR="" |
23 | POD_DIR="" |
25 | |
24 | |
26 | perl-module_src_prep() { |
25 | perl-module_src_prep() { |
27 | |
26 | |
28 | SRC_PREP="yes" |
27 | SRC_PREP="yes" |
29 | if [ "${style}" == "builder" ]; then |
28 | if [ "${style}" == "builder" ]; then |
30 | perl ${S}/Build.PL destdir=${D} |
29 | perl ${S}/Build.PL installdirs=vendor destdir=${D} |
31 | else |
30 | else |
32 | perl Makefile.PL ${myconf} \ |
31 | perl Makefile.PL INSTALLDIRS=vendor ${myconf} \ |
33 | PREFIX=${D}/usr |
32 | PREFIX=${D}/usr |
34 | fi |
33 | fi |
35 | |
34 | |
36 | } |
35 | } |
37 | |
36 | |