aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/open-tyrian.rb
blob: 46804f849cb5c80983265f435fd646f8491918d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'formula'

class OpenTyrianData < Formula
  url 'http://sites.google.com/a/camanis.net/opentyrian/tyrian/tyrian21.zip'
  md5 '2a3b206a6de25ed4b771af073f8ca904'
end

class OpenTyrian < Formula
  url 'http://opentyrian.googlecode.com/hg/', :revision =>  '9ddcd06e48'
  homepage 'http://code.google.com/p/opentyrian/'
  version '20091122'

  depends_on 'sdl'
  depends_on 'sdl_net'

  def install
    OpenTyrianData.new.brew { libexec.install Dir['*'] }

    system "make release"
    libexec.install "opentyrian"
    (bin+'opentyrian').write <<-END.undent
      #!/bin/bash
      "#{libexec}/opentyrian" --data="#{libexec}" "$@"
    END
  end

  def caveats
    "Save games will be put in ~/.opentyrian"
  end
end