1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

games/widelands: unbreak with ICU 61

In file included from src/graphic/font_handler.cc:36:
src/graphic/text/bidi.h:43:36: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'?
std::string icustring2string(const UnicodeString& convertme);
                                   ^~~~~~~~~~~~~
                                   icu::UnicodeString
/usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here
class U_COMMON_API UnicodeString : public Replaceable
                   ^

https://ssl.icu-project.org/trac/changeset/40705

PR:		227042
Reported by:	antoine (via exp-run)
Obtained from:	upstream
This commit is contained in:
Jan Beich 2018-04-04 10:10:26 +00:00
parent ebd48117ed
commit cc2d570d23
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466414

View File

@ -0,0 +1,13 @@
https://bazaar.launchpad.net/~widelands-dev/widelands/trunk/revision/8641
--- src/graphic/text/bidi.h.orig 2016-11-10 07:28:01 UTC
+++ src/graphic/text/bidi.h
@@ -40,7 +40,7 @@ bool has_rtl_character(std::vector<std::string> input)
// True if a string contains a character from the script's code blocks
bool has_script_character(const char* input, UI::FontSets::Selector script);
UI::FontSet const* find_fontset(const char* word, const UI::FontSets& fontsets);
-std::string icustring2string(const UnicodeString& convertme);
+std::string icustring2string(const icu::UnicodeString& convertme);
std::string icuchar2string(const UChar& convertme);
bool cannot_start_line(const UChar& c);
bool cannot_end_line(const UChar& c);