aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-06-14 11:02:37 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-06-14 11:02:37 +0000
commit4b1b8a7041e924e8d0332814b46226ff1a7c6f5a (patch)
tree392b64c65fe18e21eae290f5d2520b6df5a9d9fd /testing
parent79bd5acf0dee2124f41a7f7d7ba86a945860e040 (diff)
downloadaports-4b1b8a7041e924e8d0332814b46226ff1a7c6f5a.tar.bz2
aports-4b1b8a7041e924e8d0332814b46226ff1a7c6f5a.tar.xz
testing/ruby-openid: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/ruby-openid/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/ruby-openid/APKBUILD b/testing/ruby-openid/APKBUILD
new file mode 100644
index 0000000000..4c1366b3fd
--- /dev/null
+++ b/testing/ruby-openid/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=ruby-openid
+_realname=openid
+pkgver=0.0.1
+pkgrel=0
+pkgdesc="OpenID support for Ruby"
+url="http://rubygems.org/gems/openid"
+arch="all"
+license="GPL"
+depends="ruby"
+depends_dev=
+makedepends="$depends_dev rubygems"
+install=""
+subpackages=""
+source=""
+
+_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/
+}
+
+package() {
+ mkdir -p "$pkgdir" || return 1
+ cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+}