diff options
author | 2016-05-15 23:44:26 +0200 | |
---|---|---|
committer | 2016-05-15 23:45:07 +0200 | |
commit | 6cfbc5442acc3a68dea7e4639cfee164c88cb85a (patch) | |
tree | 3d3cd07403566bf532ee1d58bd45748c89039fef /dev-lang/perl/files/eblits/src_install-v50240001.eblit | |
parent | net-fs/samba: Add missing Perl dependency, slot operator := is required (diff) | |
download | gentoo-6cfbc5442acc3a68dea7e4639cfee164c88cb85a.tar.gz gentoo-6cfbc5442acc3a68dea7e4639cfee164c88cb85a.tar.bz2 gentoo-6cfbc5442acc3a68dea7e4639cfee164c88cb85a.zip |
dev-lang/perl: Add some missing files to fix the eblit logic
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-lang/perl/files/eblits/src_install-v50240001.eblit')
-rw-r--r-- | dev-lang/perl/files/eblits/src_install-v50240001.eblit | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-lang/perl/files/eblits/src_install-v50240001.eblit b/dev-lang/perl/files/eblits/src_install-v50240001.eblit new file mode 100644 index 000000000000..fafff825d5ed --- /dev/null +++ b/dev-lang/perl/files/eblits/src_install-v50240001.eblit @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +eblit-perl-src_install() { + local i + local coredir="${ARCH_LIB}/CORE" + + emake DESTDIR="${D}" install + + rm -f "${ED}/usr/bin/perl${MY_PV}" + ln -s perl "${ED}"/usr/bin/perl${MY_PV} || die + + if ! tc-is-static-only ; then + dolib.so "${ED}"${coredir}/${LIBPERL} + rm -f "${ED}"${coredir}/${LIBPERL} + ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die + ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname) || die + ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/${LIBPERL} || die + ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname ${SHORT_PV}) || die + ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname) || die + fi + + rm -rf "${ED}"/usr/share/man/man3 || die "Unable to remove module man pages" + + # This removes ${D} from Config.pm + for i in $(find "${D}" -iname "Config.pm" ) ; do + einfo "Removing ${D} from ${i}..." + sed -i -e "s:${D}::" "${i}" || die "Sed failed" + done + + find "${ED}" -type f -name .packlist -delete || die + + dodoc Changes* README AUTHORS + + if use doc ; then + # HTML Documentation + # We expect errors, warnings, and such with the following. + + dodir /usr/share/doc/${PF}/html + LD_LIBRARY_PATH=. ./perl installhtml \ + --podroot='.' \ + --podpath='lib:ext:pod:vms' \ + --recurse \ + --htmldir="${ED}/usr/share/doc/${PF}/html" + fi + + [[ -d ${ED}/usr/local ]] && rm -r "${ED}"/usr/local + + dual_scripts +} |