packages: update Brew formula to 2.1 by embedding patch inside
This commit is contained in:
parent
0c0a81e10b
commit
ae603d9631
|
@ -7,7 +7,7 @@ class Capstone < Formula
|
||||||
|
|
||||||
def patches
|
def patches
|
||||||
# fix pkgconfig path
|
# fix pkgconfig path
|
||||||
"https://raw.github.com/aquynh/capstone/next/packages/homebrew/patch-Makefile-2.1"
|
DATA
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
@ -17,3 +17,22 @@ class Capstone < Formula
|
||||||
system "./make.sh", "install"
|
system "./make.sh", "install"
|
||||||
end
|
end
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue