wok view perl-dev/receipt @ rev 23784
updated xvkbd (3.7 -> 4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 21 14:49:06 2020 +0100 (2020-05-21) |
parents | 74421a6c9fbb |
children | 15650f5d595b |
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-dev"
4 VERSION="5.14.1"
5 CATEGORY="development"
6 SHORT_DESC="Full Perl interpreter and modules using libperl.so."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL"
9 SOURCE="perl"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 DEPENDS="libdb gdbm zlib"
12 BUILD_DEPENDS="db gdbm zlib less"
13 WEB_SITE="https://www.perl.org/"
14 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
15 PROVIDE="perl"
17 # Rules to compile & install the temporary toolchain.
18 cook_tmp_toolchain()
19 {
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 -Duseshrplib \
45 -Darchname="$ARCH-linux" \
46 -Dmyarchname="$ARCH-linux" \
47 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
48 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
49 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
50 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
51 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" &&
52 make &&
53 make install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr
60 cp -a $install/usr/bin $fs/usr
61 cp -a $install/usr/lib $fs/usr
62 }
64 # Pre install commands for Tazpkg.
65 # Remove perl link to microperl if any.
66 #
67 pre_install()
68 {
69 rm -f "$1/usr/bin/perl"
70 }