wok-next view perl/receipt @ rev 20402
Up seed (3.8.1) use webkitgtk instead of libwebkit; add cogl for clutter; up clutter (1.26.2) using mesa17 instead of mesa; up gnome-games using mesa17 instead of mix 'mesa & mesa17'
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Dec 05 17:49:11 2017 +0200 (2017-12-05) |
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 }