/[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.2
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.2 2002/05/05 07:00:38 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.
7ECLASS=base 7ECLASS=base
8EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_prerm 8EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm
9 9
10newdepend ">=sys-devel/perl-5" 10newdepend ">=sys-devel/perl-5"
11POD_DIR=/usr/share/perl/gentoo-pods
12 11
13base_src_compile() { 12base_src_compile() {
14 perl Makefile.PL ${myconf} 13 perl Makefile.PL ${myconf}
15 make || die 14 make || die
16} 15}
32 install || die 31 install || die
33 32
34 eval `perl '-V:installarchlib'` 33 eval `perl '-V:installarchlib'`
35 sed -e "s:${D}::g" \ 34 sed -e "s:${D}::g" \
36 ${D}/${installarchlib}/perllocal.pod \ 35 ${D}/${installarchlib}/perllocal.pod \
37 > ${D}/${POD_DIR}/${P} 36 > ${D}/${POD_DIR}/${PF}.pod
38 37
39 rm -f ${D}/${installarchlib}/perllocal.pod 38 rm -f ${D}/${installarchlib}/perllocal.pod
40 39
41 dodoc ChangeLog MANIFEST NOTES README VERSIONS WARNING ToDo 40 dodoc ChangeLog MANIFEST NOTES README VERSIONS WARNING ToDo
42} 41}
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.2

  ViewVC Help
Powered by ViewVC 1.1.20