homebrew-core/Formula/open-tyrian.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

34 lines
760 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/'
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