slitaz-forge view scn/receipts/activesupport/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="activesupport"
4 VERSION="2.3.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="Database tables mapping to Ruby classes"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ruby"
9 BUILD_DEPENDS="rubygems"
10 TARBALL="$PACKAGE-$VERSION.gem"
11 WEB_SITE="http://rubygems.org/gems/activerecord"
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 #mv -f *.gem $PACKAGE-$VERSION
19 cd $src
20 wget "http://rubygems.org/downloads/$TARBALL"
21 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
22 gem install --no-rdoc --no-ri --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $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 }