From 20197140bfcd852aabb942f82525e1681caa0fff Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 10 Mar 2012 20:01:40 -0800 Subject: [PATCH] Dwarf Fortress: style nit-picks --- Formula/dwarf-fortress.rb | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Formula/dwarf-fortress.rb b/Formula/dwarf-fortress.rb index 3a7327fdec..ebc6d9c467 100644 --- a/Formula/dwarf-fortress.rb +++ b/Formula/dwarf-fortress.rb @@ -1,23 +1,17 @@ require 'formula' class DwarfFortress < Formula - url 'http://www.bay12games.com/dwarves/df_34_05_osx.tar.bz2' homepage 'http://www.bay12games.com/dwarves/' - md5 '470dd5b1f75bdc2f567a10127b3708bf' + url 'http://www.bay12games.com/dwarves/df_34_05_osx.tar.bz2' version '0.34.05' - - def script; <<-EOS.undent - #!/bin/sh - # Dwarf Fortress wrapper script - exec #{prefix}/df - EOS - end + md5 '470dd5b1f75bdc2f567a10127b3708bf' def install - (bin + 'dwarffortress').write script - + (bin+'dwarffortress').write <<-EOS.undent + #!/bin/sh + exec #{libexec}/df + EOS rm_rf 'sdl' # only contains a readme - - prefix.install Dir['*'] + libexec.install Dir['*'] end end