wok-current view perl/receipt @ rev 20479
Perl: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 17 21:15:47 2018 +0200 (2018-10-17) |
parents | 7096ff088f38 |
children | 049ced0bd387 |
line source
1 # SliTaz package receipt.
3 PACKAGE="perl"
4 VERSION="5.14.1"
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 grep -rl 'uname -m' . | xargs sed -i 's|uname -m|echo i686|'
21 { sh Configure -des -Dprefix=/tools \
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/$VERSION
29 cp -R lib/* /tools/lib/perl5/$VERSION
30 }
33 # Rules to configure and make the package.
34 #
35 compile_rules()
36 {
37 grep -rl 'uname -m' . | xargs sed -i 's|uname -m|echo i686|'
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\/'${VERSION%.*}/'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 rm -f "$1/usr/bin/perl"
71 }