homebrew-core/Formula/groovyserv.rb

26 lines
660 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/'
2012-02-29 00:46:40 +00:00
url 'https://github.com/downloads/kobo/groovyserv/groovyserv-0.10-src.zip'
2012-08-04 15:11:23 +00:00
sha1 'b8912ce7871458be6452876ab0215b5c89e82ad0'
2012-04-19 02:37:43 +00:00
head 'https://github.com/kobo/groovyserv.git'
depends_on 'groovy'
def install
2012-02-29 00:46:40 +00:00
ENV['CC'] = ENV['CFLAGS'] = nil # to workaround
system './gradlew clean executables'
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