diff options
author | Matt Smith <mcs@darkregion.net> | 2011-04-14 01:39:07 -0500 |
---|---|---|
committer | Matt Smith <mcs@darkregion.net> | 2011-04-14 01:43:21 -0500 |
commit | 9acdc65f3ef5f41247d62b00e743f51457df8c01 (patch) | |
tree | 43c2000526cd0a6631c898b7091f1ca70572b515 /testing/ruby-rack | |
parent | b671e914dd34c2deb5ef72571b937a549c91b256 (diff) | |
download | aports-9acdc65f3ef5f41247d62b00e743f51457df8c01.tar.bz2 aports-9acdc65f3ef5f41247d62b00e743f51457df8c01.tar.xz |
testing/ruby-rack: new aport
Rack is a Ruby Webserver Interface
http://rack.rubyforge.org/
Diffstat (limited to 'testing/ruby-rack')
-rw-r--r-- | testing/ruby-rack/APKBUILD | 30 | ||||
-rw-r--r-- | testing/ruby-rack/ruby-rack.post-install | 10 |
2 files changed, 40 insertions, 0 deletions
diff --git a/testing/ruby-rack/APKBUILD b/testing/ruby-rack/APKBUILD new file mode 100644 index 000000000..f7c00050e --- /dev/null +++ b/testing/ruby-rack/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Matt Smith <mcs@darkregion.net> +# Maintainer: Matt Smith <mcs@darkregion.net> +pkgname=ruby-rack +_realname=rack +pkgver=1.2.2 +pkgrel=0 +pkgdesc="Rack is a Ruby Webserver Interface" +url="http://rack.rubyforge.org/" +arch="noarch" +license="MIT" +depends="ruby" +depends_dev= +makedepends="$depends_dev ruby rubygems ruby-dev" +install="$pkgname.post-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 || return 1 + rm -rf "$_builddir"$_gemdir/cache/ +} + +package() { + mkdir -p "$pkgdir" || return 1 + cp -ra "$_builddir"/* "$pkgdir"/ || return 1 +} diff --git a/testing/ruby-rack/ruby-rack.post-install b/testing/ruby-rack/ruby-rack.post-install new file mode 100644 index 000000000..ef4305d56 --- /dev/null +++ b/testing/ruby-rack/ruby-rack.post-install @@ -0,0 +1,10 @@ +#!/bin/sh + +_gembindir="$(ruby -rubygems -e'puts Gem.default_dir')/bin" + +echo "*" >&2 +echo "* If necessary, don't forget to add the Ruby Gems bin directory to PATH:" >&2 +echo "* $_gembindir" >&2 +echo "*" >&2 + +exit 0 |