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

Contents of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Fri Jul 12 15:24:36 2002 UTC (12 years ago) by danarmak
Branch: MAIN
Changes since 1.12: +3 -1 lines
add INHERITED variable to all eclasses. this keeps track of what eclasses were inherited. e.g. INHERITED='kde-base kde base'. this will allow drobbins to take eclass mtime changes into account when deciding whether to refresh ebuild cache.

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.12 2002/07/02 19:34:01 seemant 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 INHERITED="$INHERITED $ECLASS"
13
14 EXPORT_FUNCTIONS src_compile src_install src_test
15
16 newdepend ">=sys-devel/perl-5"
17
18 SRC_PREP="no"
19
20 base_src_prep() {
21
22 SRC_PREP="yes"
23 perl Makefile.PL ${myconf}
24 }
25
26 base_src_compile() {
27
28 [ "${SRC_PREP}" != "yes" ] && base_src_prep
29 make ${mymake} || die "compilation failed"
30 }
31
32 base_src_test() {
33 make test
34 }
35
36 base_src_install() {
37
38 perl_perlinfo
39 dodir ${POD_DIR}
40
41 test -z ${mytargets} && mytargets="install"
42
43 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 ${myinst} \
54 ${mytargets} || die
55
56 sed -e "s:${D}::g" \
57 ${D}/${ARCH_LIB}/perllocal.pod \
58 > ${D}/${POD_DIR}/${P}.pod
59
60 rm -f ${D}/${ARCH_LIB}/perllocal.pod
61
62 dodoc Change* MANIFEST* README* ${mydoc}
63 }

  ViewVC Help
Powered by ViewVC 1.1.20