From afebffb728cbea6f6b79c0aac5acfa8f39b55752 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 26 Aug 2011 16:52:20 +0100 Subject: dwarffortress should be dwarf-fortress To be consistent. And prettier. Even though now I feel it's excessive, we started so must finish. Apologies I didn't do this as part of the initial commit. --- Library/Formula/dwarf-fortress.rb | 26 ++++++++++++++++++++++++++ Library/Formula/dwarffortress.rb | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 Library/Formula/dwarf-fortress.rb delete mode 100644 Library/Formula/dwarffortress.rb (limited to 'Library/Formula') diff --git a/Library/Formula/dwarf-fortress.rb b/Library/Formula/dwarf-fortress.rb new file mode 100644 index 000000000..e9a0c1925 --- /dev/null +++ b/Library/Formula/dwarf-fortress.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 diff --git a/Library/Formula/dwarffortress.rb b/Library/Formula/dwarffortress.rb deleted file mode 100644 index b18b6529c..000000000 --- a/Library/Formula/dwarffortress.rb +++ /dev/null @@ -1,26 +0,0 @@ -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