diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 09:58:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 14:22:18 +0000 |
commit | ae834bdd953bfe659ac744fe85d1b28c3bf2d8cc (patch) | |
tree | d5ae38ff7ad60ad4ddf4c3c5bc5baf05bd9479d8 /main/ruby-i18n | |
parent | 79838fb11219f8c41556b4f207452a04f1a4ca41 (diff) | |
download | aports-ae834bdd953bfe659ac744fe85d1b28c3bf2d8cc.tar.bz2 aports-ae834bdd953bfe659ac744fe85d1b28c3bf2d8cc.tar.xz |
main/ruby-i18n: upgrade to 0.6.1
Diffstat (limited to 'main/ruby-i18n')
-rw-r--r-- | main/ruby-i18n/APKBUILD | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/main/ruby-i18n/APKBUILD b/main/ruby-i18n/APKBUILD index a13e453a97..7f610c99fc 100644 --- a/main/ruby-i18n/APKBUILD +++ b/main/ruby-i18n/APKBUILD @@ -1,32 +1,36 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=ruby-i18n -_realname=i18n -pkgver=0.4.2 +_gemname=i18n +pkgver=0.6.1 pkgrel=0 pkgdesc="Internationalization support for Ruby" url="http://rubygems.org/gems/i18n" -arch="all" +arch="noarch" license="GPL" depends="ruby" depends_dev= -makedepends="$depends_dev rubygems" +makedepends="$depends_dev ruby-gems" install="" subpackages="" -source="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" _builddir="$srcdir"/$_realname-$pkgver - build() { - mkdir -p "$_builddir" || return 1 - local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" - gem install $_realname -v $pkgver -i "$_builddir"$_gemdir \ - --ignore-dependencies --verbose \ - --no-rdoc --no-ri || return 1 - rm -rf "$_builddir"$_gemdir/cache/ + return 0 } package() { - mkdir -p "$pkgdir" || return 1 - cp -ra "$_builddir"/* "$pkgdir"/ || return 1 + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + local _geminstdir=$_gemdir/gems/$_gemname-$pkgver + mkdir -p "$pkgdir" || return 1 + + gem install --local --install-dir "$pkgdir"/$_gemdir \ + --ignore-dependencies --verbose --no-rdoc --no-ri \ + "$srcdir"/$_gemname-$pkgver.gem || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths } + +md5sums="65d1e00b3fea80b4062952a0553372e5 i18n-0.6.1.gem" |