Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-simulation/openttd/files/
Date: Tue, 16 Apr 2019 19:57:39
Message-Id: 1555444617.33c126c22038c8673048713e1816949ae0383522.chewi@gentoo
1 commit: 33c126c22038c8673048713e1816949ae0383522
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Apr 16 17:43:01 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 16 19:56:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33c126c2
7
8 games-simulation/openttd: remove unused patches
9
10 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/11709
12 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
13
14 .../openttd/files/openttd-1.6.0-cflags.patch | 42 ---------
15 .../openttd/files/openttd-1.8.0-icu61.patch | 45 ----------
16 .../openttd/files/openttd-1.8.0-icu62.patch | 99 ----------------------
17 3 files changed, 186 deletions(-)
18
19 diff --git a/games-simulation/openttd/files/openttd-1.6.0-cflags.patch b/games-simulation/openttd/files/openttd-1.6.0-cflags.patch
20 deleted file mode 100644
21 index bb7f768b379..00000000000
22 --- a/games-simulation/openttd/files/openttd-1.6.0-cflags.patch
23 +++ /dev/null
24 @@ -1,42 +0,0 @@
25 ---- openttd-1.4.4/config.lib
26 -+++ openttd-1.4.4/config.lib
27 -@@ -1450,12 +1450,6 @@
28 - CFLAGS="-I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations -mcpu=604 -fno-inline -mstring -mmultiple $CFLAGS"
29 - LDFLAGS="$LDFLAGS -noixemul"
30 - fi
31 --
32 -- if [ "$enable_profiling" = "0" ]; then
33 -- # -fomit-frame-pointer and -pg do not go well together (gcc errors they are incompatible)
34 -- CFLAGS="-fomit-frame-pointer $CFLAGS"
35 -- fi
36 -- CFLAGS="-O2 $CFLAGS"
37 - else
38 - OBJS_SUBDIR="debug"
39 -
40 -@@ -1466,14 +1460,6 @@
41 - CFLAGS="$CFLAGS -G0"
42 - fi
43 - fi
44 -- if [ $enable_debug -ge 2 ]; then
45 -- CFLAGS="$CFLAGS -fno-inline"
46 -- fi
47 -- if [ $enable_debug -ge 3 ]; then
48 -- CFLAGS="$CFLAGS -O0"
49 -- else
50 -- CFLAGS="$CFLAGS -O2"
51 -- fi
52 - fi
53 -
54 - if [ $enable_debug -le 2 ]; then
55 -@@ -1498,11 +1484,6 @@
56 - CFLAGS="$CFLAGS -fno-expensive-optimizations"
57 - fi
58 -
59 -- if [ "$enable_profiling" != "0" ]; then
60 -- CFLAGS="$CFLAGS -pg"
61 -- LDFLAGS="$LDFLAGS -pg"
62 -- fi
63 --
64 - if [ "$with_threads" = "0" ]; then
65 - CFLAGS="$CFLAGS -DNO_THREADS"
66 - fi
67
68 diff --git a/games-simulation/openttd/files/openttd-1.8.0-icu61.patch b/games-simulation/openttd/files/openttd-1.8.0-icu61.patch
69 deleted file mode 100644
70 index e4143d82f67..00000000000
71 --- a/games-simulation/openttd/files/openttd-1.8.0-icu61.patch
72 +++ /dev/null
73 @@ -1,45 +0,0 @@
74 -From 19076c24c1f3baf2a22d1fa832d5688216cf54a3 Mon Sep 17 00:00:00 2001
75 -From: Charles Pigott <charlespigott@××××××××××.com>
76 -Date: Sun, 8 Apr 2018 01:06:18 +0100
77 -Subject: [PATCH] Fix #6690: Compilation with ICU 61
78 -
79 ----
80 - src/language.h | 2 +-
81 - src/strings.cpp | 4 ++--
82 - 2 files changed, 3 insertions(+), 3 deletions(-)
83 -
84 -diff --git a/src/language.h b/src/language.h
85 -index d33ba81892..ec241dbd8c 100644
86 ---- a/src/language.h
87 -+++ b/src/language.h
88 -@@ -105,7 +105,7 @@ extern LanguageList _languages;
89 - extern const LanguageMetadata *_current_language;
90 -
91 - #ifdef WITH_ICU_SORT
92 --extern Collator *_current_collator;
93 -+extern icu::Collator *_current_collator;
94 - #endif /* WITH_ICU_SORT */
95 -
96 - bool ReadLanguagePack(const LanguageMetadata *lang);
97 -diff --git a/src/strings.cpp b/src/strings.cpp
98 -index 1c539d9343..fd7420259a 100644
99 ---- a/src/strings.cpp
100 -+++ b/src/strings.cpp
101 -@@ -52,7 +52,7 @@ const LanguageMetadata *_current_language = NULL; ///< The currently loaded lang
102 - TextDirection _current_text_dir; ///< Text direction of the currently selected language.
103 -
104 - #ifdef WITH_ICU_SORT
105 --Collator *_current_collator = NULL; ///< Collator for the language currently in use.
106 -+icu::Collator *_current_collator = NULL; ///< Collator for the language currently in use.
107 - #endif /* WITH_ICU_SORT */
108 -
109 - static uint64 _global_string_params_data[20]; ///< Global array of string parameters. To access, use #SetDParam.
110 -@@ -1795,7 +1795,7 @@ bool ReadLanguagePack(const LanguageMetadata *lang)
111 -
112 - /* Create a collator instance for our current locale. */
113 - UErrorCode status = U_ZERO_ERROR;
114 -- _current_collator = Collator::createInstance(Locale(_current_language->isocode), status);
115 -+ _current_collator = icu::Collator::createInstance(icu::Locale(_current_language->isocode), status);
116 - /* Sort number substrings by their numerical value. */
117 - if (_current_collator != NULL) _current_collator->setAttribute(UCOL_NUMERIC_COLLATION, UCOL_ON, status);
118 - /* Avoid using the collator if it is not correctly set. */
119
120 diff --git a/games-simulation/openttd/files/openttd-1.8.0-icu62.patch b/games-simulation/openttd/files/openttd-1.8.0-icu62.patch
121 deleted file mode 100644
122 index 9ba907fa47e..00000000000
123 --- a/games-simulation/openttd/files/openttd-1.8.0-icu62.patch
124 +++ /dev/null
125 @@ -1,99 +0,0 @@
126 -From 55bf7628e299ef2c143e9ac97e87817b5eda3239 Mon Sep 17 00:00:00 2001
127 -From: Stefan Strogin <stefan.strogin@×××××.com>
128 -Date: Wed, 19 Sep 2018 23:52:10 +0300
129 -Subject: [PATCH] Fix #6854: Compilation with ICU 62
130 -
131 ----
132 - src/gfx_layout.cpp | 18 +++++++++---------
133 - src/gfx_layout.h | 2 +-
134 - 2 files changed, 10 insertions(+), 10 deletions(-)
135 -
136 -diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp
137 -index f5463d401..e13ece0e7 100644
138 ---- a/src/gfx_layout.cpp
139 -+++ b/src/gfx_layout.cpp
140 -@@ -126,7 +126,7 @@ static size_t AppendToBuffer(UChar *buff, const UChar *buffer_last, WChar c)
141 - * Wrapper for doing layouts with ICU.
142 - */
143 - class ICUParagraphLayout : public AutoDeleteSmallVector<ParagraphLayouter::Line *, 4>, public ParagraphLayouter {
144 -- ParagraphLayout *p; ///< The actual ICU paragraph layout.
145 -+ icu::ParagraphLayout *p; ///< The actual ICU paragraph layout.
146 - public:
147 - /** Helper for GetLayouter, to get the right type. */
148 - typedef UChar CharType;
149 -@@ -135,10 +135,10 @@ public:
150 -
151 - /** Visual run contains data about the bit of text with the same font. */
152 - class ICUVisualRun : public ParagraphLayouter::VisualRun {
153 -- const ParagraphLayout::VisualRun *vr; ///< The actual ICU vr.
154 -+ const icu::ParagraphLayout::VisualRun *vr; ///< The actual ICU vr.
155 -
156 - public:
157 -- ICUVisualRun(const ParagraphLayout::VisualRun *vr) : vr(vr) { }
158 -+ ICUVisualRun(const icu::ParagraphLayout::VisualRun *vr) : vr(vr) { }
159 -
160 - const Font *GetFont() const { return (const Font*)vr->getFont(); }
161 - int GetGlyphCount() const { return vr->getGlyphCount(); }
162 -@@ -150,10 +150,10 @@ public:
163 -
164 - /** A single line worth of VisualRuns. */
165 - class ICULine : public AutoDeleteSmallVector<ICUVisualRun *, 4>, public ParagraphLayouter::Line {
166 -- ParagraphLayout::Line *l; ///< The actual ICU line.
167 -+ icu::ParagraphLayout::Line *l; ///< The actual ICU line.
168 -
169 - public:
170 -- ICULine(ParagraphLayout::Line *l) : l(l)
171 -+ ICULine(icu::ParagraphLayout::Line *l) : l(l)
172 - {
173 - for (int i = 0; i < l->countRuns(); i++) {
174 - *this->Append() = new ICUVisualRun(l->getVisualRun(i));
175 -@@ -173,13 +173,13 @@ public:
176 - }
177 - };
178 -
179 -- ICUParagraphLayout(ParagraphLayout *p) : p(p) { }
180 -+ ICUParagraphLayout(icu::ParagraphLayout *p) : p(p) { }
181 - ~ICUParagraphLayout() { delete p; }
182 - void Reflow() { p->reflow(); }
183 -
184 - ParagraphLayouter::Line *NextLine(int max_width)
185 - {
186 -- ParagraphLayout::Line *l = p->nextLine(max_width);
187 -+ icu::ParagraphLayout::Line *l = p->nextLine(max_width);
188 - return l == NULL ? NULL : new ICULine(l);
189 - }
190 - };
191 -@@ -196,7 +196,7 @@ static ParagraphLayouter *GetParagraphLayout(UChar *buff, UChar *buff_end, FontM
192 - }
193 -
194 - /* Fill ICU's FontRuns with the right data. */
195 -- FontRuns runs(fontMapping.Length());
196 -+ icu::FontRuns runs(fontMapping.Length());
197 - for (FontMap::iterator iter = fontMapping.Begin(); iter != fontMapping.End(); iter++) {
198 - runs.add(iter->second, iter->first);
199 - }
200 -@@ -204,7 +204,7 @@ static ParagraphLayouter *GetParagraphLayout(UChar *buff, UChar *buff_end, FontM
201 - LEErrorCode status = LE_NO_ERROR;
202 - /* ParagraphLayout does not copy "buff", so it must stay valid.
203 - * "runs" is copied according to the ICU source, but the documentation does not specify anything, so this might break somewhen. */
204 -- ParagraphLayout *p = new ParagraphLayout(buff, length, &runs, NULL, NULL, NULL, _current_text_dir == TD_RTL ? UBIDI_DEFAULT_RTL : UBIDI_DEFAULT_LTR, false, status);
205 -+ icu::ParagraphLayout *p = new icu::ParagraphLayout(buff, length, &runs, NULL, NULL, NULL, _current_text_dir == TD_RTL ? UBIDI_DEFAULT_RTL : UBIDI_DEFAULT_LTR, false, status);
206 - if (status != LE_NO_ERROR) {
207 - delete p;
208 - return NULL;
209 -diff --git a/src/gfx_layout.h b/src/gfx_layout.h
210 -index 0a21d9b0c..028f5be63 100644
211 ---- a/src/gfx_layout.h
212 -+++ b/src/gfx_layout.h
213 -@@ -21,7 +21,7 @@
214 -
215 - #ifdef WITH_ICU_LAYOUT
216 - #include "layout/ParagraphLayout.h"
217 --#define ICU_FONTINSTANCE : public LEFontInstance
218 -+#define ICU_FONTINSTANCE : public icu::LEFontInstance
219 - #else /* WITH_ICU_LAYOUT */
220 - #define ICU_FONTINSTANCE
221 - #endif /* WITH_ICU_LAYOUT */
222 ---
223 -2.19.0
224 -