aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-10 20:01:40 -0800
committerAdam Vandenberg2012-03-10 20:01:40 -0800
commit1e640f5445751bbc7d05120652c3ad83b31ddb52 (patch)
treeda18218bb63efd84c5e6c9aa4cfc2b46663b02ab /Library/Formula
parent637b708a9ccb6bc57bcef6cb378aeb2d0397b454 (diff)
downloadhomebrew-1e640f5445751bbc7d05120652c3ad83b31ddb52.tar.bz2
Dwarf Fortress: style nit-picks
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/dwarf-fortress.rb20
1 files changed, 7 insertions, 13 deletions
diff --git a/Library/Formula/dwarf-fortress.rb b/Library/Formula/dwarf-fortress.rb
index 3a7327fde..ebc6d9c46 100644
--- a/Library/Formula/dwarf-fortress.rb
+++ b/Library/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