/[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.83 Revision 1.85
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.83 2006/02/28 02:56:48 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.85 2006/04/01 15:58:29 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
9# modules, and their incorporation into the Gentoo Linux system. 9# modules, and their incorporation into the Gentoo Linux system.
10 10
11 11
12EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm src_compile src_install src_test perlinfo fixlocalpod updatepod 12EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm src_compile src_install src_test
13 13
14# 2005.04.28 mcummings 14# 2005.04.28 mcummings
15# Mounting problems with src_test functions has forced me to make the 15# Mounting problems with src_test functions has forced me to make the
16# compilation of perl modules honor the FEATURES maketest flag rather than what 16# compilation of perl modules honor the FEATURES maketest flag rather than what
17# is generally necessary. I've left a block to make sure we still need to set 17# is generally necessary. I've left a block to make sure we still need to set
93 93
94 export PERL_MM_USE_DEFAULT=1 94 export PERL_MM_USE_DEFAULT=1
95 95
96 96
97 SRC_PREP="yes" 97 SRC_PREP="yes"
98 if [ -f ${S}/Makefile.PL ]; then
99 einfo "Using ExtUtils::MakeMaker"
100 #perl Makefile.PL ${myconf} \
101 perl Makefile.PL ${myconf} INSTALLMAN3DIR='none'\
102 PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D}
98 if [ -f ${S}/Build.PL ] && [ "${USE_BUILDER}" == "yes" ]; then 103 elif [ -f ${S}/Build.PL ] && [ "${USE_BUILDER}" == "yes" ]; then
99 einfo "Using Module::Build" 104 einfo "Using Module::Build"
100 if [ -z ${BUILDER_VER} ]; then 105 if [ -z ${BUILDER_VER} ]; then
101 eerror 106 eerror
102 eerror "Please post a bug on http://bugs.gentoo.org assigned to" 107 eerror "Please post a bug on http://bugs.gentoo.org assigned to"
103 eerror "perl@gentoo.org - ${P} was added without a dependancy" 108 eerror "perl@gentoo.org - ${P} was added without a dependancy"
107 die 112 die
108 else 113 else
109 perl ${S}/Build.PL installdirs=vendor destdir=${D} libdoc= 114 perl ${S}/Build.PL installdirs=vendor destdir=${D} libdoc=
110 fi 115 fi
111 else 116 else
112 einfo "Using ExtUtils::MakeMaker" 117 einfo "No Make or Build file detect..."
113 #perl Makefile.PL ${myconf} \ 118 return
114 perl Makefile.PL ${myconf} INSTALLMAN3DIR='none'\
115 PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D}
116 fi 119 fi
117} 120}
118 121
119perl-module_src_compile() { 122perl-module_src_compile() {
120 123
177 perlinfo 180 perlinfo
178} 181}
179 182
180perl-module_pkg_postinst() { 183perl-module_pkg_postinst() {
181 184
185 einfo "Man pages are not installed for most modules now."
186 einfo "Please use perldoc instad."
182 updatepod 187 updatepod
183} 188}
184 189
185perl-module_pkg_prerm() { 190perl-module_pkg_prerm() {
186 191
217 local installvendorarch 222 local installvendorarch
218 eval `perl '-V:installvendorarch'` 223 eval `perl '-V:installvendorarch'`
219 VENDOR_ARCH=${installvendorarch} 224 VENDOR_ARCH=${installvendorarch}
220 225
221 if [ "${USE_BUILDER}" == "yes" ]; then 226 if [ "${USE_BUILDER}" == "yes" ]; then
227 if [ ! -f ${S}/Makefile.PL ]; then
222 if [ -f ${S}/Build.PL ]; then 228 if [ -f ${S}/Build.PL ]; then
223 if [ ${PN} == "module-build" ]; then 229 if [ ${PN} == "module-build" ]; then
224 BUILDER_VER="1" # A bootstrapping if you will 230 BUILDER_VER="1" # A bootstrapping if you will
225 else 231 else
226 BUILDER_VER=`perl -MModule::Build -e 'print "$Module::Build::VERSION;"' ` 232 BUILDER_VER=`perl -MModule::Build -e 'print "$Module::Build::VERSION;"' `
227 fi 233 fi
228 fi 234 fi
235 fi
229 fi 236 fi
230 237
231 if [ -f /usr/bin/perl ] 238 if [ -f /usr/bin/perl ]
232 then 239 then
233 POD_DIR="/usr/share/perl/gentoo-pods/${version}" 240 POD_DIR="/usr/share/perl/gentoo-pods/${version}"

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.85

  ViewVC Help
Powered by ViewVC 1.1.20