wok-current view perl-dev/receipt @ rev 23057
Add perl-dev
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 07 16:51:42 2020 +0100 (2020-03-07) |
parents | |
children | 74421a6c9fbb |
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 with 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="http://www.perl.org/"
14 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
16 # Rules to compile & install the temporary toolchain.
17 cook_tmp_toolchain()
18 {
19 { sh Configure -des -Dprefix=/tools \
20 -Darchname="$ARCH-linux" \
21 -Dmyarchname="$ARCH-linux" \
22 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
23 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
24 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
25 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
26 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
27 -Dstatic_ext='Data/Dumper Fcntl IO'
29 # Only few tools are needed in the tmp toolchain.
30 make perl utilities ext/Errno/pm_to_blib
31 } || return 1
32 cp perl pod/pod2man /tools/bin
33 mkdir -p /tools/lib/perl5/$VERSION
34 cp -R lib/* /tools/lib/perl5/$VERSION
35 }
38 # Rules to configure and make the package.
39 #
40 compile_rules()
41 {
42 ./configure.gnu --prefix=/usr \
43 -Duseshrplib \
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
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install/usr/lib $fs/usr
61 }
63 # Pre install commands for Tazpkg.
64 # Remove perl link to microperl if any.
65 #
66 pre_install()
67 {
68 rm -f "$1/usr/bin/perl"
69 }