wok-6.x annotate microperl/receipt @ rev 1336

Add lxml
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 31 12:11:28 2008 +0000 (2008-08-31)
parents 972322439d00
children 169d84064c65
rev   line source
pankso@31 1 # SliTaz package receipt.
pankso@31 2
pankso@31 3 PACKAGE="microperl"
pankso@31 4 VERSION="5.8.8"
pankso@204 5 CATEGORY="development"
pankso@31 6 SHORT_DESC="A micro version of Perl."
pankso@31 7 MAINTAINER="pankso@slitaz.org"
pankso@31 8 WANTED="perl"
pankso@31 9 WEB_SITE="http://www.perl.org/"
pankso@31 10
pankso@31 11 # Rules to configure and make the package.
pankso@31 12 #
pankso@31 13 # Microperl is a special package. We need to sed uconfig.sh and
pankso@31 14 # regenerate the Makefile.micro to modify the configuration.
pankso@31 15 #
pankso@31 16 compile_rules()
pankso@31 17 {
pankso@31 18 cd $src
pankso@31 19 # Install in /usr (default is /usr/local).
pankso@31 20 sed -i s/'usr\/local'/'usr'/ uconfig.sh
pankso@31 21 # Sed to search mods in /usr/lib/perl5.
pankso@31 22 sed -i s/'perl5\/5.9'/'perl5'/ uconfig.sh
pankso@31 23 # Optimisation.
pankso@31 24 sed -i s/'unknown'/'i486-pc-linux-gnu'/ uconfig.sh
pankso@31 25 # Make it!
pankso@31 26 make -f Makefile.micro regen_uconfig
pankso@31 27 make -f Makefile.micro
pankso@31 28 strip microperl
pankso@31 29 }
pankso@31 30
pankso@31 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@31 32 genpkg_rules()
pankso@31 33 {
pankso@31 34 mkdir -p $fs/usr/bin
pankso@31 35 cp -a $src/microperl $fs/usr/bin
pankso@31 36 }