/[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.82 Revision 1.86
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.82 2006/02/11 19:09:27 mcummings Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.86 2006/04/03 11:16:52 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 \ 12EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm src_compile src_install src_test
13 src_compile src_install src_test perlinfo fixlocalpod updatepod
14 13
15# 2005.04.28 mcummings 14# 2005.04.28 mcummings
16# 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
17# 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
18# 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
94 93
95 export PERL_MM_USE_DEFAULT=1 94 export PERL_MM_USE_DEFAULT=1
96 95
97 96
98 SRC_PREP="yes" 97 SRC_PREP="yes"
98 if [ -f 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}
99 if [ -f ${S}/Build.PL ] && [ "${USE_BUILDER}" == "yes" ]; then 103 elif [ -f Build.PL ] && [ "${USE_BUILDER}" == "yes" ]; then
100 einfo "Using Module::Build" 104 einfo "Using Module::Build"
101 if [ -z ${BUILDER_VER} ]; then 105 if [ -z ${BUILDER_VER} ]; then
102 eerror 106 eerror
103 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"
104 eerror "perl@gentoo.org - ${P} was added without a dependancy" 108 eerror "perl@gentoo.org - ${P} was added without a dependancy"
105 eerror "on dev-perl/module-build" 109 eerror "on dev-perl/module-build"
106 eerror "${BUILDER_VER}" 110 eerror "${BUILDER_VER}"
107 eerror 111 eerror
108 die 112 die
109 else 113 else
110 perl ${S}/Build.PL installdirs=vendor destdir=${D} libdoc= 114 perl Build.PL installdirs=vendor destdir=${D} libdoc=
111 fi 115 fi
112 else 116 else
113 einfo "Using ExtUtils::MakeMaker" 117 einfo "No Make or Build file detect..."
114 #perl Makefile.PL ${myconf} \ 118 return
115 perl Makefile.PL ${myconf} INSTALLMAN3DIR='none'\
116 PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D}
117 fi 119 fi
118} 120}
119 121
120perl-module_src_compile() { 122perl-module_src_compile() {
121 123
178 perlinfo 180 perlinfo
179} 181}
180 182
181perl-module_pkg_postinst() { 183perl-module_pkg_postinst() {
182 184
185 einfo "Man pages are not installed for most modules now."
186 einfo "Please use perldoc instad."
183 updatepod 187 updatepod
184} 188}
185 189
186perl-module_pkg_prerm() { 190perl-module_pkg_prerm() {
187 191
218 local installvendorarch 222 local installvendorarch
219 eval `perl '-V:installvendorarch'` 223 eval `perl '-V:installvendorarch'`
220 VENDOR_ARCH=${installvendorarch} 224 VENDOR_ARCH=${installvendorarch}
221 225
222 if [ "${USE_BUILDER}" == "yes" ]; then 226 if [ "${USE_BUILDER}" == "yes" ]; then
227 if [ ! -f ${S}/Makefile.PL ]; then
223 if [ -f ${S}/Build.PL ]; then 228 if [ -f ${S}/Build.PL ]; then
224 if [ ${PN} == "module-build" ]; then 229 if [ ${PN} == "module-build" ]; then
225 BUILDER_VER="1" # A bootstrapping if you will 230 BUILDER_VER="1" # A bootstrapping if you will
226 else 231 else
227 BUILDER_VER=`perl -MModule::Build -e 'print "$Module::Build::VERSION;"' ` 232 BUILDER_VER=`perl -MModule::Build -e 'print "$Module::Build::VERSION;"' `
228 fi 233 fi
229 fi 234 fi
235 fi
230 fi 236 fi
231 237
232 if [ -f /usr/bin/perl ] 238 if [ -f /usr/bin/perl ]
233 then 239 then
234 POD_DIR="/usr/share/perl/gentoo-pods/${version}" 240 POD_DIR="/usr/share/perl/gentoo-pods/${version}"

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.86

  ViewVC Help
Powered by ViewVC 1.1.20