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

Contents of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Thu May 23 21:02:29 2002 UTC (13 years 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 # 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.10 2002/05/22 19:34:02 danarmak 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 dodir ${POD_DIR}
37
38 test -z ${mytargets} && mytargets="install"
39
40 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 ${myinst} \
51 ${mytargets} || die
52
53 sed -e "s:${D}::g" \
54 ${D}/${ARCH_LIB}/perllocal.pod \
55 > ${D}/${POD_DIR}/${P}.pod
56
57 rm -f ${D}/${ARCH_LIB}/perllocal.pod
58
59 dodoc Change* MANIFEST* README* ${mydoc}
60 }

  ViewVC Help
Powered by ViewVC 1.1.20