slitaz-forge annotate activeresource/receipt @ rev 27
add: customised ruby
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Mar 02 01:22:28 2011 +0100 (2011-03-02) |
parents | |
children |
rev | line source |
---|---|
erjo@18 | 1 # SliTaz package receipt. |
erjo@18 | 2 |
erjo@18 | 3 PACKAGE="activeresource" |
erjo@18 | 4 VERSION="2.3.5" |
erjo@18 | 5 CATEGORY="ddevelopment" |
erjo@18 | 6 SHORT_DESC="REST on Rails." |
erjo@18 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@18 | 8 DEPENDS="ruby activesupport" |
erjo@18 | 9 BUID_DEPENDS="rubygems" |
erjo@18 | 10 TARBALL="$PACKAGE-$VERSION.gem" |
erjo@18 | 11 WEB_SITE="http://rubygems.org/gems/activeresource" |
erjo@18 | 12 WGET_URL="http://rubygems.org/downloads/$TARBALL" |
erjo@18 | 13 |
erjo@18 | 14 # Rules to configure and make the package. |
erjo@18 | 15 compile_rules() |
erjo@18 | 16 { |
erjo@18 | 17 [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION |
erjo@18 | 18 cd $src |
erjo@18 | 19 |
erjo@18 | 20 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" |
erjo@18 | 21 gem install --no-rdoc --no-ri --ignore-dependencies \ |
erjo@18 | 22 --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL |
erjo@18 | 23 } |
erjo@18 | 24 |
erjo@18 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@18 | 26 genpkg_rules() |
erjo@18 | 27 { |
erjo@18 | 28 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" |
erjo@18 | 29 mkdir -p $fs/usr |
erjo@18 | 30 |
erjo@18 | 31 cp -a $_pkg/usr/lib $fs/usr |
erjo@18 | 32 } |