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

Contents of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (hide annotations) (download)
Mon Jul 29 17:34:12 2002 UTC (12 years, 2 months ago) by seemant
Branch: MAIN
Changes since 1.15: +2 -2 lines
typo fix

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.16 # $Header: /home/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.15 2002/07/27 18:28:00 aliz 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     perl Makefile.PL ${myconf}
24     }
25    
26 aliz 1.15 perl-module_src_compile() {
27 seemant 1.6
28 aliz 1.15 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep
29 seemant 1.7 make ${mymake} || die "compilation failed"
30 seemant 1.8 }
31    
32 aliz 1.15 perl-module_src_test() {
33 seemant 1.9 make test
34 seemant 1.1 }
35    
36 aliz 1.15 perl-module_src_install() {
37 seemant 1.12
38 seemant 1.16 perl-post_perlinfo
39 seemant 1.1 dodir ${POD_DIR}
40    
41 seemant 1.9 test -z ${mytargets} && mytargets="install"
42    
43 seemant 1.1 make \
44     PREFIX=${D}/usr \
45     INSTALLMAN1DIR=${D}/usr/share/man/man1 \
46     INSTALLMAN2DIR=${D}/usr/share/man/man2 \
47     INSTALLMAN3DIR=${D}/usr/share/man/man3 \
48     INSTALLMAN4DIR=${D}/usr/share/man/man4 \
49     INSTALLMAN5DIR=${D}/usr/share/man/man5 \
50     INSTALLMAN6DIR=${D}/usr/share/man/man6 \
51     INSTALLMAN7DIR=${D}/usr/share/man/man7 \
52     INSTALLMAN8DIR=${D}/usr/share/man/man8 \
53 seemant 1.7 ${myinst} \
54 seemant 1.9 ${mytargets} || die
55 seemant 1.1
56     sed -e "s:${D}::g" \
57 seemant 1.5 ${D}/${ARCH_LIB}/perllocal.pod \
58 seemant 1.8 > ${D}/${POD_DIR}/${P}.pod
59 seemant 1.1
60 seemant 1.5 rm -f ${D}/${ARCH_LIB}/perllocal.pod
61 seemant 1.1
62 seemant 1.9 dodoc Change* MANIFEST* README* ${mydoc}
63 seemant 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20