wok-current diff perl/receipt @ rev 8726
Fixed slitaz-base-files. We use full path in now.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Feb 18 22:24:19 2011 +0000 (2011-02-18) |
parents | 49e1e0f01970 |
children | d1768332cee0 |
line diff
1.1 --- a/perl/receipt Tue Jan 25 13:12:24 2011 +0000 1.2 +++ b/perl/receipt Fri Feb 18 22:24:19 2011 +0000 1.3 @@ -6,19 +6,36 @@ 1.4 SHORT_DESC="Full Perl interpreter and modules." 1.5 MAINTAINER="pankso@slitaz.org" 1.6 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.7 -DEPENDS="libdb gdbm" 1.8 +DEPENDS="libdb gdbm zlib" 1.9 +BUILD_DEPENDS="db gdbm zlib" 1.10 WEB_SITE="http://www.perl.org/" 1.11 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" 1.12 PROVIDE="microperl" 1.13 1.14 +# Rules to compile & install the temporary toolchain. 1.15 +cook_tmp_toolchain() 1.16 +{ 1.17 + cd $src 1.18 + { sh Configure -des -Dprefix=/tools \ 1.19 + -Dstatic_ext='Data/Dumper Fcntl IO' && 1.20 + 1.21 + # Only few tools are needed in the tmp toolchain. 1.22 + make perl utilities ext/Errno/pm_to_blib 1.23 + } || return 1 1.24 + cp perl pod/pod2man /tools/bin 1.25 + mkdir -p /tools/lib/perl5/5.12.3 1.26 + cp -R lib/* /tools/lib/perl5/5.12.3 1.27 +} 1.28 + 1.29 + 1.30 # Rules to configure and make the package. 1.31 # 1.32 compile_rules() 1.33 { 1.34 cd $src 1.35 ./configure.gnu --prefix=/usr && 1.36 - make -j 4 && 1.37 - make DESTDIR=$PWD/_pkg install 1.38 + make && 1.39 + make install 1.40 1.41 # make microperl here 1.42 # patch to fix compiling microperl 1.43 @@ -28,7 +45,7 @@ 1.44 # Sed to search mods in /usr/lib/perl5. 1.45 sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh 1.46 # Optimisation. 1.47 - sed -i s/'unknown'/'i486-pc-linux-gnu'/ uconfig.sh 1.48 + sed -i s/'unknown'/'$BUILD_HOST'/ uconfig.sh 1.49 # Make it! 1.50 make -f Makefile.micro regen_uconfig && 1.51 make -f Makefile.micro &&