wok-next annotate perl/receipt @ rev 19709
Up at-spi2-atk, libpcap, nettle, readline, tiff, xcb-util* and 220 Perl packages (there are still about 20 left)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu May 11 02:23:02 2017 +0300 (2017-05-11) |
parents | 6fab3264ba87 |
children | 9a17d981d0f7 |
rev | line source |
---|---|
pankso@18 | 1 # SliTaz package receipt. |
pankso@18 | 2 |
pankso@18 | 3 PACKAGE="perl" |
al@19568 | 4 VERSION="5.24.0" |
pankso@204 | 5 CATEGORY="development" |
pankso@18 | 6 SHORT_DESC="Full Perl interpreter and modules." |
pankso@18 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
al@19568 | 9 WEB_SITE="https://www.perl.org/" |
al@19568 | 10 |
slaxemulator@8148 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19568 | 12 WGET_URL="http://www.cpan.org/src/5.0/$TARBALL" |
al@19568 | 13 |
al@19568 | 14 DEPENDS="zlib bzlib gdbm" |
al@19568 | 15 BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev" |
pascal@2332 | 16 PROVIDE="microperl" |
al@19568 | 17 SIBLINGS="microperl" |
pankso@18 | 18 |
gokhlayeh@8209 | 19 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8209 | 20 cook_tmp_toolchain() |
gokhlayeh@8209 | 21 { |
gokhlayeh@8209 | 22 cd $src |
gokhlayeh@8209 | 23 { sh Configure -des -Dprefix=/tools \ |
gokhlayeh@8209 | 24 -Dstatic_ext='Data/Dumper Fcntl IO' && |
gokhlayeh@8209 | 25 |
gokhlayeh@8209 | 26 # Only few tools are needed in the tmp toolchain. |
gokhlayeh@8209 | 27 make perl utilities ext/Errno/pm_to_blib |
gokhlayeh@8209 | 28 } || return 1 |
gokhlayeh@8209 | 29 cp perl pod/pod2man /tools/bin |
al@19568 | 30 mkdir -p /tools/lib/perl5/$VERSION |
al@19568 | 31 cp -R lib/* /tools/lib/perl5/$VERSION |
gokhlayeh@8209 | 32 } |
gokhlayeh@8209 | 33 |
pankso@18 | 34 # Rules to configure and make the package. |
pankso@18 | 35 compile_rules() |
pankso@18 | 36 { |
al@19568 | 37 export BUILD_ZLIB=False |
al@19568 | 38 export BUILD_BZIP2=0 |
al@19568 | 39 sh Configure -des \ |
al@19568 | 40 -Dprefix=/usr \ |
al@19568 | 41 -Dvendorprefix=/usr \ |
al@19568 | 42 -Dman1dir=/usr/share/man/man1 \ |
al@19568 | 43 -Dman3dir=/usr/share/man/man3 \ |
al@19568 | 44 -Dpager="/usr/bin/less -isR" \ |
al@19568 | 45 -Duseshrplib && |
al@19568 | 46 make && make install |
pankso@18 | 47 } |
pankso@18 | 48 |
pankso@18 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 50 genpkg_rules() |
pankso@18 | 51 { |
al@19568 | 52 cook_copy_folders bin lib |
al@19568 | 53 |
al@19568 | 54 # Save space for duplicates |
al@19568 | 55 rm $fs/usr/bin/perl |
al@19568 | 56 ln -s perl$VERSION $fs/usr/bin/perl |
pankso@18 | 57 } |
pankso@18 | 58 |
pankso@18 | 59 # Pre install commands for Tazpkg. |
pankso@18 | 60 # Remove perl link to microperl if any. |
pankso@18 | 61 # |
pankso@18 | 62 pre_install() |
pankso@18 | 63 { |
pascal@18730 | 64 rm -f "$1/usr/bin/perl" |
pankso@18 | 65 } |