wok-next annotate perl/receipt @ rev 15345
xfprint: patch for cups 1.6
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 29 20:30:03 2013 +0000 (2013-09-29) |
parents | 6851dbe3b197 |
children | e5384ace4df2 |
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" |
pascal@14702 | 8 LICENSE="GPL" |
slaxemulator@8148 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
gokhlayeh@8209 | 10 DEPENDS="libdb gdbm zlib" |
pascal@15345 | 11 BUILD_DEPENDS="db gdbm zlib less" |
pankso@18 | 12 WEB_SITE="http://www.perl.org/" |
pankso@18 | 13 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" |
pascal@2332 | 14 PROVIDE="microperl" |
pankso@18 | 15 |
gokhlayeh@8209 | 16 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8209 | 17 cook_tmp_toolchain() |
gokhlayeh@8209 | 18 { |
gokhlayeh@8209 | 19 cd $src |
gokhlayeh@8209 | 20 { sh Configure -des -Dprefix=/tools \ |
pascal@15343 | 21 -Dusethreads \ |
gokhlayeh@8209 | 22 -Dstatic_ext='Data/Dumper Fcntl IO' && |
gokhlayeh@8209 | 23 |
gokhlayeh@8209 | 24 # Only few tools are needed in the tmp toolchain. |
gokhlayeh@8209 | 25 make perl utilities ext/Errno/pm_to_blib |
gokhlayeh@8209 | 26 } || return 1 |
gokhlayeh@8209 | 27 cp perl pod/pod2man /tools/bin |
gokhlayeh@8209 | 28 mkdir -p /tools/lib/perl5/5.12.3 |
gokhlayeh@8209 | 29 cp -R lib/* /tools/lib/perl5/5.12.3 |
gokhlayeh@8209 | 30 } |
gokhlayeh@8209 | 31 |
gokhlayeh@8209 | 32 |
pankso@18 | 33 # Rules to configure and make the package. |
pankso@18 | 34 # |
pankso@18 | 35 compile_rules() |
pankso@18 | 36 { |
pankso@18 | 37 cd $src |
pascal@2332 | 38 ./configure.gnu --prefix=/usr && |
gokhlayeh@8209 | 39 make && |
gokhlayeh@8209 | 40 make install |
slaxemulator@6585 | 41 |
slaxemulator@6585 | 42 # make microperl here |
slaxemulator@6585 | 43 # patch to fix compiling microperl |
slaxemulator@9700 | 44 patch -p0 -i $stuff/miniperlmain.patch |
slaxemulator@6585 | 45 # Install in /usr (default is /usr/local). |
slaxemulator@6585 | 46 sed -i s/'usr\/local'/'usr'/ uconfig.sh |
slaxemulator@6585 | 47 # Sed to search mods in /usr/lib/perl5. |
slaxemulator@6585 | 48 sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh |
slaxemulator@6585 | 49 # Optimisation. |
slaxemulator@10423 | 50 sed -i s/'unknown'/'$HOST_SYSTEM'/ uconfig.sh |
slaxemulator@6585 | 51 # Make it! |
slaxemulator@6585 | 52 make -f Makefile.micro regen_uconfig && |
slaxemulator@6585 | 53 make -f Makefile.micro && |
slaxemulator@6585 | 54 strip microperl |
pankso@18 | 55 } |
pankso@18 | 56 |
pankso@18 | 57 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 58 genpkg_rules() |
pankso@18 | 59 { |
pankso@18 | 60 mkdir -p $fs/usr |
pascal@14702 | 61 cp -a $install/usr/bin $fs/usr |
pascal@14702 | 62 cp -a $install/usr/lib $fs/usr |
pankso@18 | 63 } |
pankso@18 | 64 |
pankso@18 | 65 # Pre install commands for Tazpkg. |
pankso@18 | 66 # Remove perl link to microperl if any. |
pankso@18 | 67 # |
pankso@18 | 68 pre_install() |
pankso@18 | 69 { |
pankso@18 | 70 echo "Processing pre-install commands..." |
pankso@18 | 71 rm -f $1/usr/bin/perl |
pankso@18 | 72 } |