#!/bin/bash # # Maintainer: Deposite Pirate source /usr/src/ports/Build/build.sh NAME=perl MAJOR=5 VERSION=${MAJOR}.18.0 BUILD=1 OPTDEPENDS=('libdb >= 5.3.21-1' 'gdbm >= 1.10-1') # Description cat > ${PKG}/install/slack-desc < pstruct.1 echo ".so man1/s2p.1" > psed.1 ) # Set no mail address since bug reports should go to the bug tracker # and not someone's email. sed -e "/^cf_email=/ s/'.*'/''/" \ -e "/^perladmin=/ s/'.*'/''/" \ -i ${PKG}${SYS_DIR[lib]}/plugins/perl/${MAJOR}/Config_heavy.pl # Set CPAN default config to use the site directories. sed -e '/(makepl_arg =>/ s/""/"INSTALLDIRS=site"/' \ -e '/(mbuildpl_arg =>/ s/""/"installdirs=site"/' \ -i ${PKG}${SYS_DIR[share]}/perl/${MAJOR}/CPAN/FirstTime.pm # Set CPANPLUS default config to use the site directories. sed -e "/{'makemakerflags'}/ s/'';/'INSTALLDIRS=site';/" \ -e "/{'buildflags'}/ s/'';/'installdirs=site';/" \ -i ${PKG}${SYS_DIR[share]}/perl/${MAJOR}/CPANPLUS/Config.pm # Cleanup ( cd ${PKG}${SYS_DIR[share]}/perl/${MAJOR} mv pod .. find . -name '*.pod' -delete mv ../pod . ) find ${PKG}${SYS_DIR[lib]} -name '*.pod' -delete find ${PKG} -name '.packlist' -delete rm -rf ${PKG}${SYS_DIR[usr]}/local }