homebrew-core/Formula/nailgun.rb
2011-03-12 11:55:09 -08:00

21 lines
478 B
Ruby

require 'formula'
class Nailgun < Formula
url 'http://downloads.sourceforge.net/project/nailgun/nailgun/0.7.1/nailgun-src-0.7.1.zip'
homepage 'http://martiansoftware.com/nailgun/index.html'
md5 '79365e339275d774b7c5c8b17b7ece40'
def script
<<-EOS
#!/bin/bash
exec java -server -jar "#{prefix}/nailgun-0.7.1.jar"
EOS
end
def install
system "make"
(bin+'ng-server').write script
bin.install 'ng'
prefix.install 'nailgun-0.7.1.jar'
end
end