wok-current annotate perl/receipt @ rev 10059
xorg-libXmu: Add $CONFIGURE_ARGS.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri May 20 04:44:29 2011 +0000 (2011-05-20) |
parents | 32156be0a770 |
children | 3c2b3c79f2f3 |
rev | line source |
---|---|
pankso@18 | 1 # SliTaz package receipt. |
pankso@18 | 2 |
pankso@18 | 3 PACKAGE="perl" |
slaxemulator@8148 | 4 VERSION="5.12.3" |
pankso@204 | 5 CATEGORY="development" |
pankso@18 | 6 SHORT_DESC="Full Perl interpreter and modules." |
pankso@18 | 7 MAINTAINER="pankso@slitaz.org" |
slaxemulator@8148 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
gokhlayeh@8209 | 9 DEPENDS="libdb gdbm zlib" |
gokhlayeh@8209 | 10 BUILD_DEPENDS="db gdbm zlib" |
pankso@18 | 11 WEB_SITE="http://www.perl.org/" |
pankso@18 | 12 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" |
pascal@2332 | 13 PROVIDE="microperl" |
pankso@18 | 14 |
gokhlayeh@8209 | 15 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8209 | 16 cook_tmp_toolchain() |
gokhlayeh@8209 | 17 { |
gokhlayeh@8209 | 18 cd $src |
gokhlayeh@8209 | 19 { sh Configure -des -Dprefix=/tools \ |
gokhlayeh@8209 | 20 -Dstatic_ext='Data/Dumper Fcntl IO' && |
gokhlayeh@8209 | 21 |
gokhlayeh@8209 | 22 # Only few tools are needed in the tmp toolchain. |
gokhlayeh@8209 | 23 make perl utilities ext/Errno/pm_to_blib |
gokhlayeh@8209 | 24 } || return 1 |
gokhlayeh@8209 | 25 cp perl pod/pod2man /tools/bin |
gokhlayeh@8209 | 26 mkdir -p /tools/lib/perl5/5.12.3 |
gokhlayeh@8209 | 27 cp -R lib/* /tools/lib/perl5/5.12.3 |
gokhlayeh@8209 | 28 } |
gokhlayeh@8209 | 29 |
gokhlayeh@8209 | 30 |
pankso@18 | 31 # Rules to configure and make the package. |
pankso@18 | 32 # |
pankso@18 | 33 compile_rules() |
pankso@18 | 34 { |
pankso@18 | 35 cd $src |
pascal@2332 | 36 ./configure.gnu --prefix=/usr && |
gokhlayeh@8209 | 37 make && |
gokhlayeh@8209 | 38 make install |
slaxemulator@6585 | 39 |
slaxemulator@6585 | 40 # make microperl here |
slaxemulator@6585 | 41 # patch to fix compiling microperl |
slaxemulator@9700 | 42 patch -p0 -i $stuff/miniperlmain.patch |
slaxemulator@6585 | 43 # Install in /usr (default is /usr/local). |
slaxemulator@6585 | 44 sed -i s/'usr\/local'/'usr'/ uconfig.sh |
slaxemulator@6585 | 45 # Sed to search mods in /usr/lib/perl5. |
slaxemulator@6585 | 46 sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh |
slaxemulator@6585 | 47 # Optimisation. |
gokhlayeh@8209 | 48 sed -i s/'unknown'/'$BUILD_HOST'/ uconfig.sh |
slaxemulator@6585 | 49 # Make it! |
slaxemulator@6585 | 50 make -f Makefile.micro regen_uconfig && |
slaxemulator@6585 | 51 make -f Makefile.micro && |
slaxemulator@6585 | 52 strip microperl |
pankso@18 | 53 } |
pankso@18 | 54 |
pankso@18 | 55 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 56 genpkg_rules() |
pankso@18 | 57 { |
pankso@18 | 58 mkdir -p $fs/usr |
pankso@18 | 59 cp -a $_pkg/usr/bin $fs/usr |
pankso@18 | 60 cp -a $_pkg/usr/lib $fs/usr |
pankso@18 | 61 } |
pankso@18 | 62 |
pankso@18 | 63 # Pre install commands for Tazpkg. |
pankso@18 | 64 # Remove perl link to microperl if any. |
pankso@18 | 65 # |
pankso@18 | 66 pre_install() |
pankso@18 | 67 { |
pankso@18 | 68 echo "Processing pre-install commands..." |
pankso@18 | 69 rm -f $1/usr/bin/perl |
pankso@18 | 70 } |