wok-next annotate perl/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 82b613cfd1e0
children
rev   line source
al@19745 1 # SliTaz package receipt v2.
pankso@18 2
pankso@18 3 PACKAGE="perl"
al@21064 4 VERSION="5.28.1"
pankso@204 5 CATEGORY="development"
al@19745 6 SHORT_DESC="Perl interpreter and modules"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@14702 8 LICENSE="GPL"
al@19568 9 WEB_SITE="https://www.perl.org/"
al@20436 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/perl.html"
al@19568 11
al@20805 12 # WARNING
al@20805 13 # Due to Perl libraries use versioned paths like
al@20805 14 # /usr/lib/perl5/$VERSION/
al@20805 15 # /usr/lib/perl5/site_perl/$VERSION/
al@20805 16 # etc., you need to update ALL the Perl related packages on ANY change
al@20805 17 # of the Perl version!
al@20805 18
al@20858 19 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19568 20 WGET_URL="http://www.cpan.org/src/5.0/$TARBALL"
erkan@20802 21 # Integrity check: http://www.cpan.org/src/5.0/
al@21064 22 TARBALL_SHA256="fea7162d4cca940a387f0587b93f6737d884bf74d8a9d7cfd978bc12cd0b202d"
al@19568 23
al@21067 24 # force-arch: architecture-dependent paths here,
al@21067 25 # perl-dev contains /usr/lib/perl5/5.28.1/i486-linux-thread-multi/CORE/EXTERN.h
al@21067 26 # and so on
al@21067 27 COOKOPTS="!perlz force-arch"
al@19568 28 BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev"
al@21020 29 SPLIT="$PACKAGE-core $PACKAGE $PACKAGE-dev"
gokhlayeh@8209 30
al@20436 31 compile_rules() {
al@20858 32 export BUILD_ZLIB=False
al@20858 33 export BUILD_BZIP2=0
al@20858 34 sh Configure -des \
al@20858 35 -Dprefix=/usr \
al@20858 36 -Dvendorprefix=/usr \
al@20858 37 -Dman1dir=/usr/share/man/man1 \
al@20858 38 -Dman3dir=/usr/share/man/man3 \
al@20858 39 -Dpager="/usr/bin/less -isR" \
al@20858 40 -Duseshrplib \
al@20858 41 -Dusethreads &&
al@20858 42 make &&
al@21064 43 make install || return 1
al@21064 44
al@21064 45 find $install -type f -exec chmod u+w '{}' \; # 444->644, 555->755
pankso@18 46 }
pankso@18 47
al@20436 48 genpkg_rules() {
al@19745 49 case $PACKAGE in
al@19745 50 perl-core)
al@19745 51 copy perl perl$VERSION libperl.so
al@19745 52 DEPENDS="glibc-base"
al@19745 53 CAT="development|minimal interpreter"
al@19745 54 ;;
al@20436 55 perl)
al@20436 56 copy @std @rm
al@21111 57 DEPENDS="libbzip2 libgdbm zlib perl-core"
al@20858 58 PROVIDE="microperl"
al@20436 59 TAGS="LFS"
al@20436 60 ;;
al@20436 61 *-dev)
al@20436 62 copy @dev
al@20436 63 ;;
al@19745 64 esac
pankso@18 65 }
pankso@18 66
pankso@18 67 # Remove perl link to microperl if any.
al@19745 68 pre_install_perl_core() {
pascal@18730 69 rm -f "$1/usr/bin/perl"
pankso@18 70 }