1 # Contributor: gem2arch 0.1
6 pkgdesc="A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps."
8 url="http://gemcutter.org/gems/mongrel"
10 depends=('ruby' 'ruby-daemons' 'ruby-cgi_multipart_eof_fix' 'ruby-echoe' 'ruby-gemcutter' 'ruby-json_pure' 'ruby-gem_plugin' 'ruby-fastthread')
13 _gitroot="http://github.com/taf2/mongrel.git"
16 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
19 msg "Connecting to GIT server...."
21 if [ -d $_realname ] ; then
22 cd $_realname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_realname
29 msg "GIT checkout done or server timeout"
34 gem install --ignore-dependencies "${_realname}" -l -i "$pkgdir$_gemdir"