diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2017-09-12 22:23:50 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2017-09-12 22:23:50 +0000 |
commit | e8cffab4400432a7bd1aea81a8e0a33cf846efbb (patch) | |
tree | 56570ecf6f2437710ca6333a5cb62daac79727e1 | |
parent | 4315a92760363aba5a99e06e03956624c3581660 (diff) | |
download | ports-e8cffab4400432a7bd1aea81a8e0a33cf846efbb.tar.gz ports-e8cffab4400432a7bd1aea81a8e0a33cf846efbb.zip |
Notes
-rw-r--r-- | graphics/mapnik/files/patch-icu59 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/graphics/mapnik/files/patch-icu59 b/graphics/mapnik/files/patch-icu59 new file mode 100644 index 000000000000..01bcdd6d76d0 --- /dev/null +++ b/graphics/mapnik/files/patch-icu59 @@ -0,0 +1,39 @@ +https://github.com/mapnik/mapnik/commit/9e58c890430d +https://github.com/mapnik/mapnik/commit/093fcee6d1ba + +--- include/mapnik/text/harfbuzz_shaper.hpp.orig 2015-11-26 14:32:15 UTC ++++ include/mapnik/text/harfbuzz_shaper.hpp +@@ -41,6 +41,7 @@ + #include <harfbuzz/hb-ft.h> + + // icu ++#include <unicode/uvernum.h> + #include <unicode/uscript.h> + + namespace mapnik +@@ -55,7 +56,8 @@ static inline hb_script_t _icu_script_to_script(UScrip + static inline const uint16_t * uchar_to_utf16(const UChar* src) + { + static_assert(sizeof(UChar) == sizeof(uint16_t),"UChar is eq size to uint16_t"); +-#if defined(_MSC_VER) ++#if defined(_MSC_VER) || (U_ICU_VERSION_MAJOR_NUM >= 59) ++ // ^^ http://site.icu-project.org/download/59#TOC-ICU4C-char16_t1 + return reinterpret_cast<const uint16_t *>(src); + #else + return src; +--- include/mapnik/unicode.hpp.orig 2015-11-26 14:32:15 UTC ++++ include/mapnik/unicode.hpp +@@ -31,6 +31,13 @@ + // std + #include <cstdint> + #include <string> ++// icu ++#if (U_ICU_VERSION_MAJOR_NUM >= 59) ++#pragma GCC diagnostic push ++#include <mapnik/warning_ignore.hpp> ++#include <unicode/unistr.h> ++#pragma GCC diagnostic pop ++#endif + + struct UConverter; + |