homebrew-core/Formula/groovyserv.rb

28 lines
694 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Groovyserv < Formula
homepage 'http://kobo.github.com/groovyserv/'
url 'https://github.com/downloads/kobo/groovyserv/groovyserv-0.9-src.zip'
sha1 '54464608f90a381b44cf7959136e1b1f31a3919c'
2012-04-19 02:37:43 +00:00
head 'https://github.com/kobo/groovyserv.git'
depends_on 'gradle' => :build
depends_on 'groovy'
def install
system 'gradle clean executables'
prefix.install %w{LICENSE.txt README.txt NOTICE.txt}
2012-02-12 22:12:27 +00:00
# Install executables in libexec to avoid conflicts
libexec.install Dir["build/executables/{bin,lib}"]
# Remove windows files
rm_f Dir["#{libexec}/bin/*.bat"]
# Symlink binaries
2012-02-12 22:12:27 +00:00
bin.install_symlink Dir["#{libexec}/bin/*"]
end
end