slitaz-forge annotate file-tail/receipt @ rev 22

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