wok annotate perl/receipt @ rev 24767

Up zbar (0.23.90)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 19 10:01:29 2022 +0000 (2022-03-19)
parents 93cfbe138cae
children
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"
pascal@23069 12 WEB_SITE="https://www.perl.org/"
pankso@18 13 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
pascal@2332 14 PROVIDE="microperl"
pankso@18 15
pascal@24102 16 current_version()
pascal@24102 17 {
pascal@24102 18 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24102 19 sed '/version-highlight/!d;s|.*">||;s|<.*||;q'
pascal@24102 20 }
pascal@24102 21
gokhlayeh@8209 22 # Rules to compile & install the temporary toolchain.
gokhlayeh@8209 23 cook_tmp_toolchain()
gokhlayeh@8209 24 {
gokhlayeh@8209 25 cd $src
gokhlayeh@8209 26 { sh Configure -des -Dprefix=/tools \
pascal@20486 27 -Darchname="$ARCH-linux" \
pascal@20486 28 -Dmyarchname="$ARCH-linux" \
pascal@20486 29 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
pascal@20486 30 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
pascal@20486 31 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
pascal@20486 32 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
pascal@20486 33 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
pascal@20486 34 -Dstatic_ext='Data/Dumper Fcntl IO'
gokhlayeh@8209 35
gokhlayeh@8209 36 # Only few tools are needed in the tmp toolchain.
gokhlayeh@8209 37 make perl utilities ext/Errno/pm_to_blib
gokhlayeh@8209 38 } || return 1
gokhlayeh@8209 39 cp perl pod/pod2man /tools/bin
pascal@20477 40 mkdir -p /tools/lib/perl5/$VERSION
pascal@20477 41 cp -R lib/* /tools/lib/perl5/$VERSION
gokhlayeh@8209 42 }
gokhlayeh@8209 43
gokhlayeh@8209 44
pankso@18 45 # Rules to configure and make the package.
pankso@18 46 #
pankso@18 47 compile_rules()
pankso@18 48 {
pascal@20486 49 ./configure.gnu --prefix=/usr \
pascal@20486 50 -Darchname="$ARCH-linux" \
pascal@20486 51 -Dmyarchname="$ARCH-linux" \
pascal@20486 52 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
pascal@20486 53 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
pascal@20486 54 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
pascal@20486 55 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
pascal@20486 56 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" &&
gokhlayeh@8209 57 make &&
gokhlayeh@8209 58 make install
slaxemulator@6585 59
slaxemulator@6585 60 # make microperl here
slaxemulator@6585 61 # patch to fix compiling microperl
slaxemulator@9700 62 patch -p0 -i $stuff/miniperlmain.patch
slaxemulator@6585 63 # Install in /usr (default is /usr/local).
slaxemulator@6585 64 sed -i s/'usr\/local'/'usr'/ uconfig.sh
slaxemulator@6585 65 # Sed to search mods in /usr/lib/perl5.
pascal@20478 66 sed -i s/'perl5\/'${VERSION%.*}/'perl5'/ uconfig.sh
slaxemulator@6585 67 # Optimisation.
slaxemulator@10423 68 sed -i s/'unknown'/'$HOST_SYSTEM'/ uconfig.sh
slaxemulator@6585 69 # Make it!
slaxemulator@6585 70 make -f Makefile.micro regen_uconfig &&
slaxemulator@6585 71 make -f Makefile.micro &&
slaxemulator@6585 72 strip microperl
pankso@18 73 }
pankso@18 74
pankso@18 75 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 76 genpkg_rules()
pankso@18 77 {
pankso@18 78 mkdir -p $fs/usr
pascal@14702 79 cp -a $install/usr/bin $fs/usr
pascal@14702 80 cp -a $install/usr/lib $fs/usr
pankso@18 81 }
pankso@18 82
pankso@18 83 # Pre install commands for Tazpkg.
pankso@18 84 # Remove perl link to microperl if any.
pankso@18 85 #
pankso@18 86 pre_install()
pankso@18 87 {
pascal@18730 88 rm -f "$1/usr/bin/perl"
pankso@18 89 }