homebrew-core/Formula/groovyserv.rb

29 lines
862 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Groovyserv < Formula
2013-04-07 02:34:41 +00:00
homepage 'http://kobo.github.io/groovyserv/'
url 'https://bitbucket.org/kobo/groovyserv-mirror/downloads/groovyserv-0.13-src.zip'
sha1 '68e4d80b8309b71849d46590d9122a5fee2d36c3'
2012-04-19 02:37:43 +00:00
head 'https://github.com/kobo/groovyserv.git'
# This fix is upstream and can be removed in the next released version.
2014-03-14 15:03:24 +00:00
patch do
url "https://github.com/kobo/groovyserv/commit/53b77ab2b4a7bcf6e232bc54f4e50e8b78d3006a.diff"
sha1 "59bec0eb24c582670781af277cc64c6fe13b11db"
end
def install
2012-02-29 00:46:40 +00:00
system './gradlew clean executables'
2012-02-12 22:12:27 +00:00
# Install executables in libexec to avoid conflicts
libexec.install Dir["build/executables/native/{bin,lib}"]
2012-02-12 22:12:27 +00:00
# Remove windows files
rm_f Dir["#{libexec}/bin/*.bat"]
# Symlink binaries except _common.sh
bin.install_symlink Dir["#{libexec}/bin/g*"]
end
end