aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-openid
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 09:55:13 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:18 +0000
commit79838fb11219f8c41556b4f207452a04f1a4ca41 (patch)
tree7f0e00e8fd9446d8f072c3bf2402cf9506c893a0 /main/ruby-openid
parent8175dc49ef03e90082d30b113c4459baa4123450 (diff)
downloadaports-79838fb11219f8c41556b4f207452a04f1a4ca41.tar.bz2
aports-79838fb11219f8c41556b4f207452a04f1a4ca41.tar.xz
main/ruby-openid: upgrade to 2.2.1
Diffstat (limited to 'main/ruby-openid')
-rw-r--r--main/ruby-openid/APKBUILD34
1 files changed, 19 insertions, 15 deletions
diff --git a/main/ruby-openid/APKBUILD b/main/ruby-openid/APKBUILD
index 4c1366b3fd..b6490b5201 100644
--- a/main/ruby-openid/APKBUILD
+++ b/main/ruby-openid/APKBUILD
@@ -1,32 +1,36 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer:
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ruby-openid
-_realname=openid
-pkgver=0.0.1
+_gemname=ruby-openid
+pkgver=2.2.1
pkgrel=0
pkgdesc="OpenID support for Ruby"
url="http://rubygems.org/gems/openid"
-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="dc283119b9ef63e780a5e515e031275d ruby-openid-2.2.1.gem"