2010-06-16 01:38:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Nailgun < Formula
|
2010-06-16 01:38:18 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/nailgun/nailgun/0.7.1/nailgun-src-0.7.1.zip'
|
|
|
|
homepage 'http://martiansoftware.com/nailgun/index.html'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '70f2ae1faafe9cf060f2a44968960703475705e4'
|
2010-06-16 01:38:18 +00:00
|
|
|
|
2010-07-08 14:59:12 +00:00
|
|
|
def script
|
|
|
|
<<-EOS
|
|
|
|
#!/bin/bash
|
|
|
|
exec java -server -jar "#{prefix}/nailgun-0.7.1.jar"
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2010-06-16 01:38:18 +00:00
|
|
|
def install
|
|
|
|
system "make"
|
2010-07-08 14:59:12 +00:00
|
|
|
(bin+'ng-server').write script
|
2010-06-16 01:38:18 +00:00
|
|
|
bin.install 'ng'
|
|
|
|
prefix.install 'nailgun-0.7.1.jar'
|
|
|
|
end
|
|
|
|
end
|