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

class Yeti < Formula
  homepage 'http://mth.github.com/yeti/'
  url 'https://github.com/mth/yeti/tarball/v0.9.5'
  sha1 '8f92d74609923c462c184ebfe28cb05209e08f1b'

  head 'https://github.com/mth/yeti.git'

  def install
    system "ant jar"

    prefix.install "yeti.jar"
    (bin+'yeti').write <<-EOS.undent
      #!/bin/sh
      YETI=#{prefix}/yeti.jar
      java -server -jar "$YETI" "$@"
      EOS
  end
end