aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/htmlcxx.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-12-01 14:13:33 -0800
committerMisty De Meo2013-12-01 14:13:33 -0800
commitd644fbb4295b71681ccf086a0768b97d1fae6634 (patch)
tree6731a8fdadae8633309fa739c9a2e63ce21745d4 /Library/Formula/htmlcxx.rb
parent10054a87c30a98316eb1a28287f723a587bb8ea7 (diff)
downloadhomebrew-d644fbb4295b71681ccf086a0768b97d1fae6634.tar.bz2
htmlcxx: fix compilation with libc++
Fixes #24820.
Diffstat (limited to 'Library/Formula/htmlcxx.rb')
-rw-r--r--Library/Formula/htmlcxx.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/htmlcxx.rb b/Library/Formula/htmlcxx.rb
index 88531b13a..5f792c153 100644
--- a/Library/Formula/htmlcxx.rb
+++ b/Library/Formula/htmlcxx.rb
@@ -5,8 +5,35 @@ class Htmlcxx < Formula
url 'http://downloads.sourceforge.net/project/htmlcxx/htmlcxx/0.85/htmlcxx-0.85.tar.gz'
sha1 'e56fef830db51041fd297d269d24379b2dccb928'
+ # Don't try to use internal GCC headers; rely on standards-compliant header
+ # Reported upstream: https://sourceforge.net/p/htmlcxx/bugs/18/
+ def patches; DATA; end
+
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end
+
+__END__
+diff --git a/html/ci_string.h b/html/ci_string.h
+index 61ed462..e461469 100644
+--- a/html/ci_string.h
++++ b/html/ci_string.h
+@@ -4,16 +4,7 @@
+ #include <cctype>
+ #include <string>
+
+-#if __GNUC__ >= 3
+-#include <bits/char_traits.h>
+ struct ci_char_traits : public std::char_traits<char>
+-#elif defined(__GNUC__)
+-#include <std/straits.h>
+-struct ci_char_traits : public std::string_char_traits<char>
+-#else
+-//Hope string already include it
+-struct ci_char_traits : public std::char_traits<char>
+-#endif
+
+ // just inherit all the other functions
+ // that we don't need to override