# $Header: /alx-cvs/mage-eglibc/include/perl.minc,v 1.1 2008/06/07 18:42:38 niro Exp $ perlinfo() { if [ -f /usr/bin/perl ] then POD_DIR="/usr/share/perl/magellan-pods/${version}" fi eval $(perl '-V:version') PERL_VERSION=${version} eval $(perl '-V:installsitearch') SITE_ARCH=${installsitearch} eval $(perl '-V:installarchlib') ARCH_LIB=${installarchlib} eval $(perl '-V:installsitearch') SITE_LIB=${installsitearch} local installvendorlib eval $(perl '-V:installvendorlib') VENDOR_LIB=${installvendorlib} local installvendorarch eval $(perl '-V:installvendorarch') VENDOR_ARCH=${installvendorarch} # handling of DESTDIR changed in makemaker 6.11 MMSIXELEVEN=$(perl -e 'use ExtUtils::MakeMaker; print( $ExtUtils::MakeMaker::VERSION ge "6.11" )') } # taken from gentoo eclass perl-module.eclass updatepod() { local i perlinfo if [ -d "${POD_DIR}" ] then for i in $(find ${POD_DIR} -type f -name "*.pod.arch") do cat ${i} >> ${ARCH_LIB}/perllocal.pod rm -f ${i} done for i in $(find ${POD_DIR} -type f -name "*.pod.site") do cat ${i} >> ${SITE_LIB}/perllocal.pod rm -f ${i} done for i in $(find ${POD_DIR} -type f -name "*.pod.vendor") do cat ${i} >> ${VENDOR_LIB}/perllocal.pod rm -f ${i} done fi } perl_preinstall() { perlinfo } perl_postinstall() { updatepod } perl_preremove() { updatepod } perl_postremove() { updatepod } export_inherits perl preinstall postinstall preremove postremove