summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2011-08-13 09:25:50 +0200
committerTorsten Veller <tove@gentoo.org>2011-08-13 09:25:50 +0200
commit26f17d4081d7cd3a1b02172cb6a10b17e88754bb (patch)
tree5c840d08e7e087784c3519aea13fde8e96114428 /eclass/perl-module.eclass
parent[add] dev-perl/V-0.130.0 (diff)
downloadperl-overlay-26f17d4081d7cd3a1b02172cb6a10b17e88754bb.tar.gz
perl-overlay-26f17d4081d7cd3a1b02172cb6a10b17e88754bb.tar.bz2
perl-overlay-26f17d4081d7cd3a1b02172cb6a10b17e88754bb.zip
[sync] perl-module.eclass with ::gentoo
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r--eclass/perl-module.eclass18
1 files changed, 11 insertions, 7 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index 24a6eec1b..0af963ef0 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -371,19 +371,23 @@ perl_link_duallife_scripts() {
local i ff
if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ; then
for i in "${DUALLIFESCRIPTS[@]}" ; do
- alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
- ff=`echo "${EROOT}"/usr/share/man/man1/${i}-${PV}-${P}.1*`
+ alternatives_auto_makesym "/${i}" "/${i}-[0-9]*"
+ done
+ for i in "${DUALLIFEMAN[@]}" ; do
+ ff=`echo "${EROOT}"/${i%.1}-${PV}-${P}.1*`
ff=${ff##*.1}
- alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
+ alternatives_auto_makesym "/${i}${ff}" "/${i%.1}-[0-9]*"
done
else
pushd "${ED}" > /dev/null
for i in $(find usr/bin -maxdepth 1 -type f 2>/dev/null) ; do
mv ${i}{,-${PV}-${P}} || die
- DUALLIFESCRIPTS[${#DUALLIFESCRIPTS[*]}]=${i##*/}
- if [[ -f usr/share/man/man1/${i##*/}.1 ]] ; then
- mv usr/share/man/man1/${i##*/}{.1,-${PV}-${P}.1} || die
- fi
+ #DUALLIFESCRIPTS[${#DUALLIFESCRIPTS[*]}]=${i##*/}
+ DUALLIFESCRIPTS[${#DUALLIFESCRIPTS[*]}]=${i}
+ done
+ for i in $(find usr/share/man/man1 -maxdepth 1 -type f 2>/dev/null) ; do
+ mv ${i} ${i%.1}-${PV}-${P}.1 || die
+ DUALLIFEMAN[${#DUALLIFEMAN[*]}]=${i}
done
popd > /dev/null
fi