aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-abn
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-09-07 20:41:55 +0000
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2013-09-08 14:36:46 +0200
commit1e4fa5a1668eb8198db2f881ad1ebb20b900f07b (patch)
tree8e0be8aea94799bc60393bb65e74fae542243324 /testing/ruby-abn
parentc97cd3c314a1ec4f60b074e04584dee5695271f2 (diff)
downloadaports-1e4fa5a1668eb8198db2f881ad1ebb20b900f07b.tar.bz2
aports-1e4fa5a1668eb8198db2f881ad1ebb20b900f07b.tar.xz
testing/ruby-abn: new aport
A small library for working with Australian Business Numbers http://rubygems.org/gems/abn
Diffstat (limited to 'testing/ruby-abn')
-rw-r--r--testing/ruby-abn/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/ruby-abn/APKBUILD b/testing/ruby-abn/APKBUILD
new file mode 100644
index 0000000000..8e44988e48
--- /dev/null
+++ b/testing/ruby-abn/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+_gemname=abn
+pkgname=ruby-$_gemname
+pkgver=2.0.0
+pkgrel=0
+pkgdesc="A small library for working with Australian Business Numbers"
+url="http://rubygems.org/gems/abn"
+arch="noarch"
+license="MIT"
+depends="ruby"
+depends_dev="ruby-dev"
+makedepends="$depends_dev ruby-gems"
+install=""
+subpackages=""
+source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
+
+_builddir="$srcdir"/$_gemname-$pkgver
+build() {
+ mkdir -p "$_builddir" || return 1
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \
+ --ignore-dependencies \
+ --verbose \
+ --no-rdoc \
+ --no-ri \
+ || return 1
+ rm -rf "$pkgdir"/$_gemdir/cache \
+ "$pkgdir"/$_geminstdir/ext \
+ "$pkgdir"/$_geminstdir/.require_paths
+}
+
+package() {
+ mkdir -p "$pkgdir" || return 1
+ cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+}
+
+md5sums="028de258f4027e7f8af27010070390fe abn-2.0.0.gem"
+sha256sums="8938ec55432e74e6a19dab9cf18b81379f15f72b3c461a058a97053a92d4ec9a abn-2.0.0.gem"
+sha512sums="869a8ee9b73e587a6438014691ac112603c08aca26230b3e5912b8ab9e486c6087362f717aafe2715b29759c115ed164e4fcae3374bc420756c8a44e249e5094 abn-2.0.0.gem"