wok-6.x view perl/receipt @ rev 23245

updated njconnect (1.2 -> 1.6)
author Hans-G?nter Theisgen
date Wed Mar 25 10:58:29 2020 +0100 (2020-03-25)
parents 049ced0bd387
children 15650f5d595b
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="https://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 -Darchname="$ARCH-linux" \
22 -Dmyarchname="$ARCH-linux" \
23 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
24 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
25 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
26 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
27 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
28 -Dstatic_ext='Data/Dumper Fcntl IO'
30 # Only few tools are needed in the tmp toolchain.
31 make perl utilities ext/Errno/pm_to_blib
32 } || return 1
33 cp perl pod/pod2man /tools/bin
34 mkdir -p /tools/lib/perl5/$VERSION
35 cp -R lib/* /tools/lib/perl5/$VERSION
36 }
39 # Rules to configure and make the package.
40 #
41 compile_rules()
42 {
43 ./configure.gnu --prefix=/usr \
44 -Darchname="$ARCH-linux" \
45 -Dmyarchname="$ARCH-linux" \
46 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
47 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
48 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
49 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
50 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" &&
51 make &&
52 make install
54 # make microperl here
55 # patch to fix compiling microperl
56 patch -p0 -i $stuff/miniperlmain.patch
57 # Install in /usr (default is /usr/local).
58 sed -i s/'usr\/local'/'usr'/ uconfig.sh
59 # Sed to search mods in /usr/lib/perl5.
60 sed -i s/'perl5\/'${VERSION%.*}/'perl5'/ uconfig.sh
61 # Optimisation.
62 sed -i s/'unknown'/'$HOST_SYSTEM'/ uconfig.sh
63 # Make it!
64 make -f Makefile.micro regen_uconfig &&
65 make -f Makefile.micro &&
66 strip microperl
67 }
69 # Rules to gen a SliTaz package suitable for Tazpkg.
70 genpkg_rules()
71 {
72 mkdir -p $fs/usr
73 cp -a $install/usr/bin $fs/usr
74 cp -a $install/usr/lib $fs/usr
75 }
77 # Pre install commands for Tazpkg.
78 # Remove perl link to microperl if any.
79 #
80 pre_install()
81 {
82 rm -f "$1/usr/bin/perl"
83 }