wok-stable view file-tail/receipt @ rev 10728

Fixed all sourced slitaz-dev-tools receipts. The way cook works is it keeps the .hg folder when downloading mecurial sources. By downloading the $VERSION.tar.bz2 and renaming it $SOURCE-$VERSION.tar.bz2 we don't keep the .hg folder in source tarball. Repos will be backup on source dvd anyway so this does save a little bit of space.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 28 21:18:14 2011 +0000 (2011-05-28)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="file-tail"
4 VERSION="1.0.5"
5 CATEGORY="development"
6 SHORT_DESC="Library to tail files in Ruby"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ruby spruz"
9 BUILD_DEPENDS="$DEPENDS ruby-dev"
10 TARBALL="$PACKAGE-$VERSION.gem"
11 WEB_SITE="http://rubygems.org/gems/file-tail"
12 WGET_URL="http://rubygems.org/downloads/$TARBALL"
13 COOK_OPT="!repack_src !unpack"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
19 gem install --ignore-dependencies -i "$DESTDIR/$_gemdir" $SOURCES_REPOSITORY/$TARBALL
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 cp -a $_pkg/usr $fs
26 }