htmlcxx 0.86
- remove upstreamed patch - add a test Closes #3116. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
e3bf1db118
commit
376f7dc1a3
1 changed files with 6 additions and 29 deletions
|
@ -1,8 +1,8 @@
|
|||
class Htmlcxx < Formula
|
||||
desc "Non-validating CSS1 and HTML parser for C++"
|
||||
homepage "http://htmlcxx.sourceforge.net/"
|
||||
url "https://downloads.sourceforge.net/project/htmlcxx/htmlcxx/0.85/htmlcxx-0.85.tar.gz"
|
||||
sha256 "ab02a0c4addc82f82d564f7d163fe0cc726179d9045381c288f5b8295996bae5"
|
||||
url "https://downloads.sourceforge.net/project/htmlcxx/htmlcxx/0.86/htmlcxx-0.86.tar.gz"
|
||||
sha256 "07542b5ea2442143b125ba213b6823ff4a23fff352ecdd84bbebe1d154f4f5c1"
|
||||
|
||||
bottle do
|
||||
sha256 "708b5eeb03eb5f2070f4fe34efb80f9198009a23106c98ec9aaf5472b49dbf1c" => :el_capitan
|
||||
|
@ -10,35 +10,12 @@ class Htmlcxx < Formula
|
|||
sha256 "fceb4660730162bdb44be089ab347afd7a24b3f06bc3579cffdf2bb5891466f5" => :mavericks
|
||||
end
|
||||
|
||||
# Don't try to use internal GCC headers; rely on standards-compliant header
|
||||
# Fixed upstream: https://sourceforge.net/p/htmlcxx/code/ci/b26a4fae4e3d59d24600f9a7dfb013ce43bdd2df/
|
||||
patch :DATA
|
||||
|
||||
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
|
||||
test do
|
||||
assert_equal version.to_s, shell_output("#{bin}/htmlcxx -V 2>&1").chomp
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue