slitaz-forge view scn/receipts/rb-i18n/receipt @ rev 28

Moved all receipts for scn/receipts folder. This is to keep thing neat in this repo.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Mar 02 13:26:27 2011 +0000 (2011-03-02)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="rb-i18n"
4 VERSION="0.5.0"
5 CATEGORY="development"
6 SHORT_DESC="Internationalization support for Ruby."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ruby activesupport"
9 BUID_DEPENDS="rubygems"
10 SOURCE="i18n"
11 TARBALL="$SOURCE-$VERSION.gem"
12 WEB_SITE="http://rubygems.org/gems/activeresource"
13 WGET_URL="http://rubygems.org/downloads/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 [ -d $SOURCE-$VERSION ] || mkdir $SOURCE-$VERSION
19 cd $src
21 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
22 gem install --no-rdoc --no-ri --ignore-dependencies \
23 --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
30 mkdir -p $fs/usr
32 cp -a $_pkg/usr/lib $fs/usr
33 }