/[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.97 Revision 1.98
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.97 2006/06/14 00:31:44 mcummings Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.98 2006/06/24 21:54:02 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
155 make ${myinst} ${mytargets} || die 155 make ${myinst} ${mytargets} || die
156 elif [ -f Build ]; then 156 elif [ -f Build ]; then
157 perl ${S}/Build install 157 perl ${S}/Build install
158 fi 158 fi
159 159
160
161 einfo "Cleaning out stray man files"
162 for FILE in `find ${D} -type f -name "*.3pm*"`; do
163 rm -rf ${FILE}
164 done
165 find ${D}/usr/share/man -depth -type d 2>/dev/null | xargs -r rmdir 2>/dev/null
166
160 fixlocalpod 167 fixlocalpod
161 168
162 for FILE in `find ${D} -type f |grep -v '.so'`; do 169 for FILE in `find ${D} -type f |grep -v '.so'`; do
163 STAT=`file $FILE| grep -i " text"` 170 STAT=`file $FILE| grep -i " text"`
164 if [ "${STAT}x" != "x" ]; then 171 if [ "${STAT}x" != "x" ]; then
244 fi 251 fi
245} 252}
246 253
247fixlocalpod() { 254fixlocalpod() {
248 perlinfo 255 perlinfo
249 dodir ${POD_DIR}
250 256
251 if [ -f ${D}${ARCH_LIB}/perllocal.pod ]; 257 if [ -f ${D}${ARCH_LIB}/perllocal.pod ];
252 then 258 then
253 touch ${D}/${POD_DIR}/${P}.pod
254 sed -e "s:${D}::g" \
255 ${D}${ARCH_LIB}/perllocal.pod >> ${D}/${POD_DIR}/${P}.pod
256 touch ${D}/${POD_DIR}/${P}.pod.arch
257 cat ${D}/${POD_DIR}/${P}.pod >>${D}/${POD_DIR}/${P}.pod.arch
258 rm -f ${D}/${ARCH_LIB}/perllocal.pod 259 rm -f ${D}/${ARCH_LIB}/perllocal.pod
259 fi 260 fi
260 261
261 if [ -f ${D}${SITE_LIB}/perllocal.pod ]; 262 if [ -f ${D}${SITE_LIB}/perllocal.pod ];
262 then 263 then
263 touch ${D}/${POD_DIR}/${P}.pod
264 sed -e "s:${D}::g" \
265 ${D}${SITE_LIB}/perllocal.pod >> ${D}/${POD_DIR}/${P}.pod
266 touch ${D}/${POD_DIR}/${P}.pod.site
267 cat ${D}/${POD_DIR}/${P}.pod >>${D}/${POD_DIR}/${P}.pod.site
268 rm -f ${D}/${SITE_LIB}/perllocal.pod 264 rm -f ${D}/${SITE_LIB}/perllocal.pod
269 fi 265 fi
270 266
271 if [ -f ${D}${VENDOR_LIB}/perllocal.pod ]; 267 if [ -f ${D}${VENDOR_LIB}/perllocal.pod ];
272 then 268 then
273 touch ${D}/${POD_DIR}/${P}.pod
274 sed -e "s:${D}::g" \
275 ${D}${VENDOR_LIB}/perllocal.pod >> ${D}/${POD_DIR}/${P}.pod
276 touch ${D}/${POD_DIR}/${P}.pod.vendor
277 cat ${D}/${POD_DIR}/${P}.pod >>${D}/${POD_DIR}/${P}.pod.vendor
278 rm -f ${D}/${VENDOR_LIB}/perllocal.pod 269 rm -f ${D}/${VENDOR_LIB}/perllocal.pod
279 fi 270 fi
280} 271}
281 272
282updatepod() { 273updatepod() {

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98

  ViewVC Help
Powered by ViewVC 1.1.20