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

Contents of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations) (download)
Mon May 6 22:26:36 2002 UTC (12 years, 7 months ago) by seemant
Branch: MAIN
Changes since 1.8: +6 -5 lines
tweak

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

  ViewVC Help
Powered by ViewVC 1.1.20