From ae603d9631ea7ab0438a5c2ca377e8081df4121b Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Wed, 5 Mar 2014 14:25:32 +0800 Subject: [PATCH] packages: update Brew formula to 2.1 by embedding patch inside --- packages/homebrew/capstone.rb | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/packages/homebrew/capstone.rb b/packages/homebrew/capstone.rb index 581d560e..2c3297df 100644 --- a/packages/homebrew/capstone.rb +++ b/packages/homebrew/capstone.rb @@ -7,7 +7,7 @@ class Capstone < Formula def patches # fix pkgconfig path - "https://raw.github.com/aquynh/capstone/next/packages/homebrew/patch-Makefile-2.1" + DATA end def install @@ -17,3 +17,22 @@ class Capstone < Formula 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)