wok-current diff microperl/receipt @ rev 25724
Up audacity to 3.0.2, fix openssh/wxWidgets build
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Jun 25 14:51:14 2024 +0000 (5 days ago) |
parents | a23978bfa665 |
children |
line diff
1.1 --- a/microperl/receipt Wed Oct 11 18:45:46 2023 +0000 1.2 +++ b/microperl/receipt Tue Jun 25 14:51:14 2024 +0000 1.3 @@ -1,13 +1,44 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="microperl" 1.7 +SOURCE="perl" 1.8 VERSION="5.24.4" 1.9 CATEGORY="development" 1.10 SHORT_DESC="A micro version of Perl." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 LICENSE="GPL" 1.13 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.14 +DEPENDS="libdb gdbm zlib" 1.15 +BUILD_DEPENDS="db gdbm zlib less" 1.16 WEB_SITE="https://www.perl.org/" 1.17 -WANTED="perl" 1.18 +WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" 1.19 + 1.20 +current_version() 1.21 +{ 1.22 + wget -O - $WEB_SITE 2>/dev/null | \ 1.23 + sed '/version-highlight/!d;s|.*">||;s|<.*||;q' 1.24 +} 1.25 + 1.26 +# Rules to configure and make the package. 1.27 +compile_rules() 1.28 +{ 1.29 + # patch to fix issue Perl_fp_class_denorm(). test 1.30 + # see https://github.com/Perl/perl5/commit/488307f 1.31 + patch -p1 -i $stuff/perl-5.24.4-math-fix.patch 1.32 + 1.33 + # patch to fix compiling microperl 1.34 + patch -p1 -i $stuff/perl-5.24.1-microperl-fix.patch 1.35 + # Install in /usr (default is /usr/local). 1.36 + sed -i s/'usr\/local'/'usr'/ uconfig.sh 1.37 + # Sed to search mods in /usr/lib/perl5. 1.38 + sed -i s/'perl5\/'${VERSION%.*}/'perl5'/ uconfig.sh 1.39 + # Optimisation. 1.40 + sed -i s/'unknown'/$ARCH-linux/ uconfig.sh 1.41 + # Make it! 1.42 + make -f Makefile.micro regen_uconfig && 1.43 + make -f Makefile.micro && 1.44 + strip microperl 1.45 +} 1.46 1.47 # Rules to gen a SliTaz package suitable for Tazpkg. 1.48 genpkg_rules()