wok-next diff 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 |
line diff
1.1 --- a/perl/receipt Fri Dec 25 15:23:46 2015 +0200 1.2 +++ b/perl/receipt Thu May 11 02:23:02 2017 +0300 1.3 @@ -1,17 +1,20 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="perl" 1.7 -VERSION="5.12.3" 1.8 +VERSION="5.24.0" 1.9 CATEGORY="development" 1.10 SHORT_DESC="Full Perl interpreter and modules." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 LICENSE="GPL" 1.13 +WEB_SITE="https://www.perl.org/" 1.14 + 1.15 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.16 -DEPENDS="libdb gdbm zlib" 1.17 -BUILD_DEPENDS="db gdbm zlib less" 1.18 -WEB_SITE="http://www.perl.org/" 1.19 -WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" 1.20 +WGET_URL="http://www.cpan.org/src/5.0/$TARBALL" 1.21 + 1.22 +DEPENDS="zlib bzlib gdbm" 1.23 +BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev" 1.24 PROVIDE="microperl" 1.25 +SIBLINGS="microperl" 1.26 1.27 # Rules to compile & install the temporary toolchain. 1.28 cook_tmp_toolchain() 1.29 @@ -24,41 +27,33 @@ 1.30 make perl utilities ext/Errno/pm_to_blib 1.31 } || return 1 1.32 cp perl pod/pod2man /tools/bin 1.33 - mkdir -p /tools/lib/perl5/5.12.3 1.34 - cp -R lib/* /tools/lib/perl5/5.12.3 1.35 + mkdir -p /tools/lib/perl5/$VERSION 1.36 + cp -R lib/* /tools/lib/perl5/$VERSION 1.37 } 1.38 1.39 - 1.40 # Rules to configure and make the package. 1.41 -# 1.42 compile_rules() 1.43 { 1.44 - cd $src 1.45 - ./configure.gnu --prefix=/usr && 1.46 - make && 1.47 - make install 1.48 - 1.49 - # make microperl here 1.50 - # patch to fix compiling microperl 1.51 - patch -p0 -i $stuff/miniperlmain.patch 1.52 - # Install in /usr (default is /usr/local). 1.53 - sed -i s/'usr\/local'/'usr'/ uconfig.sh 1.54 - # Sed to search mods in /usr/lib/perl5. 1.55 - sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh 1.56 - # Optimisation. 1.57 - sed -i s/'unknown'/'$HOST_SYSTEM'/ uconfig.sh 1.58 - # Make it! 1.59 - make -f Makefile.micro regen_uconfig && 1.60 - make -f Makefile.micro && 1.61 - strip microperl 1.62 + export BUILD_ZLIB=False 1.63 + export BUILD_BZIP2=0 1.64 + sh Configure -des \ 1.65 + -Dprefix=/usr \ 1.66 + -Dvendorprefix=/usr \ 1.67 + -Dman1dir=/usr/share/man/man1 \ 1.68 + -Dman3dir=/usr/share/man/man3 \ 1.69 + -Dpager="/usr/bin/less -isR" \ 1.70 + -Duseshrplib && 1.71 + make && make install 1.72 } 1.73 1.74 # Rules to gen a SliTaz package suitable for Tazpkg. 1.75 genpkg_rules() 1.76 { 1.77 - mkdir -p $fs/usr 1.78 - cp -a $install/usr/bin $fs/usr 1.79 - cp -a $install/usr/lib $fs/usr 1.80 + cook_copy_folders bin lib 1.81 + 1.82 + # Save space for duplicates 1.83 + rm $fs/usr/bin/perl 1.84 + ln -s perl$VERSION $fs/usr/bin/perl 1.85 } 1.86 1.87 # Pre install commands for Tazpkg.