/[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.100 Revision 1.101
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
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.100 2006/08/06 03:46:21 mcummings Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.101 2006/08/28 20:22:20 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
91VENDOR_LIB="" 91VENDOR_LIB=""
92VENDOR_ARCH="" 92VENDOR_ARCH=""
93ARCH_LIB="" 93ARCH_LIB=""
94POD_DIR="" 94POD_DIR=""
95BUILDER_VER="" 95BUILDER_VER=""
96pm_echovar=""
96 97
97perl-module_src_prep() { 98perl-module_src_prep() {
98 99
99 perlinfo 100 perlinfo
100 101
102 # Disable ExtUtils::AutoInstall from prompting 103 # Disable ExtUtils::AutoInstall from prompting
103 export PERL_EXTUTILS_AUTOINSTALL="--skipdeps" 104 export PERL_EXTUTILS_AUTOINSTALL="--skipdeps"
104 105
105 106
106 SRC_PREP="yes" 107 SRC_PREP="yes"
108 pwd
107 if [ "${PREFER_BUILDPL}" == "yes" ] && ( [ -f Build.PL ] || [ ${PN} == "module-build" ] ); then 109 if [ "${PREFER_BUILDPL}" == "yes" ] && ( [ -f Build.PL ] || [ ${PN} == "module-build" ] ); then
108 einfo "Using Module::Build" 110 einfo "Using Module::Build"
109 perl Build.PL --installdirs=vendor --destdir=${D} --libdoc= || die "Unable to build! (are you using USE=\"build\"?)" 111 echo "$pm_echovar" | perl Build.PL --installdirs=vendor --destdir=${D} --libdoc= || die "Unable to build! (are you using USE=\"build\"?)"
110 elif [ -f Makefile.PL ] && [ ! ${PN} == "module-build" ]; then 112 elif [ -f Makefile.PL ] && [ ! ${PN} == "module-build" ]; then
111 einfo "Using ExtUtils::MakeMaker" 113 einfo "Using ExtUtils::MakeMaker"
112 #perl Makefile.PL ${myconf} \
113 perl Makefile.PL ${myconf} INSTALLMAN3DIR='none'\ 114 echo "$pm_echovar" | perl Makefile.PL ${myconf} INSTALLMAN3DIR='none'\
114 PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} || die "Unable to build! (are you using USE=\"build\"?)" 115 PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} || die "Unable to build! (are you using USE=\"build\"?)"
115 fi 116 fi
116 if [ ! -f Build.PL ] && [ ! -f Makefile.PL ]; then 117 if [ ! -f Build.PL ] && [ ! -f Makefile.PL ]; then
117 einfo "No Make or Build file detected..." 118 einfo "No Make or Build file detected..."
118 return 119 return

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101

  ViewVC Help
Powered by ViewVC 1.1.20