diff options
author | Torsten Veller <tove@gentoo.org> | 2009-03-26 17:40:23 +0000 |
---|---|---|
committer | Torsten Veller <tove@gentoo.org> | 2009-03-26 17:40:23 +0000 |
commit | a85d9b0877fc1aa201a9c9db155178b2dd4adf79 (patch) | |
tree | ecbe94d4f07adaee7dfc770cbd17cd61e0a46f70 /eclass/perl-module.eclass | |
parent | Stable for HPPA (bug #263751). (diff) | |
download | gentoo-2-a85d9b0877fc1aa201a9c9db155178b2dd4adf79.tar.gz gentoo-2-a85d9b0877fc1aa201a9c9db155178b2dd4adf79.tar.bz2 gentoo-2-a85d9b0877fc1aa201a9c9db155178b2dd4adf79.zip |
Fix quoting of pm_echovar (#263671)
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r-- | eclass/perl-module.eclass | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index ec1020f743be..d10401ed9f0c 100644 --- a/eclass/perl-module.eclass +++ b/eclass/perl-module.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.114 2009/03/11 06:36:45 tove Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.115 2009/03/26 17:40:23 tove Exp $ # # Author: Seemant Kulleen <seemant@gentoo.org> @@ -89,7 +89,7 @@ perl-module_src_prep() { --create_packlist=0 \ --extra_linker_flags="${LDFLAGS}" \ ${myconf} \ - <<< ${pm_echovar} \ + <<< "${pm_echovar}" \ || die "Unable to build! (are you using USE=\"build\"?)" elif [[ -f Makefile.PL ]] ; then einfo "Using ExtUtils::MakeMaker" @@ -99,7 +99,7 @@ perl-module_src_prep() { INSTALLMAN3DIR='none' \ DESTDIR="${D}" \ ${myconf} \ - <<< ${pm_echovar} \ + <<< "${pm_echovar}" \ || die "Unable to build! (are you using USE=\"build\"?)" fi if [[ ! -f Build.PL && ! -f Makefile.PL ]] ; then @@ -155,9 +155,11 @@ perl-module_src_install() { || die "emake ${myinst} ${mytargets} failed" fi -# einfo "Cleaning out stray man files" - find "${D}" -type f -name "*.3pm" -delete - find "${D}"/usr/share/man -depth -type d -empty -delete 2>/dev/null + if [[ -d "${D}"/usr/share/man ]] ; then +# einfo "Cleaning out stray man files" + find "${D}"/usr/share/man -type f -name "*.3pm" -delete + find "${D}"/usr/share/man -depth -type d -empty -delete + fi fixlocalpod @@ -165,9 +167,11 @@ perl-module_src_install() { [[ -s "${f}" ]] && dodoc ${f} done - find "${D}/${VENDOR_LIB}" -type f -a \( -name .packlist \ - -o \( -name '*.bs' -a -empty \) \) -delete - find "${D}/${VENDOR_LIB}" -depth -mindepth 1 -type d -empty -delete + if [[ -d "${D}/${VENDOR_LIB}" ]] ; then + find "${D}/${VENDOR_LIB}" -type f -a \( -name .packlist \ + -o \( -name '*.bs' -a -empty \) \) -delete + find "${D}/${VENDOR_LIB}" -depth -mindepth 1 -type d -empty -delete + fi find "${D}" -type f -not -name '*.so' -print0 | while read -rd '' f ; do if file "${f}" | grep -q -i " text" ; then |