aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-05-08 01:29:00 -0500
committerJack Nagel2012-05-08 01:29:00 -0500
commitfc9dfa46e7fa354b12024c58aef90cfa13be599f (patch)
treeea917b4c6d7a5d799bba7433ce2e64bdaeb53c11 /Library
parent2357eb9b1feb4d7cd93c683224bef1796555b688 (diff)
downloadhomebrew-fc9dfa46e7fa354b12024c58aef90cfa13be599f.tar.bz2
Move openttd to Homebrew-games
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/openttd.rb45
1 files changed, 0 insertions, 45 deletions
diff --git a/Library/Formula/openttd.rb b/Library/Formula/openttd.rb
deleted file mode 100644
index a0aa8e344..000000000
--- a/Library/Formula/openttd.rb
+++ /dev/null
@@ -1,45 +0,0 @@
-require 'formula'
-
-class Openttd < Formula
- homepage 'http://www.openttd.org/'
- url 'http://us.binaries.openttd.org/binaries/releases/1.1.5/openttd-1.1.5-source.tar.gz'
- md5 '6bad4750c09782e04a987a326d798d8a'
- head 'git://git.openttd.org/openttd/trunk.git'
-
- depends_on 'lzo'
- depends_on 'xz'
-
- def install
- system "./configure", "--prefix-dir=#{prefix}"
- system "make bundle"
-
- def install_asset(url)
- ohai "Downloading asset: #{url}"
- curl url, '-O'
-
- file = File.basename url
- system '/usr/bin/unzip', '-qq', file
- rm file
- end
-
- cd 'bundle/OpenTTD.app/Contents/Resources' do
- cd 'data' do
- install_asset 'http://bundles.openttdcoop.org/opengfx/releases/0.3.3/opengfx-0.3.3.zip'
- install_asset 'http://bundles.openttdcoop.org/opensfx/releases/0.2.3/opensfx-0.2.3.zip'
- end
- cd 'gm' do
- install_asset 'http://bundles.openttdcoop.org/openmsx/releases/0.3.1/openmsx-0.3.1.zip'
- end
- end
-
- prefix.install 'bundle/OpenTTD.app'
- end
-
- def caveats; <<-EOS.undent
- OpenTTD.app installed to: #{prefix}
- If you have access to the sound and graphics files from the original
- Transport Tycoon Deluxe, you can install them by following the
- instructions in section 4.1 of #{prefix}/README
- EOS
- end
-end