aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-tins
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-03-04 14:37:55 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2013-03-11 14:07:23 +0000
commitbf96e8cf018ef9a56652f2412b14263f70fae992 (patch)
tree0a4986cd7e1eea3e60e812f002c56e98dc8e0571 /testing/ruby-tins
parent4d37c36bb8dc7080d1b5ae597e28430ac98f1fde (diff)
downloadaports-bf96e8cf018ef9a56652f2412b14263f70fae992.tar.bz2
aports-bf96e8cf018ef9a56652f2412b14263f70fae992.tar.xz
testing/ruby-tins: new aport
Useful ruby library for tools Website: https://github.com/flori/tins
Diffstat (limited to 'testing/ruby-tins')
-rw-r--r--testing/ruby-tins/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/ruby-tins/APKBUILD b/testing/ruby-tins/APKBUILD
new file mode 100644
index 0000000000..ad8679bb46
--- /dev/null
+++ b/testing/ruby-tins/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+_gemname=tins
+pkgname=ruby-$_gemname
+pkgver=0.7.1
+pkgrel=0
+pkgdesc="Useful ruby library for tools"
+url="https://github.com/flori/tins"
+arch="noarch"
+license="MIT"
+depends="ruby"
+depends_dev=""
+makedepends="ruby-dev ruby-gems"
+install=""
+subpackages=""
+source="http://rubygems.org/downloads/$_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="35df5408c410bee569202df12f9c48ee tins-0.7.1.gem"
+sha256sums="71aeb5a2b997bda106a10d783fbebb5c43fc405b23eda7ef2db5d65be721c2c2 tins-0.7.1.gem"
+sha512sums="8f58264b2401bea3e218b03fe7df77968f0999941cce1bfeda451e34d42f376ed855a694938684f9c187ad6744b045c1609dd72b544b6bea041080b3af42b74a tins-0.7.1.gem"