wok-4.x annotate ruby/receipt @ rev 11561

Add picoblog form wok-undigest
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 25 15:19:17 2011 +0100 (2011-12-25)
parents a832b7c80ec2
children b7319995b37e
rev   line source
pankso@27 1 # SliTaz package receipt.
pankso@27 2
pankso@27 3 PACKAGE="ruby"
slaxemulator@8730 4 VERSION="1.9.2-p180"
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"
slaxemulator@6448 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@27 9 WEB_SITE="http://www.ruby-lang.org/"
pascal@5458 10 WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/${VERSION%.*}/$TARBALL"
pankso@9818 11 SUGGESTED="tk"
pankso@9818 12 TAGS="ruby language programming"
pankso@9818 13
gokhlayeh@9133 14 DEPENDS="libdb ncurses openssl readline zlib gdbm"
pankso@9821 15 BUILD_DEPENDS="coreutils-file-output-full zlib-dev tk-dev tcl-dev openssl-dev \
pankso@9893 16 db-dev readline-dev"
pankso@27 17
pankso@27 18 # Rules to configure and make the package.
pankso@27 19 compile_rules()
pankso@27 20 {
pankso@27 21 cd $src
pascal@8974 22 patch -Np1 < $stuff/openssl-1.0.patch
pankso@9818 23 ./configure --prefix=/usr --enable-shared &&
pascal@5781 24 make -j 4 &&
pankso@9818 25 make DESTDIR=$DESTDIR install
pankso@27 26 }
pankso@27 27
pankso@27 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@27 29 genpkg_rules()
pankso@27 30 {
pankso@27 31 mkdir -p $fs/usr/lib
pankso@27 32 cp -a $_pkg/usr/lib/ruby $fs/usr/lib
jozee@5558 33 cp -a $_pkg/usr/bin $fs/usr
rocky@7856 34 cp -a $_pkg/usr/lib/libruby.so* $fs/usr/lib
pankso@27 35 }