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

Contents of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Thu May 23 21:02:29 2002 UTC (12 years, 4 months ago) by azarah
Branch: MAIN
Changes since 1.10: +10 -2 lines
break up compile function, as we might need to patch the Makefile (CORBA-ORBit)

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 azarah 1.11 # $Header: /home/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.10 2002/05/22 19:34:02 danarmak 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 seemant 1.1 ECLASS=base
12 seemant 1.8 EXPORT_FUNCTIONS src_compile src_install src_test
13 seemant 1.1
14     newdepend ">=sys-devel/perl-5"
15    
16 azarah 1.11 SRC_PREP="no"
17    
18     base_src_prep() {
19    
20     SRC_PREP="yes"
21     perl Makefile.PL ${myconf}
22     }
23    
24 seemant 1.1 base_src_compile() {
25 seemant 1.6
26 azarah 1.11 [ "${SRC_PREP}" != "yes" ] && base_src_prep
27 seemant 1.7 make ${mymake} || die "compilation failed"
28 seemant 1.8 }
29    
30     base_src_test() {
31 seemant 1.9 make test
32 seemant 1.1 }
33    
34     base_src_install() {
35 seemant 1.5
36 seemant 1.1 dodir ${POD_DIR}
37    
38 seemant 1.9 test -z ${mytargets} && mytargets="install"
39    
40 seemant 1.1 make \
41     PREFIX=${D}/usr \
42     INSTALLMAN1DIR=${D}/usr/share/man/man1 \
43     INSTALLMAN2DIR=${D}/usr/share/man/man2 \
44     INSTALLMAN3DIR=${D}/usr/share/man/man3 \
45     INSTALLMAN4DIR=${D}/usr/share/man/man4 \
46     INSTALLMAN5DIR=${D}/usr/share/man/man5 \
47     INSTALLMAN6DIR=${D}/usr/share/man/man6 \
48     INSTALLMAN7DIR=${D}/usr/share/man/man7 \
49     INSTALLMAN8DIR=${D}/usr/share/man/man8 \
50 seemant 1.7 ${myinst} \
51 seemant 1.9 ${mytargets} || die
52 seemant 1.1
53     sed -e "s:${D}::g" \
54 seemant 1.5 ${D}/${ARCH_LIB}/perllocal.pod \
55 seemant 1.8 > ${D}/${POD_DIR}/${P}.pod
56 seemant 1.1
57 seemant 1.5 rm -f ${D}/${ARCH_LIB}/perllocal.pod
58 seemant 1.1
59 seemant 1.9 dodoc Change* MANIFEST* README* ${mydoc}
60 seemant 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20