wok 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 | a3b001408630 |
children | 74421a6c9fbb |
files | claws-mail/receipt perl-dev/receipt |
line diff
1.1 --- a/claws-mail/receipt Sat Mar 07 16:37:51 2020 +0100 1.2 +++ b/claws-mail/receipt Sat Mar 07 16:51:42 2020 +0100 1.3 @@ -23,7 +23,7 @@ 1.4 gtk+-dev lcms-dev libarchive-dev libassuan-dev libetpan-dev 1.5 libgnome-keyring-dev libgnutls libgpg-error-dev libical-dev 1.6 libidn-dev liblzma-dev libunistring-dev libwebkit-dev libxslt-dev 1.7 - perl pkg-config poppler-dev pygtk-dev python-dev util-linux-uuid-dev 1.8 + perl-dev pkg-config poppler-dev pygtk-dev python-dev util-linux-uuid-dev 1.9 xcb-util-dev xorg-dev xorg-libXcomposite-dev xorg-libXcursor-dev 1.10 xorg-libXdamage-dev xorg-libXinerama-dev xorg-libXrandr-dev 1.11 xorg-libXt-dev ytnef-dev pkg-config"
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/perl-dev/receipt Sat Mar 07 16:51:42 2020 +0100 2.3 @@ -0,0 +1,69 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="perl-dev" 2.7 +VERSION="5.14.1" 2.8 +CATEGORY="development" 2.9 +SHORT_DESC="Full Perl interpreter and modules with libperl.so." 2.10 +MAINTAINER="pankso@slitaz.org" 2.11 +LICENSE="GPL" 2.12 +SOURCE="perl" 2.13 +TARBALL="$SOURCE-$VERSION.tar.bz2" 2.14 +DEPENDS="libdb gdbm zlib" 2.15 +BUILD_DEPENDS="db gdbm zlib less" 2.16 +WEB_SITE="http://www.perl.org/" 2.17 +WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" 2.18 + 2.19 +# Rules to compile & install the temporary toolchain. 2.20 +cook_tmp_toolchain() 2.21 +{ 2.22 + { sh Configure -des -Dprefix=/tools \ 2.23 + -Darchname="$ARCH-linux" \ 2.24 + -Dmyarchname="$ARCH-linux" \ 2.25 + -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ 2.26 + -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ 2.27 + -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \ 2.28 + -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \ 2.29 + -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \ 2.30 + -Dstatic_ext='Data/Dumper Fcntl IO' 2.31 + 2.32 + # Only few tools are needed in the tmp toolchain. 2.33 + make perl utilities ext/Errno/pm_to_blib 2.34 + } || return 1 2.35 + cp perl pod/pod2man /tools/bin 2.36 + mkdir -p /tools/lib/perl5/$VERSION 2.37 + cp -R lib/* /tools/lib/perl5/$VERSION 2.38 +} 2.39 + 2.40 + 2.41 +# Rules to configure and make the package. 2.42 +# 2.43 +compile_rules() 2.44 +{ 2.45 + ./configure.gnu --prefix=/usr \ 2.46 + -Duseshrplib \ 2.47 + -Darchname="$ARCH-linux" \ 2.48 + -Dmyarchname="$ARCH-linux" \ 2.49 + -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ 2.50 + -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ 2.51 + -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \ 2.52 + -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \ 2.53 + -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" && 2.54 + make && 2.55 + make install 2.56 +} 2.57 + 2.58 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.59 +genpkg_rules() 2.60 +{ 2.61 + mkdir -p $fs/usr 2.62 + cp -a $install/usr/bin $fs/usr 2.63 + cp -a $install/usr/lib $fs/usr 2.64 +} 2.65 + 2.66 +# Pre install commands for Tazpkg. 2.67 +# Remove perl link to microperl if any. 2.68 +# 2.69 +pre_install() 2.70 +{ 2.71 + rm -f "$1/usr/bin/perl" 2.72 +}