/[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.21 Revision 1.22
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.21 2002/09/09 21:51:14 mcummings Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.22 2002/09/14 21:32:20 mcummings 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
14EXPORT_FUNCTIONS src_compile src_install src_test 14EXPORT_FUNCTIONS src_compile src_install src_test
15 15
16eval `perl '-V:version'` 16eval `perl '-V:version'`
17 if [ ${version} == '5.6.1' ]; 17 if [ ${version} == '5.6.1' ];
18 then 18 then
19 DEPEND=">=sys-devel/perl-5 \ 19 DEPEND="${DEPEND} >=sys-devel/perl-5 \
20 dev-perl/ExtUtils-MakeMaker" 20 dev-perl/ExtUtils-MakeMaker"
21 else 21 else
22 DEPEND=">=sys-devel/perl-5" 22 DEPEND="${DEPEND} >=sys-devel/perl-5"
23 fi 23 fi
24 24
25 25
26SRC_PREP="no" 26SRC_PREP="no"
27 27
28perl-module_src_prep() { 28perl-module_src_prep() {
29 29
30 SRC_PREP="yes" 30 SRC_PREP="yes"
31 eval `perl '-V:version'`
32 perl Makefile.PL ${myconf} \ 31 perl Makefile.PL ${myconf} \
33 PREFIX=${D}/usr 32 PREFIX=${D}/usr
34} 33}
35 34
36perl-module_src_compile() { 35perl-module_src_compile() {

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20