wok-undigest rev 1227

copied perl recipe from wok-next
author Hans-G?nter Theisgen
date Fri Nov 15 17:49:31 2019 +0100 (2019-11-15)
parents f987b2a37476
children 94f3f54e446d
files perl/.icon.png perl/receipt
line diff
     1.1 Binary file perl/.icon.png has changed
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/perl/receipt	Fri Nov 15 17:49:31 2019 +0100
     2.3 @@ -0,0 +1,70 @@
     2.4 +# SliTaz package receipt v2.
     2.5 +
     2.6 +PACKAGE="perl"
     2.7 +VERSION="5.28.1"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="Perl interpreter and modules"
    2.10 +MAINTAINER="devel@slitaz.org"
    2.11 +LICENSE="GPL"
    2.12 +WEB_SITE="https://www.perl.org/"
    2.13 +LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/perl.html"
    2.14 +
    2.15 +# WARNING
    2.16 +# Due to Perl libraries use versioned paths like
    2.17 +#   /usr/lib/perl5/$VERSION/
    2.18 +#   /usr/lib/perl5/site_perl/$VERSION/
    2.19 +# etc., you need to update ALL the Perl related packages on ANY change
    2.20 +# of the Perl version!
    2.21 +
    2.22 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    2.23 +WGET_URL="http://www.cpan.org/src/5.0/$TARBALL"
    2.24 +# Integrity check: http://www.cpan.org/src/5.0/
    2.25 +TARBALL_SHA256="fea7162d4cca940a387f0587b93f6737d884bf74d8a9d7cfd978bc12cd0b202d"
    2.26 +
    2.27 +# force-arch: architecture-dependent paths here,
    2.28 +# perl-dev contains /usr/lib/perl5/5.28.1/i486-linux-thread-multi/CORE/EXTERN.h
    2.29 +# and so on
    2.30 +COOKOPTS="!perlz force-arch"
    2.31 +BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev"
    2.32 +SPLIT="$PACKAGE-core $PACKAGE $PACKAGE-dev"
    2.33 +
    2.34 +compile_rules() {
    2.35 +	export BUILD_ZLIB=False
    2.36 +	export BUILD_BZIP2=0
    2.37 +	sh Configure -des \
    2.38 +		-Dprefix=/usr \
    2.39 +		-Dvendorprefix=/usr \
    2.40 +		-Dman1dir=/usr/share/man/man1 \
    2.41 +		-Dman3dir=/usr/share/man/man3 \
    2.42 +		-Dpager="/usr/bin/less -isR" \
    2.43 +		-Duseshrplib \
    2.44 +		-Dusethreads &&
    2.45 +	make &&
    2.46 +	make install || return 1
    2.47 +
    2.48 +	find $install -type f -exec chmod u+w '{}' \; # 444->644, 555->755
    2.49 +}
    2.50 +
    2.51 +genpkg_rules() {
    2.52 +	case $PACKAGE in
    2.53 +		perl-core)
    2.54 +			copy perl perl$VERSION libperl.so
    2.55 +			DEPENDS="glibc-base"
    2.56 +			CAT="development|minimal interpreter"
    2.57 +			;;
    2.58 +		perl)
    2.59 +			copy @std @rm
    2.60 +			DEPENDS="libbzip2 libgdbm zlib perl-core"
    2.61 +			PROVIDE="microperl"
    2.62 +			TAGS="LFS"
    2.63 +			;;
    2.64 +		*-dev)
    2.65 +			copy @dev
    2.66 +			;;
    2.67 +	esac
    2.68 +}
    2.69 +
    2.70 +# Remove perl link to microperl if any.
    2.71 +pre_install_perl_core() {
    2.72 +	rm -f "$1/usr/bin/perl"
    2.73 +}