slitaz-forge annotate rb-i18n/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@26 | 1 # SliTaz package receipt. |
erjo@26 | 2 |
erjo@26 | 3 PACKAGE="rb-i18n" |
erjo@26 | 4 VERSION="0.5.0" |
erjo@26 | 5 CATEGORY="development" |
erjo@26 | 6 SHORT_DESC="Internationalization support for Ruby." |
erjo@26 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@26 | 8 DEPENDS="ruby activesupport" |
erjo@26 | 9 BUID_DEPENDS="rubygems" |
erjo@26 | 10 SOURCE="i18n" |
erjo@26 | 11 TARBALL="$SOURCE-$VERSION.gem" |
erjo@26 | 12 WEB_SITE="http://rubygems.org/gems/activeresource" |
erjo@26 | 13 WGET_URL="http://rubygems.org/downloads/$TARBALL" |
erjo@26 | 14 |
erjo@26 | 15 # Rules to configure and make the package. |
erjo@26 | 16 compile_rules() |
erjo@26 | 17 { |
erjo@26 | 18 [ -d $SOURCE-$VERSION ] || mkdir $SOURCE-$VERSION |
erjo@26 | 19 cd $src |
erjo@26 | 20 |
erjo@26 | 21 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" |
erjo@26 | 22 gem install --no-rdoc --no-ri --ignore-dependencies \ |
erjo@26 | 23 --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL |
erjo@26 | 24 } |
erjo@26 | 25 |
erjo@26 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@26 | 27 genpkg_rules() |
erjo@26 | 28 { |
erjo@26 | 29 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" |
erjo@26 | 30 mkdir -p $fs/usr |
erjo@26 | 31 |
erjo@26 | 32 cp -a $_pkg/usr/lib $fs/usr |
erjo@26 | 33 } |
erjo@26 | 34 |