diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/groovyserv.rb | 9 |
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) |
