aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYasuharu NAKANO2011-03-22 09:52:13 +0900
committerAdam Vandenberg2011-03-21 21:05:21 -0700
commitbb779ddc65eb9053385c17bbc7af822294142668 (patch)
tree2fa92c28bde71bba41171efc8b6025c83922c53c
parent3ba1edf2f525a1330374b16de672dc5989e0567d (diff)
downloadhomebrew-bb779ddc65eb9053385c17bbc7af822294142668.tar.bz2
groovyserv: fix for build errors
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/groovyserv.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/groovyserv.rb b/Library/Formula/groovyserv.rb
index 2c20cfd19..f862d3bb5 100644
--- a/Library/Formula/groovyserv.rb
+++ b/Library/Formula/groovyserv.rb
@@ -7,15 +7,22 @@ class Groovyserv < Formula
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
- prefix.install %w{LICENSE README}
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)