wok-6.x annotate ruby/receipt @ rev 52
Modified slitaz-base-files + slitaz-boot-scripts to avoid errosr msg
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Dec 20 22:17:41 2007 +0100 (2007-12-20) |
parents | |
children | c9488beff617 |
rev | line source |
---|---|
pankso@27 | 1 # SliTaz package receipt. |
pankso@27 | 2 |
pankso@27 | 3 PACKAGE="ruby" |
pankso@27 | 4 VERSION="1.8.6-p110" |
pankso@27 | 5 CATEGORY="devel" |
pankso@27 | 6 SHORT_DESC="Dynamic programming language focused on simplicity and productivity." |
pankso@27 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@27 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@27 | 9 WEB_SITE="http://www.ruby-lang.org/" |
pankso@27 | 10 WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/1.8/$TARBALL" |
pankso@27 | 11 |
pankso@27 | 12 # Rules to configure and make the package. |
pankso@27 | 13 compile_rules() |
pankso@27 | 14 { |
pankso@27 | 15 cd $src |
pankso@27 | 16 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pankso@27 | 17 --mandir=/usr/share/man $CONFIGURE_ARGS |
pankso@27 | 18 make |
pankso@27 | 19 make DESTDIR=$PWD/_pkg install |
pankso@27 | 20 } |
pankso@27 | 21 |
pankso@27 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@27 | 23 genpkg_rules() |
pankso@27 | 24 { |
pankso@27 | 25 mkdir -p $fs/usr/lib |
pankso@27 | 26 cp -a $_pkg/usr/lib/ruby $fs/usr/lib |
pankso@27 | 27 cp -a $_pkg/usr/bin $fs/usr |
pankso@27 | 28 |
pankso@27 | 29 # Remove devel files and strip bin/lib |
pankso@27 | 30 rm $fs/usr/lib/ruby/1.8/i486-linux/*.h |
pankso@27 | 31 strip --strip-unneeded $fs/usr/lib/ruby/1.8/i486-linux/*.so |
pankso@27 | 32 strip --strip-unneeded $fs/usr/lib/ruby/1.8/i486-linux/*/*.so |
pankso@27 | 33 strip -s $fs/usr/bin/ruby |
pankso@27 | 34 } |