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

Contents of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (hide annotations) (download)
Mon Aug 5 20:53:56 2002 UTC (12 years, 2 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 seemant 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 mcummings 1.17 # $Header: /home/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.16 2002/07/29 17:34:12 seemant Exp $
5 seemant 1.1 # The perl-module eclass is designed to allow easier installation of perl
6     # modules, and their incorporation into the Gentoo Linux system.
7 seemant 1.3
8     #first inherit the pkg_postinst() and pkg_postrm() functions
9     inherit perl-post
10    
11 danarmak 1.14 ECLASS=perl-module
12 danarmak 1.13 INHERITED="$INHERITED $ECLASS"
13    
14 seemant 1.8 EXPORT_FUNCTIONS src_compile src_install src_test
15 seemant 1.1
16     newdepend ">=sys-devel/perl-5"
17    
18 azarah 1.11 SRC_PREP="no"
19    
20 aliz 1.15 perl-module_src_prep() {
21 azarah 1.11
22     SRC_PREP="yes"
23 mcummings 1.17 perl Makefile.PL ${myconf} \
24     PREFIX=${D}/usr
25 azarah 1.11 }
26    
27 aliz 1.15 perl-module_src_compile() {
28 seemant 1.6
29 aliz 1.15 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep
30 seemant 1.7 make ${mymake} || die "compilation failed"
31 seemant 1.8 }
32    
33 aliz 1.15 perl-module_src_test() {
34 seemant 1.9 make test
35 seemant 1.1 }
36    
37 aliz 1.15 perl-module_src_install() {
38 seemant 1.12
39 seemant 1.16 perl-post_perlinfo
40 seemant 1.1 dodir ${POD_DIR}
41    
42 seemant 1.9 test -z ${mytargets} && mytargets="install"
43    
44 seemant 1.1 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 seemant 1.7 ${myinst} \
55 seemant 1.9 ${mytargets} || die
56 seemant 1.1
57     sed -e "s:${D}::g" \
58 seemant 1.5 ${D}/${ARCH_LIB}/perllocal.pod \
59 seemant 1.8 > ${D}/${POD_DIR}/${P}.pod
60 seemant 1.1
61 seemant 1.5 rm -f ${D}/${ARCH_LIB}/perllocal.pod
62 seemant 1.1
63 seemant 1.9 dodoc Change* MANIFEST* README* ${mydoc}
64 seemant 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20