/[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.1 Revision 1.4
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.1 2002/05/05 02:58:39 seemant Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.4 2002/05/05 08:05:32 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_prerm 13EXPORT_FUNCTIONS src_compile src_install
9 14
10newdepend ">=sys-devel/perl-5" 15newdepend ">=sys-devel/perl-5"
11POD_DIR=/usr/share/perl/gentoo-pods
12 16
13base_src_compile() { 17base_src_compile() {
14 perl Makefile.PL ${myconf} 18 perl Makefile.PL ${myconf}
15 make || die 19 make || die
16} 20}
32 install || die 36 install || die
33 37
34 eval `perl '-V:installarchlib'` 38 eval `perl '-V:installarchlib'`
35 sed -e "s:${D}::g" \ 39 sed -e "s:${D}::g" \
36 ${D}/${installarchlib}/perllocal.pod \ 40 ${D}/${installarchlib}/perllocal.pod \
37 > ${D}/${POD_DIR}/${P} 41 > ${D}/${POD_DIR}/${PF}.pod
38 42
39 rm -f ${D}/${installarchlib}/perllocal.pod 43 rm -f ${D}/${installarchlib}/perllocal.pod
40 44
41 dodoc ChangeLog MANIFEST NOTES README VERSIONS WARNING ToDo 45 dodoc ChangeLog MANIFEST NOTES README VERSIONS WARNING ToDo
42} 46}
43
44
45base_pkg_postinst() {
46
47 base_doperlmod
48
49}
50
51base_pkg_postrm() {
52
53 base_doperlpod
54}
55
56base_doperlpod() {
57
58 eval `perl '-V:installarchlib'`
59 cat ${POD_DIR}/mod-* >> ${installarchlib}/perllocal.pod
60
61}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20