wok-next view perl/receipt @ rev 13551

syslinux: update c32box/linux
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 02 10:44:52 2012 +0100 (2012-11-02)
parents d1768332cee0
children 2d12ebd38be4
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 ./configure.gnu --prefix=/usr &&
37 make &&
38 make install
40 # make microperl here
41 # patch to fix compiling microperl
42 patch -p0 -i $stuff/miniperlmain.patch
43 # Install in /usr (default is /usr/local).
44 sed -i s/'usr\/local'/'usr'/ uconfig.sh
45 # Sed to search mods in /usr/lib/perl5.
46 sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh
47 # Optimisation.
48 sed -i s/'unknown'/'$HOST_SYSTEM'/ uconfig.sh
49 # Make it!
50 make -f Makefile.micro regen_uconfig &&
51 make -f Makefile.micro &&
52 strip microperl
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr
59 cp -a $_pkg/usr/bin $fs/usr
60 cp -a $_pkg/usr/lib $fs/usr
61 }
63 # Pre install commands for Tazpkg.
64 # Remove perl link to microperl if any.
65 #
66 pre_install()
67 {
68 echo "Processing pre-install commands..."
69 rm -f $1/usr/bin/perl
70 }