wok-undigest diff perl/receipt @ rev 701
gtkhotkey: fix for glib.h
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 29 10:21:57 2012 +0200 (2012-05-29) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/perl/receipt Tue May 29 10:21:57 2012 +0200 1.3 @@ -0,0 +1,71 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="perl" 1.7 +VERSION="5.12.3" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Full Perl interpreter and modules." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.12 +DEPENDS="libdb gdbm zlib" 1.13 +BUILD_DEPENDS="db gdbm zlib" 1.14 +WEB_SITE="http://www.perl.org/" 1.15 +WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" 1.16 +PROVIDE="microperl" 1.17 + 1.18 +# Rules to compile & install the temporary toolchain. 1.19 +cook_tmp_toolchain() 1.20 +{ 1.21 + cd $src 1.22 + { sh Configure -des -Dprefix=/tools \ 1.23 + -Dstatic_ext='Data/Dumper Fcntl IO' && 1.24 + 1.25 + # Only few tools are needed in the tmp toolchain. 1.26 + make perl utilities ext/Errno/pm_to_blib 1.27 + } || return 1 1.28 + cp perl pod/pod2man /tools/bin 1.29 + mkdir -p /tools/lib/perl5/5.12.3 1.30 + cp -R lib/* /tools/lib/perl5/5.12.3 1.31 +} 1.32 + 1.33 + 1.34 +# Rules to configure and make the package. 1.35 +# 1.36 +compile_rules() 1.37 +{ 1.38 + cd $src 1.39 + yes '' | sh Configure -Dusethreads -Dprefix=/usr 1.40 + ./configure.gnu --prefix=/usr && 1.41 + make && 1.42 + make install 1.43 + 1.44 + # make microperl here 1.45 + # patch to fix compiling microperl 1.46 + patch -p0 -i $stuff/miniperlmain.patch 1.47 + # Install in /usr (default is /usr/local). 1.48 + sed -i s/'usr\/local'/'usr'/ uconfig.sh 1.49 + # Sed to search mods in /usr/lib/perl5. 1.50 + sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh 1.51 + # Optimisation. 1.52 + sed -i s/'unknown'/'$HOST_SYSTEM'/ uconfig.sh 1.53 + # Make it! 1.54 + make -f Makefile.micro regen_uconfig && 1.55 + make -f Makefile.micro && 1.56 + strip microperl 1.57 +} 1.58 + 1.59 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.60 +genpkg_rules() 1.61 +{ 1.62 + mkdir -p $fs/usr 1.63 + cp -a $_pkg/usr/bin $fs/usr 1.64 + cp -a $_pkg/usr/lib $fs/usr 1.65 +} 1.66 + 1.67 +# Pre install commands for Tazpkg. 1.68 +# Remove perl link to microperl if any. 1.69 +# 1.70 +pre_install() 1.71 +{ 1.72 + echo "Processing pre-install commands..." 1.73 + rm -f $1/usr/bin/perl 1.74 +}