wok-4.x view perl/receipt @ rev 7892
Up: winetricks to 20110105.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jan 08 08:39:14 2011 +0000 (2011-01-08) |
parents | c161b9c835d2 |
children | 49e1e0f01970 |
line source
1 # SliTaz package receipt.
3 PACKAGE="perl"
4 VERSION="5.12.2"
5 CATEGORY="development"
6 SHORT_DESC="Full Perl interpreter and modules."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 DEPENDS="libdb gdbm"
10 WEB_SITE="http://www.perl.org/"
11 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
12 PROVIDE="microperl"
14 # Rules to configure and make the package.
15 #
16 compile_rules()
17 {
18 cd $src
19 ./configure.gnu --prefix=/usr &&
20 make -j 4 &&
21 make DESTDIR=$PWD/_pkg install
23 # make microperl here
24 # patch to fix compiling microperl
25 patch -p0 -i ../stuff/miniperlmain.patch
26 # Install in /usr (default is /usr/local).
27 sed -i s/'usr\/local'/'usr'/ uconfig.sh
28 # Sed to search mods in /usr/lib/perl5.
29 sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh
30 # Optimisation.
31 sed -i s/'unknown'/'i486-pc-linux-gnu'/ uconfig.sh
32 # Make it!
33 make -f Makefile.micro regen_uconfig &&
34 make -f Makefile.micro &&
35 strip microperl
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a $_pkg/usr/lib $fs/usr
44 }
46 # Pre install commands for Tazpkg.
47 # Remove perl link to microperl if any.
48 #
49 pre_install()
50 {
51 echo "Processing pre-install commands..."
52 rm -f $1/usr/bin/perl
53 }