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

Diff of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.12
1# Copyright 2002 Gentoo Technologies, Inc. 1# Copyright 2002 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License, v2 2# Distributed under the terms of the GNU General Public License, v2
3# Author: Seemant Kulleen <seemant@gentoo.org> 3# Author: Seemant Kulleen <seemant@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.8 2002/05/06 14:34:55 seemant Exp $ 4# $Header: /var/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 5# The perl-module eclass is designed to allow easier installation of perl
6# modules, and their incorporation into the Gentoo Linux system. 6# modules, and their incorporation into the Gentoo Linux system.
7 7
8#first inherit the pkg_postinst() and pkg_postrm() functions 8#first inherit the pkg_postinst() and pkg_postrm() functions
9. /usr/portage/eclass/inherit.eclass || die
10inherit perl-post 9inherit perl-post
11 10
12ECLASS=base 11ECLASS=base
13EXPORT_FUNCTIONS src_compile src_install src_test 12EXPORT_FUNCTIONS src_compile src_install src_test
14 13
15newdepend ">=sys-devel/perl-5" 14newdepend ">=sys-devel/perl-5"
16 15
16SRC_PREP="no"
17
18base_src_prep() {
19
20 SRC_PREP="yes"
21 perl Makefile.PL ${myconf}
22}
23
17base_src_compile() { 24base_src_compile() {
18 25
19 perl Makefile.PL ${myconf} 26 [ "${SRC_PREP}" != "yes" ] && base_src_prep
20 make ${mymake} || die "compilation failed" 27 make ${mymake} || die "compilation failed"
21} 28}
22 29
23base_src_test() { 30base_src_test() {
24 31 make test
25 make test || die
26} 32}
27 33
28base_src_install() { 34base_src_install() {
29 35
36 perl_perlinfo
30 dodir ${POD_DIR} 37 dodir ${POD_DIR}
38
39 test -z ${mytargets} && mytargets="install"
31 40
32 make \ 41 make \
33 PREFIX=${D}/usr \ 42 PREFIX=${D}/usr \
34 INSTALLMAN1DIR=${D}/usr/share/man/man1 \ 43 INSTALLMAN1DIR=${D}/usr/share/man/man1 \
35 INSTALLMAN2DIR=${D}/usr/share/man/man2 \ 44 INSTALLMAN2DIR=${D}/usr/share/man/man2 \
38 INSTALLMAN5DIR=${D}/usr/share/man/man5 \ 47 INSTALLMAN5DIR=${D}/usr/share/man/man5 \
39 INSTALLMAN6DIR=${D}/usr/share/man/man6 \ 48 INSTALLMAN6DIR=${D}/usr/share/man/man6 \
40 INSTALLMAN7DIR=${D}/usr/share/man/man7 \ 49 INSTALLMAN7DIR=${D}/usr/share/man/man7 \
41 INSTALLMAN8DIR=${D}/usr/share/man/man8 \ 50 INSTALLMAN8DIR=${D}/usr/share/man/man8 \
42 ${myinst} \ 51 ${myinst} \
43 install || die 52 ${mytargets} || die
44 53
45 sed -e "s:${D}::g" \ 54 sed -e "s:${D}::g" \
46 ${D}/${ARCH_LIB}/perllocal.pod \ 55 ${D}/${ARCH_LIB}/perllocal.pod \
47 > ${D}/${POD_DIR}/${P}.pod 56 > ${D}/${POD_DIR}/${P}.pod
48 57
49 rm -f ${D}/${ARCH_LIB}/perllocal.pod 58 rm -f ${D}/${ARCH_LIB}/perllocal.pod
50 59
51 dodoc Change* MANIFEST README* ${mydoc} 60 dodoc Change* MANIFEST* README* ${mydoc}
52} 61}

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20