diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 11:42:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 14:22:18 +0000 |
commit | 9def62f20379d95329568c7c329050d37cdfa70a (patch) | |
tree | 75a1cf7ee1fd3d994c56888301558f3c1ce0d789 /main/ruby-activeresource/APKBUILD | |
parent | 6e61ba6042c9a483c6f27951756a8d42c1e6326c (diff) | |
download | aports-9def62f20379d95329568c7c329050d37cdfa70a.tar.bz2 aports-9def62f20379d95329568c7c329050d37cdfa70a.tar.xz |
main/ruby-activeresource: upgrade to 3.2.8
Diffstat (limited to 'main/ruby-activeresource/APKBUILD')
-rw-r--r-- | main/ruby-activeresource/APKBUILD | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/main/ruby-activeresource/APKBUILD b/main/ruby-activeresource/APKBUILD index ea766d6c0..05cff18ec 100644 --- a/main/ruby-activeresource/APKBUILD +++ b/main/ruby-activeresource/APKBUILD @@ -1,32 +1,36 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: -pkgname=ruby-activeresource -_realname=activeresource -pkgver=2.3.11 +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=activeresource +pkgname=ruby-$_gemname +pkgver=3.2.8 pkgrel=0 pkgdesc="REST on Rails" url="https://rubyforge.org/projects/activeresource/" -arch="all" +arch="noarch" license="GPL" -depends="ruby" +depends="ruby ruby-activemodel ruby-activesupport" 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="db3edcd4132d2de1921adfc45789a239 activeresource-3.2.8.gem" |