wok view perl-dev/receipt @ rev 25770

dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 06 11:29:23 2024 +0000 (2 months ago)
parents 93cfbe138cae
children
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 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/version-highlight/!d;s|.*">||;s|<.*||;q'
21 }
23 # Rules to compile & install the temporary toolchain.
24 cook_tmp_toolchain()
25 {
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 -Duseshrplib \
51 -Darchname="$ARCH-linux" \
52 -Dmyarchname="$ARCH-linux" \
53 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
54 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
55 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
56 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
57 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" &&
58 make &&
59 make install
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 mkdir -p $fs/usr
66 cp -a $install/usr/bin $fs/usr
67 cp -a $install/usr/lib $fs/usr
68 }
70 # Pre install commands for Tazpkg.
71 # Remove perl link to microperl if any.
72 #
73 pre_install()
74 {
75 rm -f "$1/usr/bin/perl"
76 }