/[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.14 Revision 1.15
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.14 2002/07/26 21:50:16 danarmak Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.15 2002/07/27 18:28:00 aliz 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
9inherit perl-post 9inherit perl-post
15 15
16newdepend ">=sys-devel/perl-5" 16newdepend ">=sys-devel/perl-5"
17 17
18SRC_PREP="no" 18SRC_PREP="no"
19 19
20base_src_prep() { 20perl-module_src_prep() {
21 21
22 SRC_PREP="yes" 22 SRC_PREP="yes"
23 perl Makefile.PL ${myconf} 23 perl Makefile.PL ${myconf}
24} 24}
25 25
26base_src_compile() { 26perl-module_src_compile() {
27 27
28 [ "${SRC_PREP}" != "yes" ] && base_src_prep 28 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep
29 make ${mymake} || die "compilation failed" 29 make ${mymake} || die "compilation failed"
30} 30}
31 31
32base_src_test() { 32perl-module_src_test() {
33 make test 33 make test
34} 34}
35 35
36base_src_install() { 36perl-module_src_install() {
37 37
38 perl_perlinfo 38 perl_perlinfo
39 dodir ${POD_DIR} 39 dodir ${POD_DIR}
40 40
41 test -z ${mytargets} && mytargets="install" 41 test -z ${mytargets} && mytargets="install"

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20