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