From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- development/perl/perl.build | 126 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100755 development/perl/perl.build (limited to 'development/perl/perl.build') diff --git a/development/perl/perl.build b/development/perl/perl.build new file mode 100755 index 0000000..d910649 --- /dev/null +++ b/development/perl/perl.build @@ -0,0 +1,126 @@ +#!/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 +} -- cgit v1.2.3-70-g09d2