/[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.10
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.10 2002/05/22 19:34:02 danarmak 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
19 perl Makefile.PL ${myconf} 18 perl Makefile.PL ${myconf}
20 make ${mymake} || die "compilation failed" 19 make ${mymake} || die "compilation failed"
21} 20}
22 21
23base_src_test() { 22base_src_test() {
24 23 make test
25 make test || die
26} 24}
27 25
28base_src_install() { 26base_src_install() {
29 27
30 dodir ${POD_DIR} 28 dodir ${POD_DIR}
29
30 test -z ${mytargets} && mytargets="install"
31 31
32 make \ 32 make \
33 PREFIX=${D}/usr \ 33 PREFIX=${D}/usr \
34 INSTALLMAN1DIR=${D}/usr/share/man/man1 \ 34 INSTALLMAN1DIR=${D}/usr/share/man/man1 \
35 INSTALLMAN2DIR=${D}/usr/share/man/man2 \ 35 INSTALLMAN2DIR=${D}/usr/share/man/man2 \
38 INSTALLMAN5DIR=${D}/usr/share/man/man5 \ 38 INSTALLMAN5DIR=${D}/usr/share/man/man5 \
39 INSTALLMAN6DIR=${D}/usr/share/man/man6 \ 39 INSTALLMAN6DIR=${D}/usr/share/man/man6 \
40 INSTALLMAN7DIR=${D}/usr/share/man/man7 \ 40 INSTALLMAN7DIR=${D}/usr/share/man/man7 \
41 INSTALLMAN8DIR=${D}/usr/share/man/man8 \ 41 INSTALLMAN8DIR=${D}/usr/share/man/man8 \
42 ${myinst} \ 42 ${myinst} \
43 install || die 43 ${mytargets} || die
44 44
45 sed -e "s:${D}::g" \ 45 sed -e "s:${D}::g" \
46 ${D}/${ARCH_LIB}/perllocal.pod \ 46 ${D}/${ARCH_LIB}/perllocal.pod \
47 > ${D}/${POD_DIR}/${P}.pod 47 > ${D}/${POD_DIR}/${P}.pod
48 48
49 rm -f ${D}/${ARCH_LIB}/perllocal.pod 49 rm -f ${D}/${ARCH_LIB}/perllocal.pod
50 50
51 dodoc Change* MANIFEST README* ${mydoc} 51 dodoc Change* MANIFEST* README* ${mydoc}
52} 52}

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

  ViewVC Help
Powered by ViewVC 1.1.20