wok-undigest view perl/receipt @ rev 688
Up zerobin (0.13_alpha)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 19 08:11:22 2012 +0200 (2012-04-19) |
parents | |
children |
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 DEPENDS="libdb gdbm zlib"
10 BUILD_DEPENDS="db gdbm zlib"
11 WEB_SITE="http://www.perl.org/"
12 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
13 PROVIDE="microperl"
15 # Rules to compile & install the temporary toolchain.
16 cook_tmp_toolchain()
17 {
18 cd $src
19 { sh Configure -des -Dprefix=/tools \
20 -Dstatic_ext='Data/Dumper Fcntl IO' &&
22 # Only few tools are needed in the tmp toolchain.
23 make perl utilities ext/Errno/pm_to_blib
24 } || return 1
25 cp perl pod/pod2man /tools/bin
26 mkdir -p /tools/lib/perl5/5.12.3
27 cp -R lib/* /tools/lib/perl5/5.12.3
28 }
31 # Rules to configure and make the package.
32 #
33 compile_rules()
34 {
35 cd $src
36 yes '' | sh Configure -Dusethreads -Dprefix=/usr
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 $_pkg/usr/bin $fs/usr
61 cp -a $_pkg/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 echo "Processing pre-install commands..."
70 rm -f $1/usr/bin/perl
71 }