wok-next view perl/receipt @ rev 19662

Remove tazchroot (not used for yearsand unusable)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 16 18:37:27 2017 +0100 (2017-03-16)
parents 6fab3264ba87
children 9a17d981d0f7
line source
1 # SliTaz package receipt.
3 PACKAGE="perl"
4 VERSION="5.24.0"
5 CATEGORY="development"
6 SHORT_DESC="Full 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 DEPENDS="zlib bzlib gdbm"
15 BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev"
16 PROVIDE="microperl"
17 SIBLINGS="microperl"
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 cook_copy_folders bin lib
54 # Save space for duplicates
55 rm $fs/usr/bin/perl
56 ln -s perl$VERSION $fs/usr/bin/perl
57 }
59 # Pre install commands for Tazpkg.
60 # Remove perl link to microperl if any.
61 #
62 pre_install()
63 {
64 rm -f "$1/usr/bin/perl"
65 }