wok-next annotate perl/receipt @ rev 7469

Fix removing pyconfig.h file from python-dev.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Dec 01 16:49:17 2010 +0000 (2010-12-01)
parents c161b9c835d2
children 49e1e0f01970
rev   line source
pankso@18 1 # SliTaz package receipt.
pankso@18 2
pankso@18 3 PACKAGE="perl"
slaxemulator@6585 4 VERSION="5.12.2"
pankso@204 5 CATEGORY="development"
pankso@18 6 SHORT_DESC="Full Perl interpreter and modules."
pankso@18 7 MAINTAINER="pankso@slitaz.org"
pankso@18 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@5005 9 DEPENDS="libdb gdbm"
pankso@18 10 WEB_SITE="http://www.perl.org/"
pankso@18 11 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
pascal@2332 12 PROVIDE="microperl"
pankso@18 13
pankso@18 14 # Rules to configure and make the package.
pankso@18 15 #
pankso@18 16 compile_rules()
pankso@18 17 {
pankso@18 18 cd $src
pascal@2332 19 ./configure.gnu --prefix=/usr &&
pascal@5778 20 make -j 4 &&
pankso@18 21 make DESTDIR=$PWD/_pkg install
slaxemulator@6585 22
slaxemulator@6585 23 # make microperl here
slaxemulator@6585 24 # patch to fix compiling microperl
slaxemulator@6585 25 patch -p0 -i ../stuff/miniperlmain.patch
slaxemulator@6585 26 # Install in /usr (default is /usr/local).
slaxemulator@6585 27 sed -i s/'usr\/local'/'usr'/ uconfig.sh
slaxemulator@6585 28 # Sed to search mods in /usr/lib/perl5.
slaxemulator@6585 29 sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh
slaxemulator@6585 30 # Optimisation.
slaxemulator@6585 31 sed -i s/'unknown'/'i486-pc-linux-gnu'/ uconfig.sh
slaxemulator@6585 32 # Make it!
slaxemulator@6585 33 make -f Makefile.micro regen_uconfig &&
slaxemulator@6585 34 make -f Makefile.micro &&
slaxemulator@6585 35 strip microperl
pankso@18 36 }
pankso@18 37
pankso@18 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 39 genpkg_rules()
pankso@18 40 {
pankso@18 41 mkdir -p $fs/usr
pankso@18 42 cp -a $_pkg/usr/bin $fs/usr
pankso@18 43 cp -a $_pkg/usr/lib $fs/usr
pankso@18 44 }
pankso@18 45
pankso@18 46 # Pre install commands for Tazpkg.
pankso@18 47 # Remove perl link to microperl if any.
pankso@18 48 #
pankso@18 49 pre_install()
pankso@18 50 {
pankso@18 51 echo "Processing pre-install commands..."
pankso@18 52 rm -f $1/usr/bin/perl
pankso@18 53 }