slitaz-forge annotate 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
rev   line source
erjo@27 1 # SliTaz package receipt.
erjo@27 2
erjo@27 3 PACKAGE="ruby"
erjo@27 4 VERSION="1.8.7-p72"
erjo@27 5 CATEGORY="development"
erjo@27 6 SHORT_DESC="Dynamic programming language focused on simplicity and productivity."
erjo@27 7 MAINTAINER="pankso@slitaz.org"
erjo@27 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@27 9 WEB_SITE="http://www.ruby-lang.org/"
erjo@27 10 WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/1.8/$TARBALL"
erjo@27 11 DEPENDS="libdb ncurses libssl readline zlib gdbm"
erjo@27 12 SUGGESTED="tk xorg-libXss"
erjo@27 13 TAGS="ruby language programming"
erjo@27 14
erjo@27 15 # Rules to configure and make the package.
erjo@27 16 compile_rules()
erjo@27 17 {
erjo@27 18 cd $src
erjo@27 19 ./configure \
erjo@27 20 --prefix=/usr \
erjo@27 21 --infodir=/usr/share/info \
erjo@27 22 --mandir=/usr/share/man \
erjo@27 23 $CONFIGURE_ARGS &&
erjo@27 24 make &&
erjo@27 25 make DESTDIR=$PWD/_pkg install
erjo@27 26 }
erjo@27 27
erjo@27 28 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@27 29 genpkg_rules()
erjo@27 30 {
erjo@27 31 mkdir -p $fs/usr/lib
erjo@27 32 cp -a $_pkg/usr/lib/ruby $fs/usr/lib
erjo@27 33 cp -a $_pkg/usr/bin $fs/usr
erjo@27 34
erjo@27 35 # Remove devel files --> ruby-dev
erjo@27 36 rm $fs/usr/lib/ruby/1.8/i486-linux/*.h
erjo@27 37 }