wok-current view perl/receipt @ rev 19628
Up sslh (1.18)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 12 11:41:16 2017 +0100 (2017-01-12) |
parents | 9e01bc6321ea |
children | 7423cf91a25b |
line source
1 # SliTaz package receipt.
3 PACKAGE="perl"
4 VERSION="5.12.3"
5 CATEGORY="development"
6 SHORT_DESC="Full Perl interpreter and modules."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 DEPENDS="libdb gdbm zlib"
11 BUILD_DEPENDS="db gdbm zlib less"
12 WEB_SITE="http://www.perl.org/"
13 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
14 PROVIDE="microperl"
16 # Rules to compile & install the temporary toolchain.
17 cook_tmp_toolchain()
18 {
19 cd $src
20 { sh Configure -des -Dprefix=/tools \
21 -Dstatic_ext='Data/Dumper Fcntl IO' &&
23 # Only few tools are needed in the tmp toolchain.
24 make perl utilities ext/Errno/pm_to_blib
25 } || return 1
26 cp perl pod/pod2man /tools/bin
27 mkdir -p /tools/lib/perl5/5.12.3
28 cp -R lib/* /tools/lib/perl5/5.12.3
29 }
32 # Rules to configure and make the package.
33 #
34 compile_rules()
35 {
36 cd $src
37 ./configure.gnu --prefix=/usr &&
38 make &&
39 make install
41 # make microperl here
42 # patch to fix compiling microperl
43 patch -p0 -i $stuff/miniperlmain.patch
44 # Install in /usr (default is /usr/local).
45 sed -i s/'usr\/local'/'usr'/ uconfig.sh
46 # Sed to search mods in /usr/lib/perl5.
47 sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh
48 # Optimisation.
49 sed -i s/'unknown'/'$HOST_SYSTEM'/ uconfig.sh
50 # Make it!
51 make -f Makefile.micro regen_uconfig &&
52 make -f Makefile.micro &&
53 strip microperl
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr
60 cp -a $install/usr/bin $fs/usr
61 cp -a $install/usr/lib $fs/usr
62 }
64 # Pre install commands for Tazpkg.
65 # Remove perl link to microperl if any.
66 #
67 pre_install()
68 {
69 rm -f "$1/usr/bin/perl"
70 }