diff options
| author | Nguyen Anh Quynh | 2014-04-01 16:25:58 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-04-02 12:59:37 +0100 |
| commit | 65ca1347806532cc236f60261f8f42b7eca49cb9 (patch) | |
| tree | 97bfe0f1fb721264e82c05076cc11a6c3b208236 /Library | |
| parent | 748bfb53082d6439a0520186afe270fa5fa2f2de (diff) | |
| download | homebrew-65ca1347806532cc236f60261f8f42b7eca49cb9.tar.bz2 | |
capstone 2.1.2
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/capstone.rb | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/Library/Formula/capstone.rb b/Library/Formula/capstone.rb index e3a5e998c..20da7bc54 100644 --- a/Library/Formula/capstone.rb +++ b/Library/Formula/capstone.rb @@ -2,48 +2,13 @@ require 'formula' class Capstone < Formula homepage 'http://capstone-engine.org' - url 'http://capstone-engine.org/download/2.1/capstone-2.1.1.tgz' - sha1 'f4b114aba2626832f1c217191faaa748245d76a8' - - bottle do - cellar :any - sha1 "78e0d5efaf37351b9bcc279ced71276970198478" => :mavericks - sha1 "d396a6ed6269442aa24217158a995a43e5850ffd" => :mountain_lion - sha1 "691452cdf102cc24fb885c487f97f69cbb0b2771" => :lion - end - - # Fix Makefile. Upstream fix is at: - # https://github.com/aquynh/capstone/commit/22b867e - patch :DATA + url 'http://capstone-engine.org/download/2.1.2/capstone-2.1.2.tgz' + sha1 '235ceab369025fbad9887fe826b741ca84b1ab41' def install - # Fixed upstream in next version: - # https://github.com/aquynh/capstone/commit/dc0d04 - inreplace 'Makefile', 'lib64', 'lib' - system "./make.sh" ENV["PREFIX"] = prefix + ENV["HOMEBREW_CAPSTONE"] = "1" + system "./make.sh" system "./make.sh", "install" end end - -__END__ ---- a/Makefile.org 2014-03-11 16:41:54.000000000 +0800 -+++ a/Makefile 2014-03-11 16:43:12.000000000 +0800 -@@ -145,17 +145,6 @@ - ifeq ($(UNAME_S),Darwin) - EXT = dylib - AR_EXT = a --ifneq ($(USE_SYS_DYN_MEM),yes) --# remove string check because OSX kernel complains about missing symbols --CFLAGS += -D_FORTIFY_SOURCE=0 --endif --# By default, suppose that Brew is installed & use Brew path for pkgconfig file --PKGCFCGDIR = /usr/local/lib/pkgconfig --# is Macport installed instead? --ifneq (,$(wildcard /opt/local/bin/port)) --# then correct the path for pkgconfig file --PKGCFCGDIR = /opt/local/lib/pkgconfig --endif - else - # Cygwin? - IS_CYGWIN := $(shell $(CC) -dumpmachine | grep -i cygwin | wc -l) |
