slitaz-forge annotate fastthread/receipt @ rev 21

add: fastthread
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Mar 02 01:20:32 2011 +0100 (2011-03-02)
parents
children
rev   line source
erjo@21 1 # SliTaz package receipt.
erjo@21 2
erjo@21 3 PACKAGE="fastthread"
erjo@21 4 VERSION="1.0.7"
erjo@21 5 CATEGORY="developement"
erjo@21 6 SHORT_DESC="Optimized replacement for thread.rb primitives"
erjo@21 7 MAINTAINER="erjo@slitaz.org"
erjo@21 8 DEPENDS="ruby"
erjo@21 9 BUILD_DEPENDS="rubygems"
erjo@21 10 TARBALL="$PACKAGE-$VERSION.gem"
erjo@21 11 WEB_SITE="http://rubygems.org/gems/fastthread"
erjo@21 12 WGET_URL="http://rubygems.org/downloads/$TARBALL"
erjo@21 13
erjo@21 14 # Rules to configure and make the package.
erjo@21 15 compile_rules()
erjo@21 16 {
erjo@21 17 [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION
erjo@21 18 cd $src
erjo@21 19
erjo@21 20 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
erjo@21 21 gem install --no-rdoc --no-ri --ignore-dependencies \
erjo@21 22 --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL
erjo@21 23 }
erjo@21 24
erjo@21 25 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@21 26 genpkg_rules()
erjo@21 27 {
erjo@21 28 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
erjo@21 29 mkdir -p $fs/usr
erjo@21 30
erjo@21 31 cp -a $_pkg/usr/lib $fs/usr
erjo@21 32 }
erjo@21 33
erjo@21 34