0188c4e53d
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
24 lines
664 B
Ruby
24 lines
664 B
Ruby
require 'formula'
|
|
|
|
class Groovyserv < Formula
|
|
homepage 'http://kobo.github.com/groovyserv/'
|
|
url 'https://github.com/downloads/kobo/groovyserv/groovyserv-0.6-src.zip'
|
|
sha1 '5a812e9dfaa1aa0d6a769bd5c6ccbcefb970f135'
|
|
head 'http://github.com/kobo/groovyserv.git', :using => :git
|
|
|
|
depends_on 'groovy'
|
|
|
|
def install
|
|
system 'mvn package -Dmaven.test.skip=true'
|
|
Dir::chdir Dir['target/groovyserv-*/groovyserv-*/'].first do
|
|
prefix.install %w{LICENSE README}
|
|
libexec.install %w{bin lib}
|
|
end
|
|
|
|
rm_f Dir["#{libexec}/bin/*.bat"]
|
|
bin.mkpath
|
|
Dir["#{libexec}/bin/*"].each do |f|
|
|
ln_s f, bin + File.basename(f)
|
|
end
|
|
end
|
|
end
|