aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/groovyserv.rb
blob: dd8149709e80ef72f75fa64935d8b3b44a7e574e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'formula'

class Groovyserv < Formula
  homepage 'http://kobo.github.io/groovyserv/'
  url 'https://bitbucket.org/kobo/groovyserv-mirror/downloads/groovyserv-0.11-src.zip'
  sha1 'a9a558c9793fbaaf32f6a4e267d5ad16d0381292'

  head 'https://github.com/kobo/groovyserv.git'

  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
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end
end