homebrew-core/Formula/groovyserv.rb
2015-02-20 16:45:56 +00:00

36 lines
1.1 KiB
Ruby

require "formula"
class Groovyserv < Formula
homepage "https://kobo.github.io/groovyserv/"
url "https://bitbucket.org/kobo/groovyserv-mirror/downloads/groovyserv-1.0.0-src.zip"
sha1 "46b946dee3e40457e667498b235bd8e1567ed9ed"
head "https://github.com/kobo/groovyserv.git"
bottle do
cellar :any
sha1 "2acd972802f63afcdebb622015ab059c23423789" => :yosemite
sha1 "b2cb34764f861b8ef374ead20bac89f1866d03d4" => :mavericks
sha1 "9936c0eadffe669dca07631c0609bc5a07968800" => :mountain_lion
end
depends_on "go" => :build
# This fix is upstream and can be removed in the next released version.
patch do
url "https://github.com/kobo/groovyserv/commit/4ea88fbfe940b50801be5e0b0bc84cd0ce627530.diff"
sha1 "2fe73bbed1778075a84dec43d462f69154cdb602"
end
def install
system "./gradlew", "clean" "executables"
# 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 except _common.sh
bin.install_symlink Dir["#{libexec}/bin/g*"]
end
end