wok annotate perl/receipt @ rev 21947

updated spl (0.7.7 -> 0.7.13)
author Hans-G?nter Theisgen
date Tue Oct 08 17:14:12 2019 +0100 (2019-10-08)
parents 4a7edf0778b6
children 93cfbe138cae
rev   line source
pankso@18 1 # SliTaz package receipt.
pankso@18 2
pankso@18 3 PACKAGE="perl"
pascal@20471 4 VERSION="5.14.1"
pankso@204 5 CATEGORY="development"
pankso@18 6 SHORT_DESC="Full Perl interpreter and modules."
pankso@18 7 MAINTAINER="pankso@slitaz.org"
pascal@14702 8 LICENSE="GPL"
slaxemulator@8148 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
gokhlayeh@8209 10 DEPENDS="libdb gdbm zlib"
pascal@15345 11 BUILD_DEPENDS="db gdbm zlib less"
pankso@18 12 WEB_SITE="http://www.perl.org/"
pankso@18 13 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
pascal@2332 14 PROVIDE="microperl"
pankso@18 15
gokhlayeh@8209 16 # Rules to compile & install the temporary toolchain.
gokhlayeh@8209 17 cook_tmp_toolchain()
gokhlayeh@8209 18 {
gokhlayeh@8209 19 cd $src
gokhlayeh@8209 20 { sh Configure -des -Dprefix=/tools \
pascal@20486 21 -Darchname="$ARCH-linux" \
pascal@20486 22 -Dmyarchname="$ARCH-linux" \
pascal@20486 23 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
pascal@20486 24 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
pascal@20486 25 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
pascal@20486 26 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
pascal@20486 27 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
pascal@20486 28 -Dstatic_ext='Data/Dumper Fcntl IO'
gokhlayeh@8209 29
gokhlayeh@8209 30 # Only few tools are needed in the tmp toolchain.
gokhlayeh@8209 31 make perl utilities ext/Errno/pm_to_blib
gokhlayeh@8209 32 } || return 1
gokhlayeh@8209 33 cp perl pod/pod2man /tools/bin
pascal@20477 34 mkdir -p /tools/lib/perl5/$VERSION
pascal@20477 35 cp -R lib/* /tools/lib/perl5/$VERSION
gokhlayeh@8209 36 }
gokhlayeh@8209 37
gokhlayeh@8209 38
pankso@18 39 # Rules to configure and make the package.
pankso@18 40 #
pankso@18 41 compile_rules()
pankso@18 42 {
pascal@20486 43 ./configure.gnu --prefix=/usr \
pascal@20486 44 -Darchname="$ARCH-linux" \
pascal@20486 45 -Dmyarchname="$ARCH-linux" \
pascal@20486 46 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
pascal@20486 47 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
pascal@20486 48 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
pascal@20486 49 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
pascal@20486 50 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" &&
gokhlayeh@8209 51 make &&
gokhlayeh@8209 52 make install
slaxemulator@6585 53
slaxemulator@6585 54 # make microperl here
slaxemulator@6585 55 # patch to fix compiling microperl
slaxemulator@9700 56 patch -p0 -i $stuff/miniperlmain.patch
slaxemulator@6585 57 # Install in /usr (default is /usr/local).
slaxemulator@6585 58 sed -i s/'usr\/local'/'usr'/ uconfig.sh
slaxemulator@6585 59 # Sed to search mods in /usr/lib/perl5.
pascal@20478 60 sed -i s/'perl5\/'${VERSION%.*}/'perl5'/ uconfig.sh
slaxemulator@6585 61 # Optimisation.
slaxemulator@10423 62 sed -i s/'unknown'/'$HOST_SYSTEM'/ uconfig.sh
slaxemulator@6585 63 # Make it!
slaxemulator@6585 64 make -f Makefile.micro regen_uconfig &&
slaxemulator@6585 65 make -f Makefile.micro &&
slaxemulator@6585 66 strip microperl
pankso@18 67 }
pankso@18 68
pankso@18 69 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 70 genpkg_rules()
pankso@18 71 {
pankso@18 72 mkdir -p $fs/usr
pascal@14702 73 cp -a $install/usr/bin $fs/usr
pascal@14702 74 cp -a $install/usr/lib $fs/usr
pankso@18 75 }
pankso@18 76
pankso@18 77 # Pre install commands for Tazpkg.
pankso@18 78 # Remove perl link to microperl if any.
pankso@18 79 #
pankso@18 80 pre_install()
pankso@18 81 {
pascal@18730 82 rm -f "$1/usr/bin/perl"
pankso@18 83 }