You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.0 KiB
60 lines
2.0 KiB
12 years ago
|
# Copyright 1999-2012 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/files/eblits/src_install-v50160001.eblit,v 1.1 2012/06/05 17:52:35 tove Exp $
|
||
|
|
||
|
eblit-perl-src_install() {
|
||
|
local i
|
||
|
local coredir="${ARCH_LIB}/CORE"
|
||
|
|
||
|
emake DESTDIR="${D}" install
|
||
|
|
||
|
rm -f "${ED}"/usr/bin/perl
|
||
|
ln -s perl${MY_PV} "${ED}"/usr/bin/perl || 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"
|
||
|
|
||
|
# # A poor fix for the miniperl issues
|
||
|
# dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
|
||
|
# fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
|
||
|
# dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
|
||
|
# fperms 0755 /usr/bin/xsubpp
|
||
|
|
||
|
# 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
|
||
|
|
||
|
# Note: find out from psm why we would need/want this.
|
||
|
# ( use berkdb && has_version '=sys-libs/db-1*' ) ||
|
||
|
# find "${ED}" -name "*NDBM*" | xargs rm -f
|
||
|
|
||
|
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
|
||
|
|
||
|
dual_scripts
|
||
|
}
|