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

Contents of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (hide annotations) (download)
Tue Jul 2 19:34:01 2002 UTC (12 years ago) by seemant
Branch: MAIN
Changes since 1.11: +3 -2 lines
small fix0r

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 seemant 1.12 # $Header: /home/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.11 2002/05/23 21:02:29 azarah 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.12
36     perl_perlinfo
37 seemant 1.1 dodir ${POD_DIR}
38    
39 seemant 1.9 test -z ${mytargets} && mytargets="install"
40    
41 seemant 1.1 make \
42     PREFIX=${D}/usr \
43     INSTALLMAN1DIR=${D}/usr/share/man/man1 \
44     INSTALLMAN2DIR=${D}/usr/share/man/man2 \
45     INSTALLMAN3DIR=${D}/usr/share/man/man3 \
46     INSTALLMAN4DIR=${D}/usr/share/man/man4 \
47     INSTALLMAN5DIR=${D}/usr/share/man/man5 \
48     INSTALLMAN6DIR=${D}/usr/share/man/man6 \
49     INSTALLMAN7DIR=${D}/usr/share/man/man7 \
50     INSTALLMAN8DIR=${D}/usr/share/man/man8 \
51 seemant 1.7 ${myinst} \
52 seemant 1.9 ${mytargets} || die
53 seemant 1.1
54     sed -e "s:${D}::g" \
55 seemant 1.5 ${D}/${ARCH_LIB}/perllocal.pod \
56 seemant 1.8 > ${D}/${POD_DIR}/${P}.pod
57 seemant 1.1
58 seemant 1.5 rm -f ${D}/${ARCH_LIB}/perllocal.pod
59 seemant 1.1
60 seemant 1.9 dodoc Change* MANIFEST* README* ${mydoc}
61 seemant 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20