Repair build/installation of perl modules.

--HG--
extra : convert_revision : e72ba0f07d5bcbd009b598a63dadfc665fd7fb1c
This commit is contained in:
Juan RP 2009-03-20 07:07:43 +01:00
parent fbec524388
commit a3d7dc8a1b
2 changed files with 16 additions and 7 deletions

View file

@ -115,7 +115,9 @@ install_src_phase()
make_install()
{
if [ -z "$make_install_target" ]; then
if [ "$build_style" = "perl_module" ]; then
make_install_target="install"
elif [ -z "$make_install_target" ]; then
make_install_target="DESTDIR=${DESTDIR} install"
fi
@ -141,6 +143,13 @@ make_install()
fi
fi
# Always remove perllocal.pod and .packlist files for
# perl modules.
if [ "$build_style" = "perl_module" -a "$pkgname" != "perl" ]; then
find ${DESTDIR} -name perllocal.pod -delete
find ${DESTDIR} -name .packlist -delete
fi
# Unset build vars.
unset_build_vars
}