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

Contents of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log


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

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 # $Header: /home/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.11 2002/05/23 21:02:29 azarah Exp $
5 # The perl-module eclass is designed to allow easier installation of perl
6 # modules, and their incorporation into the Gentoo Linux system.
7
8 #first inherit the pkg_postinst() and pkg_postrm() functions
9 inherit perl-post
10
11 ECLASS=base
12 EXPORT_FUNCTIONS src_compile src_install src_test
13
14 newdepend ">=sys-devel/perl-5"
15
16 SRC_PREP="no"
17
18 base_src_prep() {
19
20 SRC_PREP="yes"
21 perl Makefile.PL ${myconf}
22 }
23
24 base_src_compile() {
25
26 [ "${SRC_PREP}" != "yes" ] && base_src_prep
27 make ${mymake} || die "compilation failed"
28 }
29
30 base_src_test() {
31 make test
32 }
33
34 base_src_install() {
35
36 perl_perlinfo
37 dodir ${POD_DIR}
38
39 test -z ${mytargets} && mytargets="install"
40
41 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 ${myinst} \
52 ${mytargets} || die
53
54 sed -e "s:${D}::g" \
55 ${D}/${ARCH_LIB}/perllocal.pod \
56 > ${D}/${POD_DIR}/${P}.pod
57
58 rm -f ${D}/${ARCH_LIB}/perllocal.pod
59
60 dodoc Change* MANIFEST* README* ${mydoc}
61 }

  ViewVC Help
Powered by ViewVC 1.1.20