2010-12-22 23:39:28 +00:00
|
|
|
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/'
|
2013-07-28 07:15:32 +00:00
|
|
|
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'
|
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-04-11 23:07:51 +00:00
|
|
|
url "https://github.com/kobo/groovyserv/commit/53b77ab2b4a7bcf6e232bc54f4e50e8b78d3006a.diff"
|
|
|
|
sha1 "59bec0eb24c582670781af277cc64c6fe13b11db"
|
2013-07-28 07:15:32 +00:00
|
|
|
end
|
|
|
|
|
2010-12-22 23:39:28 +00:00
|
|
|
def install
|
2012-02-29 00:46:40 +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
|
2013-07-28 07:15:32 +00:00
|
|
|
libexec.install Dir["build/executables/native/{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
|