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

Contents of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun May 5 07:00:38 2002 UTC (12 years, 4 months ago) by seemant
Branch: MAIN
Changes since 1.1: +3 -23 lines
perl post_install and post_remove functions

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.1 2002/05/05 02:58:39 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 ECLASS=base
8 EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm
9
10 newdepend ">=sys-devel/perl-5"
11
12 base_src_compile() {
13 perl Makefile.PL ${myconf}
14 make || die
15 }
16
17 base_src_install() {
18
19 dodir ${POD_DIR}
20
21 make \
22 PREFIX=${D}/usr \
23 INSTALLMAN1DIR=${D}/usr/share/man/man1 \
24 INSTALLMAN2DIR=${D}/usr/share/man/man2 \
25 INSTALLMAN3DIR=${D}/usr/share/man/man3 \
26 INSTALLMAN4DIR=${D}/usr/share/man/man4 \
27 INSTALLMAN5DIR=${D}/usr/share/man/man5 \
28 INSTALLMAN6DIR=${D}/usr/share/man/man6 \
29 INSTALLMAN7DIR=${D}/usr/share/man/man7 \
30 INSTALLMAN8DIR=${D}/usr/share/man/man8 \
31 install || die
32
33 eval `perl '-V:installarchlib'`
34 sed -e "s:${D}::g" \
35 ${D}/${installarchlib}/perllocal.pod \
36 > ${D}/${POD_DIR}/${PF}.pod
37
38 rm -f ${D}/${installarchlib}/perllocal.pod
39
40 dodoc ChangeLog MANIFEST NOTES README VERSIONS WARNING ToDo
41 }

  ViewVC Help
Powered by ViewVC 1.1.20