Dwarf Fortress: style nit-picks

This commit is contained in:
Adam Vandenberg 2012-03-10 20:01:40 -08:00
parent f7073be6ac
commit 20197140bf

View file

@ -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