homebrew-core/Formula/groovyserv.rb
Yasuharu NAKANO a09058181f groovyserv 0.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-05 06:48:41 -07:00

31 lines
822 B
Ruby

require 'formula'
class Groovyserv < Formula
homepage 'http://kobo.github.com/groovyserv/'
url 'https://github.com/downloads/kobo/groovyserv/groovyserv-0.7-src.zip'
sha1 '2ed22bec9c18a60469119620933919c006d4d497'
head 'http://github.com/kobo/groovyserv.git', :using => :git
depends_on 'groovy'
depends_on 'maven'
def install
# Build
system 'mvn package -Dmaven.test.skip=true'
# Install executables in libexec to avoid conflicts
Dir::chdir Dir['target/groovyserv-*/groovyserv-*/'].first do
libexec.install %w{bin lib}
end
prefix.install %w{LICENSE.txt README.txt NOTICE.txt}
# Remove windows files
rm_f Dir["#{libexec}/bin/*.bat"]
# Symlink binaries
bin.mkpath
Dir["#{libexec}/bin/*"].each do |f|
ln_s f, bin + File.basename(f)
end
end
end