a649d9b4ec
This modifies multiple formulae in a single commit, replacing the patch suffix with diff per Homebrew/homebrew#28315. I used the following command: ~~~ sed -i -e 's@patch"$@diff"@' `grep -rlI 'commit.*patch"$' .` ~~~ The patch shasums are then computed using: ~~~ brew fetch --build-from-source `git st | sed -e 's@^ M@@'` ~~~ and manually updated. Fixes Homebrew/homebrew#28315. Fixes Homebrew/homebrew#28335. Closes Homebrew/homebrew#28339. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
28 lines
862 B
Ruby
28 lines
862 B
Ruby
require 'formula'
|
|
|
|
class Groovyserv < Formula
|
|
homepage 'http://kobo.github.io/groovyserv/'
|
|
url 'https://bitbucket.org/kobo/groovyserv-mirror/downloads/groovyserv-0.13-src.zip'
|
|
sha1 '68e4d80b8309b71849d46590d9122a5fee2d36c3'
|
|
|
|
head 'https://github.com/kobo/groovyserv.git'
|
|
|
|
# This fix is upstream and can be removed in the next released version.
|
|
patch do
|
|
url "https://github.com/kobo/groovyserv/commit/53b77ab2b4a7bcf6e232bc54f4e50e8b78d3006a.diff"
|
|
sha1 "59bec0eb24c582670781af277cc64c6fe13b11db"
|
|
end
|
|
|
|
def install
|
|
system './gradlew clean executables'
|
|
|
|
# Install executables in libexec to avoid conflicts
|
|
libexec.install Dir["build/executables/native/{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
|