wok-next annotate perl/receipt @ rev 19751

Up perl-xml-parser: we have perl-dev now...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 08 15:34:29 2017 +0300 (2017-06-08)
parents 96871f3890f0
children bc6672455954
rev   line source
al@19745 1 # SliTaz package receipt v2.
pankso@18 2
pankso@18 3 PACKAGE="perl"
al@19745 4 VERSION="5.24.1"
pankso@204 5 CATEGORY="development"
al@19745 6 SHORT_DESC="Perl interpreter and modules"
pankso@18 7 MAINTAINER="pankso@slitaz.org"
pascal@14702 8 LICENSE="GPL"
al@19568 9 WEB_SITE="https://www.perl.org/"
al@19568 10
slaxemulator@8148 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19568 12 WGET_URL="http://www.cpan.org/src/5.0/$TARBALL"
al@19568 13
al@19568 14 BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev"
al@19745 15 SPLIT="perl-core perl-dev"
al@19568 16 SIBLINGS="microperl"
pankso@18 17
gokhlayeh@8209 18 # Rules to compile & install the temporary toolchain.
gokhlayeh@8209 19 cook_tmp_toolchain()
gokhlayeh@8209 20 {
gokhlayeh@8209 21 cd $src
gokhlayeh@8209 22 { sh Configure -des -Dprefix=/tools \
gokhlayeh@8209 23 -Dstatic_ext='Data/Dumper Fcntl IO' &&
gokhlayeh@8209 24
gokhlayeh@8209 25 # Only few tools are needed in the tmp toolchain.
gokhlayeh@8209 26 make perl utilities ext/Errno/pm_to_blib
gokhlayeh@8209 27 } || return 1
gokhlayeh@8209 28 cp perl pod/pod2man /tools/bin
al@19568 29 mkdir -p /tools/lib/perl5/$VERSION
al@19568 30 cp -R lib/* /tools/lib/perl5/$VERSION
gokhlayeh@8209 31 }
gokhlayeh@8209 32
pankso@18 33 # Rules to configure and make the package.
pankso@18 34 compile_rules()
pankso@18 35 {
al@19568 36 export BUILD_ZLIB=False
al@19568 37 export BUILD_BZIP2=0
al@19568 38 sh Configure -des \
al@19568 39 -Dprefix=/usr \
al@19568 40 -Dvendorprefix=/usr \
al@19568 41 -Dman1dir=/usr/share/man/man1 \
al@19568 42 -Dman3dir=/usr/share/man/man3 \
al@19568 43 -Dpager="/usr/bin/less -isR" \
al@19568 44 -Duseshrplib &&
al@19568 45 make && make install
pankso@18 46 }
pankso@18 47
pankso@18 48 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 49 genpkg_rules()
pankso@18 50 {
al@19745 51 case $PACKAGE in
al@19745 52 perl)
al@19745 53 copy @std
al@19745 54 find $fs \( -name perl -o -name perl$VERSION -o -name libperl.so \) -delete
al@19745 55 DEPENDS="bzlib gdbm zlib perl-core"
al@19745 56 PROVIDE="microperl"
al@19745 57 ;;
al@19745 58 perl-core)
al@19745 59 # perl binary depends on libperl.so
al@19745 60 copy perl perl$VERSION libperl.so
al@19745 61 DEPENDS="glibc-base"
al@19745 62 CAT="development|minimal interpreter"
al@19745 63 ;;
al@19745 64 *-dev) copy @dev;;
al@19745 65 esac
pankso@18 66 }
pankso@18 67
pankso@18 68 # Remove perl link to microperl if any.
al@19745 69 pre_install_perl_core() {
pascal@18730 70 rm -f "$1/usr/bin/perl"
pankso@18 71 }