From b6aa1d2a375129b3852b1bcf4b36a71cb2d6d8d8 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Fri, 19 Aug 2011 11:55:41 -0400 Subject: 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 Removed SDL directory too.--- Library/Formula/dwarffortress.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Library/Formula/dwarffortress.rb (limited to 'Library/Formula') 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 -- cgit v1.2.3