/[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.114 Revision 1.115
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.114 2009/03/11 06:36:45 tove Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.115 2009/03/26 17:40:23 tove Exp $
4# 4#
5# Author: Seemant Kulleen <seemant@gentoo.org> 5# Author: Seemant Kulleen <seemant@gentoo.org>
6 6
7# @ECLASS: perl-module.eclass 7# @ECLASS: perl-module.eclass
8# @MAINTAINER: 8# @MAINTAINER:
87 --libdoc= \ 87 --libdoc= \
88 --destdir="${D}" \ 88 --destdir="${D}" \
89 --create_packlist=0 \ 89 --create_packlist=0 \
90 --extra_linker_flags="${LDFLAGS}" \ 90 --extra_linker_flags="${LDFLAGS}" \
91 ${myconf} \ 91 ${myconf} \
92 <<< ${pm_echovar} \ 92 <<< "${pm_echovar}" \
93 || die "Unable to build! (are you using USE=\"build\"?)" 93 || die "Unable to build! (are you using USE=\"build\"?)"
94 elif [[ -f Makefile.PL ]] ; then 94 elif [[ -f Makefile.PL ]] ; then
95 einfo "Using ExtUtils::MakeMaker" 95 einfo "Using ExtUtils::MakeMaker"
96 perl Makefile.PL \ 96 perl Makefile.PL \
97 PREFIX=/usr \ 97 PREFIX=/usr \
98 INSTALLDIRS=vendor \ 98 INSTALLDIRS=vendor \
99 INSTALLMAN3DIR='none' \ 99 INSTALLMAN3DIR='none' \
100 DESTDIR="${D}" \ 100 DESTDIR="${D}" \
101 ${myconf} \ 101 ${myconf} \
102 <<< ${pm_echovar} \ 102 <<< "${pm_echovar}" \
103 || die "Unable to build! (are you using USE=\"build\"?)" 103 || die "Unable to build! (are you using USE=\"build\"?)"
104 fi 104 fi
105 if [[ ! -f Build.PL && ! -f Makefile.PL ]] ; then 105 if [[ ! -f Build.PL && ! -f Makefile.PL ]] ; then
106 einfo "No Make or Build file detected..." 106 einfo "No Make or Build file detected..."
107 return 107 return
153 elif [[ -f Makefile ]] ; then 153 elif [[ -f Makefile ]] ; then
154 emake ${myinst} ${mytargets} \ 154 emake ${myinst} ${mytargets} \
155 || die "emake ${myinst} ${mytargets} failed" 155 || die "emake ${myinst} ${mytargets} failed"
156 fi 156 fi
157 157
158 if [[ -d "${D}"/usr/share/man ]] ; then
158# einfo "Cleaning out stray man files" 159# einfo "Cleaning out stray man files"
159 find "${D}" -type f -name "*.3pm" -delete 160 find "${D}"/usr/share/man -type f -name "*.3pm" -delete
160 find "${D}"/usr/share/man -depth -type d -empty -delete 2>/dev/null 161 find "${D}"/usr/share/man -depth -type d -empty -delete
162 fi
161 163
162 fixlocalpod 164 fixlocalpod
163 165
164 for f in Change* CHANGES README* ${mydoc}; do 166 for f in Change* CHANGES README* ${mydoc}; do
165 [[ -s "${f}" ]] && dodoc ${f} 167 [[ -s "${f}" ]] && dodoc ${f}
166 done 168 done
167 169
170 if [[ -d "${D}/${VENDOR_LIB}" ]] ; then
168 find "${D}/${VENDOR_LIB}" -type f -a \( -name .packlist \ 171 find "${D}/${VENDOR_LIB}" -type f -a \( -name .packlist \
169 -o \( -name '*.bs' -a -empty \) \) -delete 172 -o \( -name '*.bs' -a -empty \) \) -delete
170 find "${D}/${VENDOR_LIB}" -depth -mindepth 1 -type d -empty -delete 173 find "${D}/${VENDOR_LIB}" -depth -mindepth 1 -type d -empty -delete
174 fi
171 175
172 find "${D}" -type f -not -name '*.so' -print0 | while read -rd '' f ; do 176 find "${D}" -type f -not -name '*.so' -print0 | while read -rd '' f ; do
173 if file "${f}" | grep -q -i " text" ; then 177 if file "${f}" | grep -q -i " text" ; then
174if grep -q "${D}" "${f}" ; then ewarn "QA: File contains a temporary path ${f}" ;fi 178if grep -q "${D}" "${f}" ; then ewarn "QA: File contains a temporary path ${f}" ;fi
175 sed -i -e "s:${D}:/:g" "${f}" 179 sed -i -e "s:${D}:/:g" "${f}"

Legend:
Removed from v.1.114  
changed lines
  Added in v.1.115

  ViewVC Help
Powered by ViewVC 1.1.20