From 6be1770b8bffcf5e8afe4e2029db1d61cd0df69b Mon Sep 17 00:00:00 2001 From: Stephen Date: Wed, 16 May 2018 16:51:04 -0700 Subject: [PATCH] Remove homebrew formula (#1135) already included in homebrew-core --- packages/homebrew/README | 2 -- packages/homebrew/capstone.rb | 30 ------------------------------ 2 files changed, 32 deletions(-) delete mode 100644 packages/homebrew/README delete mode 100644 packages/homebrew/capstone.rb diff --git a/packages/homebrew/README b/packages/homebrew/README deleted file mode 100644 index 513470257..000000000 --- a/packages/homebrew/README +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains the Homebrew formula for Capstone. -File capstone.rb should be put in its directory Library/Formula. diff --git a/packages/homebrew/capstone.rb b/packages/homebrew/capstone.rb deleted file mode 100644 index 78c61709a..000000000 --- a/packages/homebrew/capstone.rb +++ /dev/null @@ -1,30 +0,0 @@ -require "formula" - -class Capstone < Formula - homepage "http://capstone-engine.org" - url "http://capstone-engine.org/download/3.0.1/capstone-3.0.1.tgz" - sha1 "7f206c853c6b8d05de22e919c2455ab661654093" - - bottle do - cellar :any - sha1 "319b41766dd67e3017b83b1ce3df3cc81e6feb6a" => :yosemite - sha1 "4f1bbe6b886c174924b1996aac7ed8d9850ff773" => :mavericks - sha1 "5a73b99066037a6270f550e07bee8cbcb8e30a2c" => :mountain_lion - end - - def install - # Capstone's Make script ignores the prefix env and was installing - # in /usr/local directly. So just inreplace the prefix for less pain. - # https://github.com/aquynh/capstone/issues/228 - inreplace "make.sh", "export PREFIX=/usr/local", "export PREFIX=#{prefix}" - - ENV["HOMEBREW_CAPSTONE"] = "1" - system "./make.sh" - system "./make.sh", "install" - end - - test do - # Given the build issues around prefix, check is actually in the Cellar. - assert File.exist? "#{lib}/libcapstone.a" - end -end