slitaz-forge annotate scn/receipts/activerecord/receipt @ rev 284
pkgs: huge code rewriting; tested on the SliTaz 4.0 but not on the real server; for more info see README
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Apr 16 11:34:57 2012 +0300 (2012-04-16) |
parents | |
children |
rev | line source |
---|---|
slaxemulator@28 | 1 # SliTaz package receipt. |
slaxemulator@28 | 2 |
slaxemulator@28 | 3 PACKAGE="activerecord" |
slaxemulator@28 | 4 VERSION="2.3.5" |
slaxemulator@28 | 5 CATEGORY="system-tools" |
slaxemulator@28 | 6 SHORT_DESC="Rich support for multibyte strings" |
slaxemulator@28 | 7 MAINTAINER="erjo@slitaz.org" |
slaxemulator@28 | 8 DEPENDS="ruby activesupport" |
slaxemulator@28 | 9 BUILD_DEPENDS="rubygems" |
slaxemulator@28 | 10 TARBALL="$PACKAGE-$VERSION.gem" |
slaxemulator@28 | 11 WEB_SITE="http://rubygems.org/gems/activesupport" |
slaxemulator@28 | 12 WGET_URL="http://rubygems.org/downloads/$TARBALL" |
slaxemulator@28 | 13 |
slaxemulator@28 | 14 # Rules to configure and make the package. |
slaxemulator@28 | 15 compile_rules() |
slaxemulator@28 | 16 { |
slaxemulator@28 | 17 [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION |
slaxemulator@28 | 18 cd $src |
slaxemulator@28 | 19 |
slaxemulator@28 | 20 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" |
slaxemulator@28 | 21 gem install --no-rdoc --no-ri --ignore-dependencies \ |
slaxemulator@28 | 22 --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@28 | 23 } |
slaxemulator@28 | 24 |
slaxemulator@28 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@28 | 26 genpkg_rules() |
slaxemulator@28 | 27 { |
slaxemulator@28 | 28 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" |
slaxemulator@28 | 29 mkdir -p $fs/usr |
slaxemulator@28 | 30 |
slaxemulator@28 | 31 cp -a $_pkg/usr/lib $fs/usr |
slaxemulator@28 | 32 } |