From ff7c461ef80cb57a54b38f6e64e4842a3945ec64 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Thu, 30 Mar 2017 14:07:57 -0400 Subject: [PATCH] Migrate dwarf-fortress to Cask. (#11814) This formula hasn't been updated since 2012, is binary-only, and closed source. Cask also already provides it, so there's no reason for brew to. --- Formula/dwarf-fortress.rb | 32 -------------------------------- tap_migrations.json | 1 + 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 Formula/dwarf-fortress.rb diff --git a/Formula/dwarf-fortress.rb b/Formula/dwarf-fortress.rb deleted file mode 100644 index 910d63f2b3..0000000000 --- a/Formula/dwarf-fortress.rb +++ /dev/null @@ -1,32 +0,0 @@ -class DwarfFortress < Formula - desc "Open-ended roguelike game" - homepage "http://bay12games.com/dwarves/" - url "http://www.bay12games.com/dwarves/df_43_05_osx.tar.bz2" - version "0.43.05" - sha256 "c9614c012c23dcef6197f83d02510d577e1257c5a0de948af5c8f76ae56c5fc8" - - bottle do - cellar :any - sha256 "13fb0099c9580a39226602194981e78eedead8a6b5711719c688d89158d37ece" => :sierra - sha256 "13fb0099c9580a39226602194981e78eedead8a6b5711719c688d89158d37ece" => :el_capitan - sha256 "13fb0099c9580a39226602194981e78eedead8a6b5711719c688d89158d37ece" => :yosemite - end - - depends_on :arch => :intel - - def install - # Dwarf Fortress uses freetype from X11, but hardcodes a path that - # isn't installed by modern XQuartz. Point it at wherever XQuartz - # happens to be on the user's system. - system "install_name_tool", "-change", - "/usr/X11/lib/libfreetype.6.dylib", - "#{MacOS::XQuartz.prefix}/lib/libfreetype.6.dylib", - "libs/SDL_ttf.framework/SDL_ttf" - - (bin/"dwarffortress").write <<-EOS.undent - #!/bin/sh - exec #{libexec}/df - EOS - libexec.install Dir["*"] - end -end diff --git a/tap_migrations.json b/tap_migrations.json index 93e91fbbc4..f1ccfe8767 100644 --- a/tap_migrations.json +++ b/tap_migrations.json @@ -66,6 +66,7 @@ "dsniff": "homebrew/boneyard", "dupx": "homebrew/boneyard", "dwarf": "homebrew/boneyard", + "dwarf-fortress": "caskroom/cask", "echoping": "homebrew/boneyard", "edelta": "homebrew/boneyard", "ee": "homebrew/boneyard",