homebrew-core/Formula/groovyserv.rb

36 lines
1.1 KiB
Ruby
Raw Normal View History

2014-11-05 11:26:35 +00:00
require "formula"
2011-03-10 05:11:03 +00:00
class Groovyserv < Formula
2014-11-05 11:26:35 +00:00
homepage "http://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"
2014-11-05 11:26:04 +00:00
bottle do
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.
2014-03-14 15:03:24 +00:00
patch do
url "https://github.com/kobo/groovyserv/commit/4ea88fbfe940b50801be5e0b0bc84cd0ce627530.diff"
sha1 "2fe73bbed1778075a84dec43d462f69154cdb602"
end
def install
2014-11-05 11:26:35 +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/{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