Files
tigerbrew/Library/Formula/open-tyrian.rb
T
George Kulakowski 1227f243e6 Fix open-tyrian version
This formula needs an explicit version, since it is just a particular
hg commit. The version number is the date of the commit.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-02-20 15:03:28 -08:00

36 lines
781 B
Ruby

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"
# Use a startup script to find the game data
(bin+'opentyrian').write startup_script
end
def startup_script
<<-END
#!/bin/bash
#{libexec}/opentyrian --data=#{libexec} $*
END
end
def caveats
"Save games will be put in ~/.opentyrian"
end
end