Commit 9acdc65f authored by Matt Smith's avatar Matt Smith

testing/ruby-rack: new aport

Rack is a Ruby Webserver Interface
http://rack.rubyforge.org/
parent b671e914
# 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
}
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment