/[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.6 Revision 1.7
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.6 2002/05/05 11:10:18 seemant Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.7 2002/05/05 13:24:37 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 9. /usr/portage/eclass/inherit.eclass || die
15newdepend ">=sys-devel/perl-5" 15newdepend ">=sys-devel/perl-5"
16 16
17base_src_compile() { 17base_src_compile() {
18 18
19 perl Makefile.PL ${myconf} 19 perl Makefile.PL ${myconf}
20 make || die "compilation failed" 20 make ${mymake} || die "compilation failed"
21 make test || die "make test failed" 21 make test || die "make test failed"
22} 22}
23 23
24base_src_install() { 24base_src_install() {
25 25
33 INSTALLMAN4DIR=${D}/usr/share/man/man4 \ 33 INSTALLMAN4DIR=${D}/usr/share/man/man4 \
34 INSTALLMAN5DIR=${D}/usr/share/man/man5 \ 34 INSTALLMAN5DIR=${D}/usr/share/man/man5 \
35 INSTALLMAN6DIR=${D}/usr/share/man/man6 \ 35 INSTALLMAN6DIR=${D}/usr/share/man/man6 \
36 INSTALLMAN7DIR=${D}/usr/share/man/man7 \ 36 INSTALLMAN7DIR=${D}/usr/share/man/man7 \
37 INSTALLMAN8DIR=${D}/usr/share/man/man8 \ 37 INSTALLMAN8DIR=${D}/usr/share/man/man8 \
38 ${myinst} 38 ${myinst} \
39 install || die 39 install || die
40 40
41 sed -e "s:${D}::g" \ 41 sed -e "s:${D}::g" \
42 ${D}/${ARCH_LIB}/perllocal.pod \ 42 ${D}/${ARCH_LIB}/perllocal.pod \
43 > ${D}/${POD_DIR}/${PF}.pod 43 > ${D}/${POD_DIR}/${PF}.pod
44 44
45 rm -f ${D}/${ARCH_LIB}/perllocal.pod 45 rm -f ${D}/${ARCH_LIB}/perllocal.pod
46 46
47 dodoc ChangeLog MANIFEST NOTES README VERSIONS WARNING ToDo 47 dodoc ChangeLog MANIFEST README* ${mydoc}
48} 48}

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20