/[gentoo-x86]/eclass/perl-module.eclass
Gentoo

Contents of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Mon Aug 5 20:53:56 2002 UTC (11 years, 11 months ago) by mcummings
Branch: MAIN
Changes since 1.16: +3 -2 lines
Added -PREFIX to the perl Makefile.pl line - this is more in compliance
with the format that perl accepts for the preconfig of the make, and
makes sure that no sandbox violation occurs in perl 5.8.0. This has been
tested with both 5.8.0 and 5.6.1

1 # Copyright 2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2
3 # Author: Seemant Kulleen <seemant@gentoo.org>
4 # $Header: /home/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.16 2002/07/29 17:34:12 seemant Exp $
5 # The perl-module eclass is designed to allow easier installation of perl
6 # modules, and their incorporation into the Gentoo Linux system.
7
8 #first inherit the pkg_postinst() and pkg_postrm() functions
9 inherit perl-post
10
11 ECLASS=perl-module
12 INHERITED="$INHERITED $ECLASS"
13
14 EXPORT_FUNCTIONS src_compile src_install src_test
15
16 newdepend ">=sys-devel/perl-5"
17
18 SRC_PREP="no"
19
20 perl-module_src_prep() {
21
22 SRC_PREP="yes"
23 perl Makefile.PL ${myconf} \
24 PREFIX=${D}/usr
25 }
26
27 perl-module_src_compile() {
28
29 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep
30 make ${mymake} || die "compilation failed"
31 }
32
33 perl-module_src_test() {
34 make test
35 }
36
37 perl-module_src_install() {
38
39 perl-post_perlinfo
40 dodir ${POD_DIR}
41
42 test -z ${mytargets} && mytargets="install"
43
44 make \
45 PREFIX=${D}/usr \
46 INSTALLMAN1DIR=${D}/usr/share/man/man1 \
47 INSTALLMAN2DIR=${D}/usr/share/man/man2 \
48 INSTALLMAN3DIR=${D}/usr/share/man/man3 \
49 INSTALLMAN4DIR=${D}/usr/share/man/man4 \
50 INSTALLMAN5DIR=${D}/usr/share/man/man5 \
51 INSTALLMAN6DIR=${D}/usr/share/man/man6 \
52 INSTALLMAN7DIR=${D}/usr/share/man/man7 \
53 INSTALLMAN8DIR=${D}/usr/share/man/man8 \
54 ${myinst} \
55 ${mytargets} || die
56
57 sed -e "s:${D}::g" \
58 ${D}/${ARCH_LIB}/perllocal.pod \
59 > ${D}/${POD_DIR}/${P}.pod
60
61 rm -f ${D}/${ARCH_LIB}/perllocal.pod
62
63 dodoc Change* MANIFEST* README* ${mydoc}
64 }

  ViewVC Help
Powered by ViewVC 1.1.20