wok-next view perl/receipt @ rev 20691

aescrypt: add option for SHA256sum
author Erkan Yilmaz <erkan@slitaz.org>
date Mon May 21 19:42:16 2018 +0000 (2018-05-21)
parents c67938ec0e0e
children a01c595b4737
line source
1 # SliTaz package receipt v2.
3 PACKAGE="perl"
4 VERSION="5.26.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/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/perl.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="http://www.cpan.org/src/5.0/$TARBALL"
15 COOKOPTS="!perlz"
16 BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev"
17 #SPLIT="perl-core perl perl-dev microperl:micro"
18 SPLIT="perl-core perl perl-dev"
19 # microperl: waiting for 5.26.2: https://rt.perl.org/Public/Bug/Display.html?id=132255
20 # sv.c:(.text+0x1aa95): undefined reference to `Perl_fp_class_denorm'
22 # Rules to compile & install the temporary toolchain.
23 cook_tmp_toolchain() {
24 cd $src
25 sh Configure -des \
26 -Dprefix=/tools \
27 -Dstatic_ext='Data/Dumper Fcntl IO' &&
29 # Only few tools are needed in the tmp toolchain.
30 make perl utilities ext/Errno/pm_to_blib || return 1
32 cp perl pod/pod2man /tools/bin
33 mkdir -p /tools/lib/perl5/$VERSION
34 cp -R lib/* /tools/lib/perl5/$VERSION
35 }
37 compile_rules() {
38 case $SET in
39 micro)
40 patch -p1 -i $stuff/microperl.patch
41 sed -i.orig "s|usr/local|usr|;
42 s|perl5/${VERSION%.*}|perl5/$VERSION|;
43 s|unknown|$HOST_SYSTEM|" uconfig.sh uconfig64.sh
45 case $ARCH in
46 x86_64) make -f Makefile.micro regen_uconfig64;;
47 *) make -f Makefile.micro regen_uconfig;;
48 esac &&
49 make -f Makefile.micro &&
50 install -Dm755 microperl $install/usr/bin/microperl
51 ;;
52 *)
53 export BUILD_ZLIB=False
54 export BUILD_BZIP2=0
55 sh Configure -des \
56 -Dprefix=/usr \
57 -Dvendorprefix=/usr \
58 -Dman1dir=/usr/share/man/man1 \
59 -Dman3dir=/usr/share/man/man3 \
60 -Dpager="/usr/bin/less -isR" \
61 -Duseshrplib \
62 -Dusethreads &&
63 make && make install
64 ;;
65 esac
66 }
68 genpkg_rules() {
69 case $PACKAGE in
70 perl-core)
71 copy perl perl$VERSION libperl.so
72 DEPENDS="glibc-base"
73 CAT="development|minimal interpreter"
74 ;;
75 perl)
76 copy @std @rm
77 DEPENDS="bzlib gdbm zlib perl-core"
78 PROVIDE="microperl perl-thread"
79 TAGS="LFS"
80 ;;
81 *-dev)
82 copy @dev
83 ;;
84 microperl)
85 copy @std
86 CAT="development|micro version"
87 DEPENDS="glibc-base"
88 ;;
89 esac
90 }
92 # Remove perl link to microperl if any.
93 pre_install_perl_core() {
94 rm -f "$1/usr/bin/perl"
95 }