diff options
| author | Julian Berman | 2011-08-19 11:55:41 -0400 |
|---|---|---|
| committer | Max Howell | 2011-08-26 16:39:18 +0100 |
| commit | b6aa1d2a375129b3852b1bcf4b36a71cb2d6d8d8 (patch) | |
| tree | 2e6e3b79546dcb65a4766f2b7e6cee874d994719 /Library/Formula | |
| parent | bfa91770575cc3f637c908265c5c99fa55e2ae1b (diff) | |
| download | homebrew-b6aa1d2a375129b3852b1bcf4b36a71cb2d6d8d8.tar.bz2 | |
New Formula: Dwarf Fortress
DF is in a bit of a flux it'd appear, the sh script that is the main entry point on OSX is a tiny bit batty, so... if what I ended up doing is nonideal please let me know how to change it.
With Lion fix.
Closes #7096.
Signed-off-by: Max Howell <max@methylblue.com>
Removed SDL directory too.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/dwarffortress.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/dwarffortress.rb b/Library/Formula/dwarffortress.rb new file mode 100644 index 000000000..b18b6529c --- /dev/null +++ b/Library/Formula/dwarffortress.rb @@ -0,0 +1,26 @@ +require 'formula' + +class Dwarffortress < Formula + url 'http://www.bay12games.com/dwarves/df_31_25_osx.tar.bz2' + homepage 'http://www.bay12games.com/dwarves/' + md5 '673b098b8b9c07b4c6be507dba8c7657' + version '0.31.25' + + def script; <<-EOS.undent + #!/bin/sh + # Dwarf Fortress wrapper script + exec #{prefix}/df + EOS + end + + def install + # Fixes: http://www.bay12games.com/dwarves/mantisbt/view.php?id=4103#c18417 + inreplace 'df', 'DYLD_FALLBACK_', 'DYLD_' if MacOS.lion? + + (bin + 'dwarffortress').write script + + rm_rf 'sdl' # only contains a readme + + prefix.install Dir['*'] + end +end |
