2014-11-05 11:26:35 +00:00
|
|
|
require "formula"
|
2010-12-22 23:39:28 +00:00
|
|
|
|
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
|
|
|
|
|
2014-11-04 15:36:18 +00:00
|
|
|
depends_on "go" => :build
|
2010-12-22 23:39:28 +00:00
|
|
|
|
2013-07-28 07:15:32 +00:00
|
|
|
# This fix is upstream and can be removed in the next released version.
|
2014-03-14 15:03:24 +00:00
|
|
|
patch do
|
2014-11-04 15:36:18 +00:00
|
|
|
url "https://github.com/kobo/groovyserv/commit/4ea88fbfe940b50801be5e0b0bc84cd0ce627530.diff"
|
|
|
|
sha1 "2fe73bbed1778075a84dec43d462f69154cdb602"
|
2013-07-28 07:15:32 +00:00
|
|
|
end
|
|
|
|
|
2010-12-22 23:39:28 +00:00
|
|
|
def install
|
2014-11-05 11:26:35 +00:00
|
|
|
system "./gradlew", "clean" "executables"
|
2011-03-22 00:52:13 +00:00
|
|
|
|
2012-02-12 22:12:27 +00:00
|
|
|
# Install executables in libexec to avoid conflicts
|
2014-11-04 15:36:18 +00:00
|
|
|
libexec.install Dir["build/executables/{bin,lib}"]
|
2012-02-12 22:12:27 +00:00
|
|
|
|
2011-03-22 00:52:13 +00:00
|
|
|
# Remove windows files
|
2010-12-22 23:39:28 +00:00
|
|
|
rm_f Dir["#{libexec}/bin/*.bat"]
|
2011-03-22 00:52:13 +00:00
|
|
|
|
2013-07-28 07:15:32 +00:00
|
|
|
# Symlink binaries except _common.sh
|
|
|
|
bin.install_symlink Dir["#{libexec}/bin/g*"]
|
2010-12-22 23:39:28 +00:00
|
|
|
end
|
|
|
|
end
|