wok-6.x view perl/receipt @ rev 25415
updated wordwarvi (1.0.2 -> 1.0.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 04 08:54:13 2022 +0100 (2022-08-04) |
parents | 93cfbe138cae |
children |
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 current_version()
17 {
18 wget -O - $WEB_SITE 2>/dev/null | \
19 sed '/version-highlight/!d;s|.*">||;s|<.*||;q'
20 }
22 # Rules to compile & install the temporary toolchain.
23 cook_tmp_toolchain()
24 {
25 cd $src
26 { sh Configure -des -Dprefix=/tools \
27 -Darchname="$ARCH-linux" \
28 -Dmyarchname="$ARCH-linux" \
29 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
30 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
31 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
32 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
33 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
34 -Dstatic_ext='Data/Dumper Fcntl IO'
36 # Only few tools are needed in the tmp toolchain.
37 make perl utilities ext/Errno/pm_to_blib
38 } || return 1
39 cp perl pod/pod2man /tools/bin
40 mkdir -p /tools/lib/perl5/$VERSION
41 cp -R lib/* /tools/lib/perl5/$VERSION
42 }
45 # Rules to configure and make the package.
46 #
47 compile_rules()
48 {
49 ./configure.gnu --prefix=/usr \
50 -Darchname="$ARCH-linux" \
51 -Dmyarchname="$ARCH-linux" \
52 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
53 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
54 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
55 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
56 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" &&
57 make &&
58 make install
60 # make microperl here
61 # patch to fix compiling microperl
62 patch -p0 -i $stuff/miniperlmain.patch
63 # Install in /usr (default is /usr/local).
64 sed -i s/'usr\/local'/'usr'/ uconfig.sh
65 # Sed to search mods in /usr/lib/perl5.
66 sed -i s/'perl5\/'${VERSION%.*}/'perl5'/ uconfig.sh
67 # Optimisation.
68 sed -i s/'unknown'/'$HOST_SYSTEM'/ uconfig.sh
69 # Make it!
70 make -f Makefile.micro regen_uconfig &&
71 make -f Makefile.micro &&
72 strip microperl
73 }
75 # Rules to gen a SliTaz package suitable for Tazpkg.
76 genpkg_rules()
77 {
78 mkdir -p $fs/usr
79 cp -a $install/usr/bin $fs/usr
80 cp -a $install/usr/lib $fs/usr
81 }
83 # Pre install commands for Tazpkg.
84 # Remove perl link to microperl if any.
85 #
86 pre_install()
87 {
88 rm -f "$1/usr/bin/perl"
89 }