slitaz-forge view daemon_controller/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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="daemon_controller"
4 VERSION="0.2.6"
5 CATEGORY="development"
6 SHORT_DESC="Daemon management for Ruby"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ruby"
9 BUILD_DEPENDS="rubygems"
10 TARBALL="$PACKAGE-$VERSION.gem"
11 WEB_SITE="http://rubygems.org/gems/fastthread"
12 WGET_URL="http://rubygems.org/downloads/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION
18 cd $src
20 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
21 gem install --no-rdoc --no-ri --ignore-dependencies \
22 --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
29 mkdir -p $fs/usr
31 cp -a $_pkg/usr/lib $fs/usr
32 }