wok-next view perl/receipt @ rev 20806
I. node update: security -> https://nodejs.org/en/blog/vulnerability/june-2018-security-releases/ 9.5.0 -> 9.11.2 II. add checksum
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Wed Jun 13 08:26:54 2018 +0000 (2018-06-13) |
parents | a01c595b4737 |
children | f3b01def76fb |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="perl"
4 VERSION="5.26.2"
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/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/perl.html"
12 # WARNING
13 # Due to Perl libraries use versioned paths like
14 # /usr/lib/perl5/$VERSION/
15 # /usr/lib/perl5/site_perl/$VERSION/
16 # etc., you need to update ALL the Perl related packages on ANY change
17 # of the Perl version!
19 TARBALL="$PACKAGE-$VERSION.tar.bz2"
20 WGET_URL="http://www.cpan.org/src/5.0/$TARBALL"
21 # Integrity check: http://www.cpan.org/src/5.0/
22 TARBALL_SHA256="3f6a6b5bbd43016e5211e24b6631ea84216dd300216a2293b41c9195032f3e81"
24 COOKOPTS="!perlz"
25 BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev"
26 #SPLIT="perl-core perl perl-dev microperl:micro"
27 SPLIT="perl-core perl perl-dev"
28 # microperl: waiting for 5.26.2: https://rt.perl.org/Public/Bug/Display.html?id=132255
29 # sv.c:(.text+0x1aa95): undefined reference to `Perl_fp_class_denorm'
31 # Rules to compile & install the temporary toolchain.
32 cook_tmp_toolchain() {
33 cd $src
34 sh Configure -des \
35 -Dprefix=/tools \
36 -Dstatic_ext='Data/Dumper Fcntl IO' &&
38 # Only few tools are needed in the tmp toolchain.
39 make perl utilities ext/Errno/pm_to_blib || return 1
41 cp perl pod/pod2man /tools/bin
42 mkdir -p /tools/lib/perl5/$VERSION
43 cp -R lib/* /tools/lib/perl5/$VERSION
44 }
46 compile_rules() {
47 case $SET in
48 micro)
49 patch -p1 -i $stuff/microperl.patch
50 sed -i.orig "s|usr/local|usr|;
51 s|perl5/${VERSION%.*}|perl5/$VERSION|;
52 s|unknown|$HOST_SYSTEM|" uconfig.sh uconfig64.sh
54 case $ARCH in
55 x86_64) make -f Makefile.micro regen_uconfig64;;
56 *) make -f Makefile.micro regen_uconfig;;
57 esac &&
58 make -f Makefile.micro &&
59 install -Dm755 microperl $install/usr/bin/microperl
60 ;;
61 *)
62 export BUILD_ZLIB=False
63 export BUILD_BZIP2=0
64 sh Configure -des \
65 -Dprefix=/usr \
66 -Dvendorprefix=/usr \
67 -Dman1dir=/usr/share/man/man1 \
68 -Dman3dir=/usr/share/man/man3 \
69 -Dpager="/usr/bin/less -isR" \
70 -Duseshrplib \
71 -Dusethreads &&
72 make && make install
73 ;;
74 esac
75 }
77 genpkg_rules() {
78 case $PACKAGE in
79 perl-core)
80 copy perl perl$VERSION libperl.so
81 DEPENDS="glibc-base"
82 CAT="development|minimal interpreter"
83 ;;
84 perl)
85 copy @std @rm
86 DEPENDS="bzlib gdbm zlib perl-core"
87 PROVIDE="microperl perl-thread"
88 TAGS="LFS"
89 ;;
90 *-dev)
91 copy @dev
92 ;;
93 microperl)
94 copy @std
95 CAT="development|micro version"
96 DEPENDS="glibc-base"
97 ;;
98 esac
99 }
101 # Remove perl link to microperl if any.
102 pre_install_perl_core() {
103 rm -f "$1/usr/bin/perl"
104 }