wok-next annotate perl/receipt @ rev 20230
Up graphviz
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 06 05:30:08 2017 +0200 (2017-11-06) |
parents | bc6672455954 |
children | 90a5eb560fd6 |
rev | line source |
---|---|
al@19745 | 1 # SliTaz package receipt v2. |
pankso@18 | 2 |
pankso@18 | 3 PACKAGE="perl" |
al@19745 | 4 VERSION="5.24.1" |
pankso@204 | 5 CATEGORY="development" |
al@19745 | 6 SHORT_DESC="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@19773 | 14 COOKOPTS="!perlz" |
al@19568 | 15 BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev" |
al@19745 | 16 SPLIT="perl-core perl-dev" |
al@19770 | 17 SIBLINGS="microperl perl-thread" |
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@19745 | 52 case $PACKAGE in |
al@19745 | 53 perl) |
al@19745 | 54 copy @std |
al@19745 | 55 find $fs \( -name perl -o -name perl$VERSION -o -name libperl.so \) -delete |
al@19745 | 56 DEPENDS="bzlib gdbm zlib perl-core" |
al@19745 | 57 PROVIDE="microperl" |
al@19745 | 58 ;; |
al@19745 | 59 perl-core) |
al@19745 | 60 # perl binary depends on libperl.so |
al@19745 | 61 copy perl perl$VERSION libperl.so |
al@19745 | 62 DEPENDS="glibc-base" |
al@19745 | 63 CAT="development|minimal interpreter" |
al@19745 | 64 ;; |
al@19745 | 65 *-dev) copy @dev;; |
al@19745 | 66 esac |
pankso@18 | 67 } |
pankso@18 | 68 |
pankso@18 | 69 # Remove perl link to microperl if any. |
al@19745 | 70 pre_install_perl_core() { |
pascal@18730 | 71 rm -f "$1/usr/bin/perl" |
pankso@18 | 72 } |