aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorNguyen Anh Quynh2014-03-06 23:50:18 +0000
committerMike McQuaid2014-03-06 23:50:28 +0000
commit01a7261a80f3db3e2633295ba092f20ccc7ec465 (patch)
tree06dc5433483c9be51f9effd697a25d2b4dd8dda4 /Library
parent434e9cea7ae6ff8aba5dbd3a16302bbac3b2b9ea (diff)
downloadhomebrew-01a7261a80f3db3e2633295ba092f20ccc7ec465.tar.bz2
capstone 2.1
Closes #27214. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/capstone.rb30
1 files changed, 27 insertions, 3 deletions
diff --git a/Library/Formula/capstone.rb b/Library/Formula/capstone.rb
index ebcdaf0a8..b49aeea4a 100644
--- a/Library/Formula/capstone.rb
+++ b/Library/Formula/capstone.rb
@@ -2,15 +2,39 @@ require 'formula'
class Capstone < Formula
homepage 'http://capstone-engine.org'
- url 'http://capstone-engine.org/download/2.0/capstone-2.0.tgz'
- sha1 '209cdc69518f754c5d7d07672d8e28cdda9feae7'
+ url 'http://capstone-engine.org/download/2.1/capstone-2.1.tgz'
+ sha1 '3e5fe91684cfc76d73caa857a268332ac9d40659'
+
+ def patches
+ # Fix pkgconfig path. Fixed upstream:
+ # https://github.com/aquynh/capstone/commit/ae603d
+ DATA
+ end
def install
# Fixed upstream in next version:
- # https://github.com/aquynh/capstone/commit/dc0d04522fa6ca7222124f390f51eb9e106906f7.diff
+ # https://github.com/aquynh/capstone/commit/dc0d04
inreplace 'Makefile', 'lib64', 'lib'
system "./make.sh"
ENV["PREFIX"] = prefix
system "./make.sh", "install"
end
end
+
+__END__
+--- a/Makefile.org 2014-03-05 11:26:42.000000000 +0800
++++ a/Makefile 2014-03-05 11:28:34.000000000 +0800
+@@ -144,13 +144,6 @@
+ ifeq ($(UNAME_S),Darwin)
+ EXT = dylib
+ AR_EXT = a
+-# 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)