/[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.102 Revision 1.103
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.102 2006/09/02 00:20:13 mcummings Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.103 2006/10/14 20:27:21 swegener 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
169 einfo "Cleaning out stray man files" 169 einfo "Cleaning out stray man files"
170 for FILE in `find ${D} -type f -name "*.3pm*"`; do 170 for FILE in `find ${D} -type f -name "*.3pm*"`; do
171 rm -rf ${FILE} 171 rm -rf ${FILE}
172 done 172 done
173 find ${D}/usr/share/man -depth -type d 2>/dev/null | xargs -r rmdir 2>/dev/null 173 find ${D}/usr/share/man -depth -type d 2>/dev/null | xargs -r rmdir 2>/dev/null
174 174
175 fixlocalpod 175 fixlocalpod
176 176
177 for FILE in `find ${D} -type f |grep -v '.so'`; do 177 for FILE in `find ${D} -type f |grep -v '.so'`; do
178 STAT=`file $FILE| grep -i " text"` 178 STAT=`file $FILE| grep -i " text"`
179 if [ "${STAT}x" != "x" ]; then 179 if [ "${STAT}x" != "x" ]; then
240 local installvendorarch 240 local installvendorarch
241 eval `perl '-V:installvendorarch'` 241 eval `perl '-V:installvendorarch'`
242 VENDOR_ARCH=${installvendorarch} 242 VENDOR_ARCH=${installvendorarch}
243 243
244 if [ "${PREFER_BUILDPL}" == "yes" ]; then 244 if [ "${PREFER_BUILDPL}" == "yes" ]; then
245 if [ ! -f ${S}/Makefile.PL ] || [ ${PN} == "module-build" ]; then 245 if [ ! -f ${S}/Makefile.PL ] || [ ${PN} == "module-build" ]; then
246 if [ -f ${S}/Build.PL ]; then 246 if [ -f ${S}/Build.PL ]; then
247 if [ ${PN} == "module-build" ]; then 247 if [ ${PN} == "module-build" ]; then
248 BUILDER_VER="1" # A bootstrapping if you will 248 BUILDER_VER="1" # A bootstrapping if you will
249 else 249 else
250 BUILDER_VER=`perl -MModule::Build -e 'print "$Module::Build::VERSION;"' ` 250 BUILDER_VER=`perl -MModule::Build -e 'print "$Module::Build::VERSION;"' `
251 fi
251 fi 252 fi
252 fi 253 fi
253 fi
254 fi 254 fi
255 255
256 if [ -f /usr/bin/perl ] 256 if [ -f /usr/bin/perl ]
257 then 257 then
258 POD_DIR="/usr/share/perl/gentoo-pods/${version}" 258 POD_DIR="/usr/share/perl/gentoo-pods/${version}"
282 perlinfo 282 perlinfo
283 283
284 if [ -d "${POD_DIR}" ] 284 if [ -d "${POD_DIR}" ]
285 then 285 then
286 for FILE in `find ${POD_DIR} -type f -name "*.pod.arch"`; do 286 for FILE in `find ${POD_DIR} -type f -name "*.pod.arch"`; do
287 cat ${FILE} >> ${ARCH_LIB}/perllocal.pod 287 cat ${FILE} >> ${ARCH_LIB}/perllocal.pod
288 rm -f ${FILE} 288 rm -f ${FILE}
289 done 289 done
290 for FILE in `find ${POD_DIR} -type f -name "*.pod.site"`; do 290 for FILE in `find ${POD_DIR} -type f -name "*.pod.site"`; do
291 cat ${FILE} >> ${SITE_LIB}/perllocal.pod 291 cat ${FILE} >> ${SITE_LIB}/perllocal.pod
292 rm -f ${FILE} 292 rm -f ${FILE}
293 done 293 done
294 for FILE in `find ${POD_DIR} -type f -name "*.pod.vendor"`; do 294 for FILE in `find ${POD_DIR} -type f -name "*.pod.vendor"`; do
295 cat ${FILE} >> ${VENDOR_LIB}/perllocal.pod 295 cat ${FILE} >> ${VENDOR_LIB}/perllocal.pod
296 rm -f ${FILE} 296 rm -f ${FILE}
297 done 297 done
298 fi 298 fi
299} 299}

Legend:
Removed from v.1.102  
changed lines
  Added in v.1.103

  ViewVC Help
Powered by ViewVC 1.1.20