/[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.10 Revision 1.11
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.10 2002/05/22 19:34:02 danarmak Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.11 2002/05/23 21:02:29 azarah 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
11ECLASS=base 11ECLASS=base
12EXPORT_FUNCTIONS src_compile src_install src_test 12EXPORT_FUNCTIONS src_compile src_install src_test
13 13
14newdepend ">=sys-devel/perl-5" 14newdepend ">=sys-devel/perl-5"
15 15
16SRC_PREP="no"
17
18base_src_prep() {
19
20 SRC_PREP="yes"
21 perl Makefile.PL ${myconf}
22}
23
16base_src_compile() { 24base_src_compile() {
17 25
18 perl Makefile.PL ${myconf} 26 [ "${SRC_PREP}" != "yes" ] && base_src_prep
19 make ${mymake} || die "compilation failed" 27 make ${mymake} || die "compilation failed"
20} 28}
21 29
22base_src_test() { 30base_src_test() {
23 make test 31 make test

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20