slitaz-forge view ruby/receipt @ rev 27

add: customised ruby
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Mar 02 01:22:28 2011 +0100 (2011-03-02)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ruby"
4 VERSION="1.8.7-p72"
5 CATEGORY="development"
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.8/$TARBALL"
11 DEPENDS="libdb ncurses libssl readline zlib gdbm"
12 SUGGESTED="tk xorg-libXss"
13 TAGS="ruby language programming"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --infodir=/usr/share/info \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib
32 cp -a $_pkg/usr/lib/ruby $fs/usr/lib
33 cp -a $_pkg/usr/bin $fs/usr
35 # Remove devel files --> ruby-dev
36 rm $fs/usr/lib/ruby/1.8/i486-linux/*.h
37 }