aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-rack-test
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 12:08:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:19 +0000
commit7a118ca07871cb8d5dae83bd1c5c12ddc54211c6 (patch)
treedcd323ad87e24aaad4183db61bd84407d0ba4a11 /main/ruby-rack-test
parent9e62cf06665a3235ffd022faa3b8279fa6041c73 (diff)
downloadaports-7a118ca07871cb8d5dae83bd1c5c12ddc54211c6.tar.bz2
aports-7a118ca07871cb8d5dae83bd1c5c12ddc54211c6.tar.xz
main/ruby-rack-test: new aport
A small, simple testing API for Rack apps http://rubygems.org/gems/rack-test
Diffstat (limited to 'main/ruby-rack-test')
-rw-r--r--main/ruby-rack-test/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/ruby-rack-test/APKBUILD b/main/ruby-rack-test/APKBUILD
new file mode 100644
index 0000000000..074c440048
--- /dev/null
+++ b/main/ruby-rack-test/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=rack-test
+pkgname=ruby-$_gemname
+pkgver=0.6.2
+pkgrel=0
+pkgdesc="A small, simple testing API for Rack apps"
+url="http://rubygems.org/gems/rack-test"
+arch="noarch"
+license="MIT"
+depends="ruby ruby-rack"
+depends_dev=
+makedepends="$depends_dev ruby-gems"
+install=""
+subpackages=""
+source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
+
+_builddir="$srcdir"/$_realname-$pkgver
+build() {
+ return 0
+}
+
+package() {
+ 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="cfb89a03ea96b80d2c82ce88168a6ae3 rack-test-0.6.2.gem"