/[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.2 Revision 1.8
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.2 2002/05/05 07:00:38 seemant Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.8 2002/05/06 14:34:55 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
8#first inherit the pkg_postinst() and pkg_postrm() functions
9. /usr/portage/eclass/inherit.eclass || die
10inherit perl-post
11
7ECLASS=base 12ECLASS=base
8EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm 13EXPORT_FUNCTIONS src_compile src_install src_test
9 14
10newdepend ">=sys-devel/perl-5" 15newdepend ">=sys-devel/perl-5"
11 16
12base_src_compile() { 17base_src_compile() {
18
13 perl Makefile.PL ${myconf} 19 perl Makefile.PL ${myconf}
20 make ${mymake} || die "compilation failed"
21}
22
23base_src_test() {
24
14 make || die 25 make test || die
15} 26}
16 27
17base_src_install() { 28base_src_install() {
18 29
19 dodir ${POD_DIR} 30 dodir ${POD_DIR}
20 31
21 make \ 32 make \
22 PREFIX=${D}/usr \ 33 PREFIX=${D}/usr \
23 INSTALLMAN1DIR=${D}/usr/share/man/man1 \ 34 INSTALLMAN1DIR=${D}/usr/share/man/man1 \
26 INSTALLMAN4DIR=${D}/usr/share/man/man4 \ 37 INSTALLMAN4DIR=${D}/usr/share/man/man4 \
27 INSTALLMAN5DIR=${D}/usr/share/man/man5 \ 38 INSTALLMAN5DIR=${D}/usr/share/man/man5 \
28 INSTALLMAN6DIR=${D}/usr/share/man/man6 \ 39 INSTALLMAN6DIR=${D}/usr/share/man/man6 \
29 INSTALLMAN7DIR=${D}/usr/share/man/man7 \ 40 INSTALLMAN7DIR=${D}/usr/share/man/man7 \
30 INSTALLMAN8DIR=${D}/usr/share/man/man8 \ 41 INSTALLMAN8DIR=${D}/usr/share/man/man8 \
42 ${myinst} \
31 install || die 43 install || die
32 44
33 eval `perl '-V:installarchlib'`
34 sed -e "s:${D}::g" \ 45 sed -e "s:${D}::g" \
35 ${D}/${installarchlib}/perllocal.pod \ 46 ${D}/${ARCH_LIB}/perllocal.pod \
36 > ${D}/${POD_DIR}/${PF}.pod 47 > ${D}/${POD_DIR}/${P}.pod
37 48
38 rm -f ${D}/${installarchlib}/perllocal.pod 49 rm -f ${D}/${ARCH_LIB}/perllocal.pod
39 50
40 dodoc ChangeLog MANIFEST NOTES README VERSIONS WARNING ToDo 51 dodoc Change* MANIFEST README* ${mydoc}
41} 52}

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

  ViewVC Help
Powered by ViewVC 1.1.20