wok-next view perl/receipt @ rev 19989
Up LXQt (WIP, to be continued...)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Oct 20 06:08:44 2017 +0300 (2017-10-20) |
parents | bc6672455954 |
children | 90a5eb560fd6 |
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 COOKOPTS="!perlz"
15 BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev"
16 SPLIT="perl-core perl-dev"
17 SIBLINGS="microperl perl-thread"
19 # Rules to compile & install the temporary toolchain.
20 cook_tmp_toolchain()
21 {
22 cd $src
23 { sh Configure -des -Dprefix=/tools \
24 -Dstatic_ext='Data/Dumper Fcntl IO' &&
26 # Only few tools are needed in the tmp toolchain.
27 make perl utilities ext/Errno/pm_to_blib
28 } || return 1
29 cp perl pod/pod2man /tools/bin
30 mkdir -p /tools/lib/perl5/$VERSION
31 cp -R lib/* /tools/lib/perl5/$VERSION
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 export BUILD_ZLIB=False
38 export BUILD_BZIP2=0
39 sh Configure -des \
40 -Dprefix=/usr \
41 -Dvendorprefix=/usr \
42 -Dman1dir=/usr/share/man/man1 \
43 -Dman3dir=/usr/share/man/man3 \
44 -Dpager="/usr/bin/less -isR" \
45 -Duseshrplib &&
46 make && make install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 case $PACKAGE in
53 perl)
54 copy @std
55 find $fs \( -name perl -o -name perl$VERSION -o -name libperl.so \) -delete
56 DEPENDS="bzlib gdbm zlib perl-core"
57 PROVIDE="microperl"
58 ;;
59 perl-core)
60 # perl binary depends on libperl.so
61 copy perl perl$VERSION libperl.so
62 DEPENDS="glibc-base"
63 CAT="development|minimal interpreter"
64 ;;
65 *-dev) copy @dev;;
66 esac
67 }
69 # Remove perl link to microperl if any.
70 pre_install_perl_core() {
71 rm -f "$1/usr/bin/perl"
72 }