aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXiyue Deng2013-11-01 11:58:10 -0700
committerXiyue Deng2013-11-02 01:49:55 -0700
commit7c79ee985399107a32dd16faae1bf9ea4e63056c (patch)
treefd658eb170ad59ed5b40a4f83d69947a69a94655 /Library
parentd5712c01944cae01c8753cc101545428d62ea9a2 (diff)
downloadhomebrew-7c79ee985399107a32dd16faae1bf9ea4e63056c.tar.bz2
pcre++: fix building with new GCC and Clang/libc++.
* Add missing "#include <clocale>".
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pcre++.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/pcre++.rb b/Library/Formula/pcre++.rb
index 6cf43779f..734bf9196 100644
--- a/Library/Formula/pcre++.rb
+++ b/Library/Formula/pcre++.rb
@@ -7,6 +7,11 @@ class Pcrexx < Formula
depends_on 'pcre'
+ def patches
+ # Fix building with libc++. Patch sent to maintainer.
+ DATA
+ end
+
def install
pcre = Formula.factory('pcre').opt_prefix
system "./configure", "--disable-debug",
@@ -29,3 +34,16 @@ class Pcrexx < Formula
EOS
end
end
+
+__END__
+diff -urN pcre++-0.9.5.orig/libpcre++/pcre++.cc pcre++-0.9.5/libpcre++/pcre++.cc
+--- pcre++-0.9.5.orig/libpcre++/pcre++.cc 2004-08-24 14:59:21.000000000 -0700
++++ pcre++-0.9.5/libpcre++/pcre++.cc 2013-11-01 11:30:21.000000000 -0700
+@@ -38,6 +38,7 @@
+ *
+ */
+
++#include <clocale>
+
+ #include "pcre++.h"
+