wok-6.x view perl/receipt @ rev 15354
elfutils: fix elflint-self test
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 30 19:44:45 2013 +0000 (2013-09-30) |
parents | 6851dbe3b197 |
children | e5384ace4df2 |
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 -Dusethreads \
22 -Dstatic_ext='Data/Dumper Fcntl IO' &&
24 # Only few tools are needed in the tmp toolchain.
25 make perl utilities ext/Errno/pm_to_blib
26 } || return 1
27 cp perl pod/pod2man /tools/bin
28 mkdir -p /tools/lib/perl5/5.12.3
29 cp -R lib/* /tools/lib/perl5/5.12.3
30 }
33 # Rules to configure and make the package.
34 #
35 compile_rules()
36 {
37 cd $src
38 ./configure.gnu --prefix=/usr &&
39 make &&
40 make install
42 # make microperl here
43 # patch to fix compiling microperl
44 patch -p0 -i $stuff/miniperlmain.patch
45 # Install in /usr (default is /usr/local).
46 sed -i s/'usr\/local'/'usr'/ uconfig.sh
47 # Sed to search mods in /usr/lib/perl5.
48 sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh
49 # Optimisation.
50 sed -i s/'unknown'/'$HOST_SYSTEM'/ uconfig.sh
51 # Make it!
52 make -f Makefile.micro regen_uconfig &&
53 make -f Makefile.micro &&
54 strip microperl
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr
61 cp -a $install/usr/bin $fs/usr
62 cp -a $install/usr/lib $fs/usr
63 }
65 # Pre install commands for Tazpkg.
66 # Remove perl link to microperl if any.
67 #
68 pre_install()
69 {
70 echo "Processing pre-install commands..."
71 rm -f $1/usr/bin/perl
72 }