wok-6.x annotate ruby/receipt @ rev 554
Up: Xpad (2.14)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 12 21:39:03 2008 +0200 (2008-04-12) |
parents | c9488beff617 |
children | ac79d89fa812 |
rev | line source |
---|---|
pankso@27 | 1 # SliTaz package receipt. |
pankso@27 | 2 |
pankso@27 | 3 PACKAGE="ruby" |
pankso@78 | 4 VERSION="1.9.0-0" |
pankso@200 | 5 CATEGORY="development" |
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@78 | 10 WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/1.9/$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@78 | 30 rm $fs/usr/lib/ruby/1.9/i486-linux/*.h |
pankso@78 | 31 strip --strip-unneeded $fs/usr/lib/ruby/1.9/i486-linux/*.so |
pankso@78 | 32 strip --strip-unneeded $fs/usr/lib/ruby/1.9/i486-linux/*/*.so |
pankso@27 | 33 strip -s $fs/usr/bin/ruby |
pankso@27 | 34 } |
pankso@78 | 35 |
pankso@78 | 36 # Remove old libs. |
pankso@78 | 37 post_install() |
pankso@78 | 38 { |
pankso@78 | 39 local root |
pankso@78 | 40 root=$1 |
pankso@78 | 41 rm -rf $root/usr/lib/ruby/1.8 |
pankso@78 | 42 } |