/[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.17 Revision 1.18
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.17 2002/08/05 20:53:56 mcummings Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.18 2002/08/07 01:49:17 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
18SRC_PREP="no" 18SRC_PREP="no"
19 19
20perl-module_src_prep() { 20perl-module_src_prep() {
21 21
22 SRC_PREP="yes" 22 SRC_PREP="yes"
23 eval `perl '-V:version'`
24 if [ ${version} == '5.6.1' ];
25 then
26 perl Makefile.PL ${myconf}
27 else
23 perl Makefile.PL ${myconf} \ 28 perl Makefile.PL ${myconf} \
24 PREFIX=${D}/usr 29 PREFIX=${D}/usr
30 fi
25} 31}
26 32
27perl-module_src_compile() { 33perl-module_src_compile() {
28 34
29 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep 35 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20