/[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.57 Revision 1.58
1# Copyright 1999-2004 Gentoo Technologies, Inc. 1# Copyright 1999-2004 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# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.57 2004/03/05 10:30:33 mcummings Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.58 2004/04/02 10:22:50 mcummings Exp $
4# 4#
5# Author: Seemant Kulleen <seemant@gentoo.org> 5# Author: Seemant Kulleen <seemant@gentoo.org>
6# Maintained by the Perl herd <perl@gentoo.org> 6# Maintained by the Perl herd <perl@gentoo.org>
7# 7#
8# The perl-module eclass is designed to allow easier installation of perl 8# The perl-module eclass is designed to allow easier installation of perl
24SITE_ARCH="" 24SITE_ARCH=""
25SITE_LIB="" 25SITE_LIB=""
26ARCH_LIB="" 26ARCH_LIB=""
27POD_DIR="" 27POD_DIR=""
28MMSIXELEVEN="" 28MMSIXELEVEN=""
29
30getperlinfo() {
31 eval `perl '-V:version'`
32 PERL_VERSION=${version}
33 eval `perl '-V:installsitearch'`
34 SITE_ARCH=${installsitearch}
35 eval `perl '-V:installarchlib'`
36 ARCH_LIB=${installarchlib}
37 eval `perl '-V:installarchlib'`
38 ARCH_LIB=${installarchlib}
39 eval `perl '-V:installsitearch'`
40 SITE_LIB=${installsitearch}
41# handling of DESTDIR changed in makemaker 6.11
42 MMSIXELEVEN=`perl -e 'use ExtUtils::MakeMaker; print( $ExtUtils::MakeMaker::VERSION ge "6.11" )'`
43}
44
45getperlinfo
46 29
47perl-module_src_prep() { 30perl-module_src_prep() {
48 SRC_PREP="yes" 31 SRC_PREP="yes"
49 if [ "${style}" == "builder" ]; then 32 if [ "${style}" == "builder" ]; then
50 perl ${S}/Build.PL installdirs=vendor destdir=${D} 33 perl ${S}/Build.PL installdirs=vendor destdir=${D}
182 165
183 if [ -f /usr/bin/perl ] 166 if [ -f /usr/bin/perl ]
184 then 167 then
185 POD_DIR="/usr/share/perl/gentoo-pods/${version}" 168 POD_DIR="/usr/share/perl/gentoo-pods/${version}"
186 fi 169 fi
170 eval `perl '-V:version'`
171 PERL_VERSION=${version}
172 eval `perl '-V:installsitearch'`
173 SITE_ARCH=${installsitearch}
174 eval `perl '-V:installarchlib'`
175 ARCH_LIB=${installarchlib}
176 eval `perl '-V:installarchlib'`
177 ARCH_LIB=${installarchlib}
178 eval `perl '-V:installsitearch'`
179 SITE_LIB=${installsitearch}
180# handling of DESTDIR changed in makemaker 6.11
181 MMSIXELEVEN=`perl -e 'use ExtUtils::MakeMaker; print( $ExtUtils::MakeMaker::VERSION ge "6.11" )'`
187 182
188} 183}
189 184
190updatepod() { 185updatepod() {
191 perlinfo 186 perlinfo

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

  ViewVC Help
Powered by ViewVC 1.1.20