wok view ruby/receipt @ rev 101
Renamed cdparanoia to cdparanoia-III
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jan 04 16:50:21 2008 +0100 (2008-01-04) |
parents | 99715173ee02 |
children | b61b574cf78e |
line source
1 # SliTaz package receipt.
3 PACKAGE="ruby"
4 VERSION="1.9.0-0"
5 CATEGORY="devel"
6 SHORT_DESC="Dynamic programming language focused on simplicity and productivity."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.ruby-lang.org/"
10 WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/1.9/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 ./configure --prefix=/usr --infodir=/usr/share/info \
17 --mandir=/usr/share/man $CONFIGURE_ARGS
18 make
19 make DESTDIR=$PWD/_pkg install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/lib
26 cp -a $_pkg/usr/lib/ruby $fs/usr/lib
27 cp -a $_pkg/usr/bin $fs/usr
29 # Remove devel files and strip bin/lib
30 rm $fs/usr/lib/ruby/1.9/i486-linux/*.h
31 strip --strip-unneeded $fs/usr/lib/ruby/1.9/i486-linux/*.so
32 strip --strip-unneeded $fs/usr/lib/ruby/1.9/i486-linux/*/*.so
33 strip -s $fs/usr/bin/ruby
34 }
36 # Remove old libs.
37 post_install()
38 {
39 local root
40 root=$1
41 rm -rf $root/usr/lib/ruby/1.8
42 }