blob: e9a0c1925dc3dc8b49b6fca00a3e644b0e931e7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|