Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/librime/files/, app-i18n/librime/
Date: Tue, 28 Nov 2017 18:36:43
Message-Id: 1511894190.ee7ebb20353425fe25018acb6a6c3b78632b9d53.floppym@gentoo
1 commit: ee7ebb20353425fe25018acb6a6c3b78632b9d53
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Tue Nov 28 17:19:49 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 28 18:36:30 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee7ebb20
7
8 app-i18n/librime: Delete old versions (<1.2.9).
9
10 app-i18n/librime/Manifest | 4 +-
11 app-i18n/librime/files/librime-1.1-gcc53613.patch | 367 ---------------------
12 .../files/librime-1.2-BOOST_NO_SCOPED_ENUMS.patch | 224 -------------
13 app-i18n/librime/files/librime-dictionary.patch | 13 -
14 app-i18n/librime/files/librime-test.patch | 42 ---
15 app-i18n/librime/librime-0.9.9.ebuild | 42 ---
16 app-i18n/librime/librime-1.2.ebuild | 45 ---
17 7 files changed, 1 insertion(+), 736 deletions(-)
18
19 diff --git a/app-i18n/librime/Manifest b/app-i18n/librime/Manifest
20 index 24ddf4ed4fc..85b6d47610a 100644
21 --- a/app-i18n/librime/Manifest
22 +++ b/app-i18n/librime/Manifest
23 @@ -1,3 +1 @@
24 -DIST librime-0.9.9.tar.gz 2548968 SHA256 e828acc853a5d9e3ca191d065112c410183aadb5bd1d021704f82a8644ff6fd8 SHA512 71b39e713d5bbb73441dfb3038be6dc04518d2169df336e7fcb19b4c3b19a48d7db7c230fb1107148f3b7d95342851d23569617ff8138200c7ef1d750060c00f WHIRLPOOL fb5798491352eb1682a2bed7a73486df153a2479eef0adadc00726ab958b50606e32d59bfa8ded86c3aa35bac5e120e4251903fcb54326936251f1f3af726f92
25 -DIST librime-1.2.9.tar.gz 5516609 SHA256 d9f0e732b5bf0ee9d8872d00c79322eec7682139a898a65555f794795ac5f410 SHA512 2266ef96ad21ec5981b4ca5371d4e16eefed545ffbde07093ae0d0be070a64f9869baa09b6bdcee2522438e08c72a842a7e0b225a6ca1b661708a80cf3aba83a WHIRLPOOL 032c517008b0f4b4d9ccd9d188d480018fa1116d252786953b136de060534486b73997c6574f3ed040f337ca028b83669b135fd2683e54ddf576039a77db19d7
26 -DIST librime-1.2.tar.gz 5199581 SHA256 fb04a7e0a4eeb2f25031c9a366cedfdab641ab06960f50c42febef5195de9381 SHA512 75a771916a58b1ab678dbf05ac074a651cea077e81d25e4dfd0ea839fabe6cf606135851e72c19d6a8a9c6ed66b89928b90785f282e8786c375bc1d393059227 WHIRLPOOL 44a821fc4e1a562cb01ce7c28efc5a4fd3ca8e9d2d4e55ddda3434b677a17b59d7114a634bfd95ae53072f0e6f2e5f027b2c81ab70fa51b011934c7c39fbcf51
27 +DIST librime-1.2.9.tar.gz 5516609 BLAKE2B 7b05fedb093f7595c7bf7f4893624b35b0cdde1816c9c99f9ed5d408c8fd21d34a361d16b94c43b3e5e23b10945f075711762f08ca30abee35849a332ecfee2d SHA512 2266ef96ad21ec5981b4ca5371d4e16eefed545ffbde07093ae0d0be070a64f9869baa09b6bdcee2522438e08c72a842a7e0b225a6ca1b661708a80cf3aba83a
28
29 diff --git a/app-i18n/librime/files/librime-1.1-gcc53613.patch b/app-i18n/librime/files/librime-1.1-gcc53613.patch
30 deleted file mode 100644
31 index 28dfb1ec36b..00000000000
32 --- a/app-i18n/librime/files/librime-1.1-gcc53613.patch
33 +++ /dev/null
34 @@ -1,367 +0,0 @@
35 -Index: librime-1.1git20140306/include/rime/algo/calculus.h
36 -===================================================================
37 ---- librime-1.1git20140306.orig/include/rime/algo/calculus.h
38 -+++ librime-1.1git20140306/include/rime/algo/calculus.h
39 -@@ -22,11 +22,12 @@ class Calculation {
40 - using Factory = Calculation* (const std::vector<std::string>& args);
41 -
42 - Calculation() = default;
43 -- virtual ~Calculation() = default;
44 -+ virtual ~Calculation();
45 - virtual bool Apply(Spelling* spelling) = 0;
46 - virtual bool addition() { return true; }
47 - virtual bool deletion() { return true; }
48 - };
49 -+inline Calculation::~Calculation() = default;
50 -
51 - class Calculus {
52 - public:
53 -Index: librime-1.1git20140306/include/rime/dict/db.h
54 -===================================================================
55 ---- librime-1.1git20140306.orig/include/rime/dict/db.h
56 -+++ librime-1.1git20140306/include/rime/dict/db.h
57 -@@ -18,7 +18,7 @@ class DbAccessor {
58 - DbAccessor() = default;
59 - explicit DbAccessor(const std::string& prefix)
60 - : prefix_(prefix) {}
61 -- virtual ~DbAccessor() = default;
62 -+ virtual ~DbAccessor();
63 -
64 - virtual bool Reset() = 0;
65 - virtual bool Jump(const std::string &key) = 0;
66 -@@ -30,11 +30,12 @@ class DbAccessor {
67 -
68 - std::string prefix_;
69 - };
70 -+inline DbAccessor::~DbAccessor() = default;
71 -
72 - class Db : public Class<Db, const std::string&> {
73 - public:
74 - explicit Db(const std::string& name);
75 -- virtual ~Db() = default;
76 -+ virtual ~Db();
77 -
78 - bool Exists() const;
79 - bool Remove();
80 -@@ -72,11 +73,12 @@ class Db : public Class<Db, const std::s
81 - bool readonly_ = false;
82 - bool disabled_ = false;
83 - };
84 -+inline Db::~Db() = default;
85 -
86 - class Transactional {
87 - public:
88 - Transactional() = default;
89 -- virtual ~Transactional() = default;
90 -+ virtual ~Transactional();
91 - virtual bool BeginTransaction() { return false; }
92 - virtual bool AbortTransaction() { return false; }
93 - virtual bool CommitTransaction() { return false; }
94 -@@ -84,12 +86,14 @@ class Transactional {
95 - protected:
96 - bool in_transaction_ = false;
97 - };
98 -+inline Transactional::~Transactional() = default;
99 -
100 - class Recoverable {
101 - public:
102 -- virtual ~Recoverable() = default;
103 -+ virtual ~Recoverable();
104 - virtual bool Recover() = 0;
105 - };
106 -+inline Recoverable::~Recoverable() = default;
107 -
108 - } // namespace rime
109 -
110 -Index: librime-1.1git20140306/include/rime/algo/encoder.h
111 -===================================================================
112 ---- librime-1.1git20140306.orig/include/rime/algo/encoder.h
113 -+++ librime-1.1git20140306/include/rime/algo/encoder.h
114 -@@ -24,7 +24,7 @@ class RawCode : public std::vector<std::
115 - class PhraseCollector {
116 - public:
117 - PhraseCollector() = default;
118 -- virtual ~PhraseCollector() = default;
119 -+ virtual ~PhraseCollector();
120 -
121 - virtual void CreateEntry(const std::string& phrase,
122 - const std::string& code_str,
123 -@@ -33,13 +33,14 @@ class PhraseCollector {
124 - virtual bool TranslateWord(const std::string& word,
125 - std::vector<std::string>* code) = 0;
126 - };
127 -+inline PhraseCollector::~PhraseCollector() = default;
128 -
129 - class Config;
130 -
131 - class Encoder {
132 - public:
133 - Encoder(PhraseCollector* collector) : collector_(collector) {}
134 -- virtual ~Encoder() = default;
135 -+ virtual ~Encoder();
136 -
137 - virtual bool LoadSettings(Config* config) {
138 - return false;
139 -@@ -53,7 +54,7 @@ class Encoder {
140 - protected:
141 - PhraseCollector* collector_;
142 - };
143 --
144 -+inline Encoder::~Encoder() = default;
145 - // Aa : code at index 0 for character at index 0
146 - // Az : code at index -1 for character at index 0
147 - // Za : code at index 0 for character at index -1
148 -Index: librime-1.1git20140306/include/rime/candidate.h
149 -===================================================================
150 ---- librime-1.1git20140306.orig/include/rime/candidate.h
151 -+++ librime-1.1git20140306/include/rime/candidate.h
152 -@@ -21,7 +21,7 @@ class Candidate {
153 - size_t end,
154 - double quality = 0.)
155 - : type_(type), start_(start), end_(end), quality_(quality) {}
156 -- virtual ~Candidate() = default;
157 -+ virtual ~Candidate();
158 -
159 - static shared_ptr<Candidate>
160 - GetGenuineCandidate(const shared_ptr<Candidate>& cand);
161 -@@ -53,6 +53,7 @@ class Candidate {
162 - size_t end_ = 0;
163 - double quality_ = 0.;
164 - };
165 -+inline Candidate::~Candidate() = default;
166 -
167 - using CandidateList = std::vector<shared_ptr<Candidate>>;
168 -
169 -Index: librime-1.1git20140306/include/rime/component.h
170 -===================================================================
171 ---- librime-1.1git20140306.orig/include/rime/component.h
172 -+++ librime-1.1git20140306/include/rime/component.h
173 -@@ -16,8 +16,9 @@ namespace rime {
174 - class ComponentBase {
175 - public:
176 - ComponentBase() = default;
177 -- virtual ~ComponentBase() = default;
178 -+ virtual ~ComponentBase();
179 - };
180 -+inline ComponentBase::~ComponentBase() = default;
181 -
182 - template <class T, class Arg>
183 - struct Class {
184 -Index: librime-1.1git20140306/include/rime/config.h
185 -===================================================================
186 ---- librime-1.1git20140306.orig/include/rime/config.h
187 -+++ librime-1.1git20140306/include/rime/config.h
188 -@@ -22,7 +22,7 @@ class ConfigItem {
189 - enum ValueType { kNull, kScalar, kList, kMap };
190 -
191 - ConfigItem() = default; // null
192 -- virtual ~ConfigItem() = default;
193 -+ virtual ~ConfigItem();
194 -
195 - ValueType type() const { return type_; }
196 -
197 -@@ -31,6 +31,7 @@ class ConfigItem {
198 -
199 - ValueType type_ = kNull;
200 - };
201 -+inline ConfigItem::~ConfigItem() = default;
202 -
203 - using ConfigItemPtr = shared_ptr<ConfigItem>;
204 -
205 -Index: librime-1.1git20140306/include/rime/deployer.h
206 -===================================================================
207 ---- librime-1.1git20140306.orig/include/rime/deployer.h
208 -+++ librime-1.1git20140306/include/rime/deployer.h
209 -@@ -25,10 +25,11 @@ using TaskInitializer = boost::any;
210 - class DeploymentTask : public Class<DeploymentTask, TaskInitializer> {
211 - public:
212 - DeploymentTask() = default;
213 -- virtual ~DeploymentTask() = default;
214 -+ virtual ~DeploymentTask();
215 -
216 - virtual bool Run(Deployer* deployer) = 0;
217 - };
218 -+inline DeploymentTask::~DeploymentTask() = default;
219 -
220 - class Deployer : public Messenger {
221 - public:
222 -Index: librime-1.1git20140306/include/rime/filter.h
223 -===================================================================
224 ---- librime-1.1git20140306.orig/include/rime/filter.h
225 -+++ librime-1.1git20140306/include/rime/filter.h
226 -@@ -22,7 +22,7 @@ class Filter : public Class<Filter, cons
227 - public:
228 - explicit Filter(const Ticket& ticket)
229 - : engine_(ticket.engine), name_space_(ticket.name_space) {}
230 -- virtual ~Filter() = default;
231 -+ virtual ~Filter();
232 -
233 - virtual void Apply(CandidateList* recruited,
234 - CandidateList* candidates) = 0;
235 -@@ -35,6 +35,7 @@ class Filter : public Class<Filter, cons
236 - Engine* engine_;
237 - std::string name_space_;
238 - };
239 -+inline Filter::~Filter() = default;
240 -
241 - } // namespace rime
242 -
243 -Index: librime-1.1git20140306/include/rime/formatter.h
244 -===================================================================
245 ---- librime-1.1git20140306.orig/include/rime/formatter.h
246 -+++ librime-1.1git20140306/include/rime/formatter.h
247 -@@ -20,7 +20,7 @@ class Formatter : public Class<Formatter
248 - public:
249 - Formatter(const Ticket& ticket)
250 - : engine_(ticket.engine), name_space_(ticket.name_space) {}
251 -- virtual ~Formatter() = default;
252 -+ virtual ~Formatter();
253 -
254 - virtual void Format(std::string* text) = 0;
255 -
256 -@@ -28,6 +28,7 @@ class Formatter : public Class<Formatter
257 - Engine* engine_;
258 - std::string name_space_;
259 - };
260 -+inline Formatter::~Formatter() = default;
261 -
262 - } // namespace rime
263 -
264 -Index: librime-1.1git20140306/include/rime/lever/custom_settings.h
265 -===================================================================
266 ---- librime-1.1git20140306.orig/include/rime/lever/custom_settings.h
267 -+++ librime-1.1git20140306/include/rime/lever/custom_settings.h
268 -@@ -19,7 +19,7 @@ class CustomSettings {
269 - CustomSettings(Deployer* deployer,
270 - const std::string& config_id,
271 - const std::string& generator_id);
272 -- virtual ~CustomSettings() = default;
273 -+ virtual ~CustomSettings();
274 -
275 - virtual bool Load();
276 - virtual bool Save();
277 -@@ -39,6 +39,7 @@ class CustomSettings {
278 - Config config_;
279 - Config custom_config_;
280 - };
281 -+inline CustomSettings::~CustomSettings() = default;
282 -
283 - } // namespace rime
284 -
285 -Index: librime-1.1git20140306/include/rime/processor.h
286 -===================================================================
287 ---- librime-1.1git20140306.orig/include/rime/processor.h
288 -+++ librime-1.1git20140306/include/rime/processor.h
289 -@@ -25,7 +25,7 @@ class Processor : public Class<Processor
290 - public:
291 - explicit Processor(const Ticket& ticket)
292 - : engine_(ticket.engine), name_space_(ticket.name_space) {}
293 -- virtual ~Processor() = default;
294 -+ virtual ~Processor();
295 -
296 - virtual ProcessResult ProcessKeyEvent(const KeyEvent& key_event) {
297 - return kNoop;
298 -@@ -35,6 +35,7 @@ class Processor : public Class<Processor
299 - Engine* engine_;
300 - std::string name_space_;
301 - };
302 -+inline Processor::~Processor() = default;
303 -
304 - } // namespace rime
305 -
306 -Index: librime-1.1git20140306/include/rime/segmentor.h
307 -===================================================================
308 ---- librime-1.1git20140306.orig/include/rime/segmentor.h
309 -+++ librime-1.1git20140306/include/rime/segmentor.h
310 -@@ -19,7 +19,7 @@ class Segmentor : public Class<Segmentor
311 - public:
312 - explicit Segmentor(const Ticket& ticket)
313 - : engine_(ticket.engine), name_space_(ticket.name_space) {}
314 -- virtual ~Segmentor() = default;
315 -+ virtual ~Segmentor();
316 -
317 - virtual bool Proceed(Segmentation* segmentation) = 0;
318 -
319 -@@ -27,6 +27,7 @@ class Segmentor : public Class<Segmentor
320 - Engine* engine_;
321 - std::string name_space_;
322 - };
323 -+inline Segmentor::~Segmentor() = default;
324 -
325 - } // namespace rime
326 -
327 -Index: librime-1.1git20140306/include/rime/translation.h
328 -===================================================================
329 ---- librime-1.1git20140306.orig/include/rime/translation.h
330 -+++ librime-1.1git20140306/include/rime/translation.h
331 -@@ -19,7 +19,7 @@ namespace rime {
332 - class Translation {
333 - public:
334 - Translation() = default;
335 -- virtual ~Translation() = default;
336 -+ virtual ~Translation();
337 -
338 - // A translation may contain multiple results, looks
339 - // something like a generator of candidates.
340 -@@ -40,6 +40,7 @@ class Translation {
341 - private:
342 - bool exhausted_ = false;
343 - };
344 -+inline Translation::~Translation() = default;
345 -
346 - class UniqueTranslation : public Translation {
347 - public:
348 -Index: librime-1.1git20140306/include/rime/translator.h
349 -===================================================================
350 ---- librime-1.1git20140306.orig/include/rime/translator.h
351 -+++ librime-1.1git20140306/include/rime/translator.h
352 -@@ -23,7 +23,7 @@ class Translator : public Class<Translat
353 - public:
354 - explicit Translator(const Ticket& ticket)
355 - : engine_(ticket.engine), name_space_(ticket.name_space) {}
356 -- virtual ~Translator() = default;
357 -+ virtual ~Translator();
358 -
359 - virtual shared_ptr<Translation> Query(const std::string& input,
360 - const Segment& segment,
361 -@@ -33,6 +33,7 @@ class Translator : public Class<Translat
362 - Engine* engine_;
363 - std::string name_space_;
364 - };
365 -+inline Translator::~Translator() = default;
366 -
367 - } // namespace rime
368 -
369 -Index: librime-1.1git20140306/include/rime/dict/db_utils.h
370 -===================================================================
371 ---- librime-1.1git20140306.orig/include/rime/dict/db_utils.h
372 -+++ librime-1.1git20140306/include/rime/dict/db_utils.h
373 -@@ -14,17 +14,18 @@ namespace rime {
374 -
375 - class Sink {
376 - public:
377 -- virtual ~Sink() = default;
378 -+ virtual ~Sink();
379 - virtual bool MetaPut(const std::string& key, const std::string& value) = 0;
380 - virtual bool Put(const std::string& key, const std::string& value) = 0;
381 -
382 - template <class SourceType>
383 - int operator<< (SourceType& source);
384 - };
385 -+inline Sink::~Sink() = default;
386 -
387 - class Source {
388 - public:
389 -- virtual ~Source() = default;
390 -+ virtual ~Source();
391 - virtual bool MetaGet(std::string* key, std::string* value) = 0;
392 - virtual bool Get(std::string* key, std::string* value) = 0;
393 -
394 -@@ -33,6 +34,7 @@ class Source {
395 -
396 - int Dump(Sink* sink);
397 - };
398 -+inline Source::~Source() = default;
399 -
400 - template <class SourceType>
401 - int Sink::operator<< (SourceType& source) {
402
403 diff --git a/app-i18n/librime/files/librime-1.2-BOOST_NO_SCOPED_ENUMS.patch b/app-i18n/librime/files/librime-1.2-BOOST_NO_SCOPED_ENUMS.patch
404 deleted file mode 100644
405 index 71c1e9a9621..00000000000
406 --- a/app-i18n/librime/files/librime-1.2-BOOST_NO_SCOPED_ENUMS.patch
407 +++ /dev/null
408 @@ -1,224 +0,0 @@
409 -diff --git a/include/rime/lever/customizer.h b/include/rime/lever/customizer.h
410 -index 8418410..f6811d9 100644
411 ---- a/include/rime/lever/customizer.h
412 -+++ b/include/rime/lever/customizer.h
413 -@@ -8,6 +8,9 @@
414 - #define RIME_CUSTOMIZER_H_
415 -
416 - #include <string>
417 -+#ifndef BOOST_NO_SCOPED_ENUMS
418 -+#define BOOST_NO_SCOPED_ENUMS
419 -+#endif // BOOST_NO_SCOPED_ENUMS
420 - #include <boost/filesystem.hpp>
421 -
422 - namespace rime {
423 -diff --git a/include/rime/lever/switcher_settings.h b/include/rime/lever/switcher_settings.h
424 -index 8263e14..f7c9d1e 100644
425 ---- a/include/rime/lever/switcher_settings.h
426 -+++ b/include/rime/lever/switcher_settings.h
427 -@@ -9,6 +9,9 @@
428 -
429 - #include <string>
430 - #include <vector>
431 -+#ifndef BOOST_NO_SCOPED_ENUMS
432 -+#define BOOST_NO_SCOPED_ENUMS
433 -+#endif // BOOST_NO_SCOPED_ENUMS
434 - #include <boost/filesystem.hpp>
435 - #include "custom_settings.h"
436 -
437 -diff --git a/include/rime/lever/user_dict_manager.h b/include/rime/lever/user_dict_manager.h
438 -index e971ad8..e765678 100644
439 ---- a/include/rime/lever/user_dict_manager.h
440 -+++ b/include/rime/lever/user_dict_manager.h
441 -@@ -9,6 +9,9 @@
442 -
443 - #include <string>
444 - #include <vector>
445 -+#ifndef BOOST_NO_SCOPED_ENUMS
446 -+#define BOOST_NO_SCOPED_ENUMS
447 -+#endif // BOOST_NO_SCOPED_ENUMS
448 - #include <boost/filesystem.hpp>
449 -
450 - namespace rime {
451 -diff --git a/src/core_module.cc b/src/core_module.cc
452 -index 785c22f..4d078ae 100644
453 ---- a/src/core_module.cc
454 -+++ b/src/core_module.cc
455 -@@ -5,6 +5,9 @@
456 - // 2013-10-17 GONG Chen <chen.sst@×××××.com>
457 - //
458 -
459 -+#ifndef BOOST_NO_SCOPED_ENUMS
460 -+#define BOOST_NO_SCOPED_ENUMS
461 -+#endif // BOOST_NO_SCOPED_ENUMS
462 - #include <boost/filesystem.hpp>
463 - #include <rime_api.h>
464 - #include <rime/common.h>
465 -diff --git a/src/dict/db.cc b/src/dict/db.cc
466 -index b8c46a6..eadacb9 100644
467 ---- a/src/dict/db.cc
468 -+++ b/src/dict/db.cc
469 -@@ -5,6 +5,9 @@
470 - // 2011-11-02 GONG Chen <chen.sst@×××××.com>
471 - //
472 - #include <boost/algorithm/string.hpp>
473 -+#ifndef BOOST_NO_SCOPED_ENUMS
474 -+#define BOOST_NO_SCOPED_ENUMS
475 -+#endif // BOOST_NO_SCOPED_ENUMS
476 - #include <boost/filesystem.hpp>
477 - #include <rime_version.h>
478 - #include <rime/common.h>
479 -diff --git a/src/dict/dict_compiler.cc b/src/dict/dict_compiler.cc
480 -index 2bd9aa4..f383f7e 100644
481 ---- a/src/dict/dict_compiler.cc
482 -+++ b/src/dict/dict_compiler.cc
483 -@@ -7,6 +7,9 @@
484 - #include <fstream>
485 - #include <map>
486 - #include <set>
487 -+#ifndef BOOST_NO_SCOPED_ENUMS
488 -+#define BOOST_NO_SCOPED_ENUMS
489 -+#endif // BOOST_NO_SCOPED_ENUMS
490 - #include <boost/filesystem.hpp>
491 - #include <rime/algo/algebra.h>
492 - #include <rime/algo/utilities.h>
493 -diff --git a/src/dict/dictionary.cc b/src/dict/dictionary.cc
494 -index 66306b5..b0d755d 100644
495 ---- a/src/dict/dictionary.cc
496 -+++ b/src/dict/dictionary.cc
497 -@@ -5,6 +5,9 @@
498 - // 2011-07-05 GONG Chen <chen.sst@×××××.com>
499 - //
500 - #include <utility>
501 -+#ifndef BOOST_NO_SCOPED_ENUMS
502 -+#define BOOST_NO_SCOPED_ENUMS
503 -+#endif // BOOST_NO_SCOPED_ENUMS
504 - #include <boost/filesystem.hpp>
505 - #include <rime/common.h>
506 - #include <rime/schema.h>
507 -diff --git a/src/dict/mapped_file.cc b/src/dict/mapped_file.cc
508 -index 6fd21a6..cd46994 100644
509 ---- a/src/dict/mapped_file.cc
510 -+++ b/src/dict/mapped_file.cc
511 -@@ -7,6 +7,9 @@
512 - // 2011-06-30 GONG Chen <chen.sst@×××××.com>
513 - //
514 - #include <fstream>
515 -+#ifndef BOOST_NO_SCOPED_ENUMS
516 -+#define BOOST_NO_SCOPED_ENUMS
517 -+#endif // BOOST_NO_SCOPED_ENUMS
518 - #include <boost/filesystem.hpp>
519 - #include <boost/interprocess/file_mapping.hpp>
520 - #include <boost/interprocess/mapped_region.hpp>
521 -diff --git a/src/dict/preset_vocabulary.cc b/src/dict/preset_vocabulary.cc
522 -index f74ea58..136f9fa 100644
523 ---- a/src/dict/preset_vocabulary.cc
524 -+++ b/src/dict/preset_vocabulary.cc
525 -@@ -4,6 +4,9 @@
526 - //
527 - // 2011-11-27 GONG Chen <chen.sst@×××××.com>
528 - //
529 -+#ifndef BOOST_NO_SCOPED_ENUMS
530 -+#define BOOST_NO_SCOPED_ENUMS
531 -+#endif // BOOST_NO_SCOPED_ENUMS
532 - #include <boost/filesystem.hpp>
533 - #include <boost/lexical_cast.hpp>
534 - #include <utf8.h>
535 -diff --git a/src/dict/tree_db.cc b/src/dict/tree_db.cc
536 -index 4b6ed2e..542fe83 100644
537 ---- a/src/dict/tree_db.cc
538 -+++ b/src/dict/tree_db.cc
539 -@@ -4,6 +4,9 @@
540 - //
541 - // 2011-11-02 GONG Chen <chen.sst@×××××.com>
542 - //
543 -+#ifndef BOOST_NO_SCOPED_ENUMS
544 -+#define BOOST_NO_SCOPED_ENUMS
545 -+#endif // BOOST_NO_SCOPED_ENUMS
546 - #include <boost/filesystem.hpp>
547 - #if defined(_MSC_VER)
548 - #pragma warning(disable: 4244)
549 -diff --git a/src/gear/simplifier.cc b/src/gear/simplifier.cc
550 -index 6bb8524..d02b979 100644
551 ---- a/src/gear/simplifier.cc
552 -+++ b/src/gear/simplifier.cc
553 -@@ -7,6 +7,9 @@
554 - #include <string>
555 - #include <vector>
556 - #include <boost/algorithm/string.hpp>
557 -+#ifndef BOOST_NO_SCOPED_ENUMS
558 -+#define BOOST_NO_SCOPED_ENUMS
559 -+#endif // BOOST_NO_SCOPED_ENUMS
560 - #include <boost/filesystem.hpp>
561 - #include <opencc/opencc.h>
562 - #include <stdint.h>
563 -diff --git a/src/lever/custom_settings.cc b/src/lever/custom_settings.cc
564 -index 0153830..0713cbc 100644
565 ---- a/src/lever/custom_settings.cc
566 -+++ b/src/lever/custom_settings.cc
567 -@@ -5,6 +5,9 @@
568 - // 2012-02-26 GONG Chen <chen.sst@×××××.com>
569 - //
570 - #include <boost/algorithm/string.hpp>
571 -+#ifndef BOOST_NO_SCOPED_ENUMS
572 -+#define BOOST_NO_SCOPED_ENUMS
573 -+#endif // BOOST_NO_SCOPED_ENUMS
574 - #include <boost/filesystem.hpp>
575 - #include <rime/config.h>
576 - #include <rime/deployer.h>
577 -diff --git a/src/lever/deployment_tasks.cc b/src/lever/deployment_tasks.cc
578 -index 495066f..589c883 100644
579 ---- a/src/lever/deployment_tasks.cc
580 -+++ b/src/lever/deployment_tasks.cc
581 -@@ -5,6 +5,9 @@
582 - // 2011-12-10 GONG Chen <chen.sst@×××××.com>
583 - //
584 - #include <boost/algorithm/string.hpp>
585 -+#ifndef BOOST_NO_SCOPED_ENUMS
586 -+#define BOOST_NO_SCOPED_ENUMS
587 -+#endif // BOOST_NO_SCOPED_ENUMS
588 - #include <boost/filesystem.hpp>
589 - #include <boost/uuid/random_generator.hpp>
590 - #include <boost/uuid/uuid.hpp>
591 -diff --git a/src/lever/switcher_settings.cc b/src/lever/switcher_settings.cc
592 -index 4ee7d57..bb4dbd0 100644
593 ---- a/src/lever/switcher_settings.cc
594 -+++ b/src/lever/switcher_settings.cc
595 -@@ -6,6 +6,9 @@
596 - //
597 - #include <utility>
598 - #include <boost/algorithm/string.hpp>
599 -+#ifndef BOOST_NO_SCOPED_ENUMS
600 -+#define BOOST_NO_SCOPED_ENUMS
601 -+#endif // BOOST_NO_SCOPED_ENUMS
602 - #include <boost/filesystem.hpp>
603 - #include <rime/config.h>
604 - #include <rime/deployer.h>
605 -diff --git a/src/lever/user_dict_manager.cc b/src/lever/user_dict_manager.cc
606 -index 601cfc2..e087739 100644
607 ---- a/src/lever/user_dict_manager.cc
608 -+++ b/src/lever/user_dict_manager.cc
609 -@@ -6,6 +6,9 @@
610 - //
611 - #include <fstream>
612 - #include <boost/algorithm/string.hpp>
613 -+#ifndef BOOST_NO_SCOPED_ENUMS
614 -+#define BOOST_NO_SCOPED_ENUMS
615 -+#endif // BOOST_NO_SCOPED_ENUMS
616 - #include <boost/filesystem.hpp>
617 - #include <boost/scope_exit.hpp>
618 - #include <rime/common.h>
619 -diff --git a/src/lever/userdb_recovery_task.cc b/src/lever/userdb_recovery_task.cc
620 -index 818e2fd..2a25efd 100644
621 ---- a/src/lever/userdb_recovery_task.cc
622 -+++ b/src/lever/userdb_recovery_task.cc
623 -@@ -5,6 +5,9 @@
624 - // 2013-04-22 GONG Chen <chen.sst@×××××.com>
625 - //
626 - #include <boost/algorithm/string.hpp>
627 -+#ifndef BOOST_NO_SCOPED_ENUMS
628 -+#define BOOST_NO_SCOPED_ENUMS
629 -+#endif // BOOST_NO_SCOPED_ENUMS
630 - #include <boost/filesystem.hpp>
631 - #include <boost/scope_exit.hpp>
632 - #include <rime/deployer.h>
633
634 diff --git a/app-i18n/librime/files/librime-dictionary.patch b/app-i18n/librime/files/librime-dictionary.patch
635 deleted file mode 100644
636 index b8ce53f3992..00000000000
637 --- a/app-i18n/librime/files/librime-dictionary.patch
638 +++ /dev/null
639 @@ -1,13 +0,0 @@
640 -diff --git a/data/test/dictionary_test.dict.yaml b/data/test/dictionary_test.dict.yaml
641 -index c0b6d65..7e362b1 100644
642 ---- a/data/test/dictionary_test.dict.yaml
643 -+++ b/data/test/dictionary_test.dict.yaml
644 -@@ -5,7 +5,7 @@
645 - # http://android.git.kernel.org/?p=platform/packages/inputmethods/PinyinIME.git
646 -
647 - ---
648 --name: luna_pinyin
649 -+name: dictionary_test
650 - version: "0.1"
651 - sort: by_weight # by_weight / original
652 - ...
653
654 diff --git a/app-i18n/librime/files/librime-test.patch b/app-i18n/librime/files/librime-test.patch
655 deleted file mode 100644
656 index b890cabfbb3..00000000000
657 --- a/app-i18n/librime/files/librime-test.patch
658 +++ /dev/null
659 @@ -1,42 +0,0 @@
660 -diff --git a/CMakeLists.txt b/CMakeLists.txt
661 -index 82cd141..bdb5169 100644
662 ---- a/CMakeLists.txt
663 -+++ b/CMakeLists.txt
664 -@@ -10,6 +10,7 @@ set(LIBRIME_SOVERSION 0)
665 - option(BUILD_SHARED_LIBS "Build Rime as shared library" ON)
666 - option(BUILD_STATIC "Build Rime using static libraries" OFF)
667 - option(BUILD_DATA "Build data for Rime" OFF)
668 -+option(BUILD_TEST "Build gtest framwork for Rime" OFF)
669 -
670 - SET(RIME_DATA_DIR "/share/rime-data" CACHE STRING "Target directory for Rime data")
671 -
672 -@@ -47,10 +48,14 @@ if(Glog_FOUND)
673 - endif(Glog_FOUND)
674 -
675 - find_package(Threads)
676 --find_package(GTest)
677 -+
678 -+if(BUILD_TEST)
679 -+ find_package(GTest REQUIRED)
680 - if(GTEST_FOUND)
681 -+ enable_testing()
682 - include_directories(${GTEST_INCLUDE_DIRS})
683 - endif(GTEST_FOUND)
684 -+endif(BUILD_TEST)
685 -
686 - find_package(YamlCpp REQUIRED)
687 - if(YamlCpp_FOUND)
688 -diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
689 -index 05db7bd..205b1c9 100644
690 ---- a/test/CMakeLists.txt
691 -+++ b/test/CMakeLists.txt
692 -@@ -19,8 +19,5 @@ file(COPY ${PROJECT_SOURCE_DIR}/data/test/dictionary_test.dict.yaml
693 -
694 - if(NOT MSVC AND NOT XCODE_VERSION)
695 - set(RIME_TEST_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/rime_test${EXT})
696 --add_custom_command(TARGET rime_test
697 -- POST_BUILD
698 -- COMMAND ${RIME_TEST_EXECUTABLE}
699 -- WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
700 -+add_test(rime_test ${RIME_TEST_EXECUTABLE})
701 - endif(NOT MSVC AND NOT XCODE_VERSION)
702
703 diff --git a/app-i18n/librime/librime-0.9.9.ebuild b/app-i18n/librime/librime-0.9.9.ebuild
704 deleted file mode 100644
705 index c1693bf1f7e..00000000000
706 --- a/app-i18n/librime/librime-0.9.9.ebuild
707 +++ /dev/null
708 @@ -1,42 +0,0 @@
709 -# Copyright 1999-2017 Gentoo Foundation
710 -# Distributed under the terms of the GNU General Public License v2
711 -
712 -EAPI=5
713 -
714 -inherit cmake-utils multilib
715 -
716 -DESCRIPTION="Rime Input Method Engine library"
717 -HOMEPAGE="http://rime.im/"
718 -SRC_URI="https://rimeime.googlecode.com/files/${P}.tar.gz"
719 -
720 -LICENSE="GPL-3"
721 -SLOT="0"
722 -KEYWORDS="amd64 ~ppc ~ppc64 x86"
723 -IUSE="static-libs test"
724 -
725 -RDEPEND="app-i18n/opencc:=
726 - dev-cpp/glog
727 - >=dev-cpp/yaml-cpp-0.5.0
728 - dev-db/kyotocabinet
729 - >=dev-libs/boost-1.46.0[threads(+)]
730 - sys-libs/zlib
731 - x11-proto/xproto"
732 -DEPEND="${RDEPEND}
733 - test? ( dev-cpp/gtest )"
734 -
735 -S="${WORKDIR}/${PN}"
736 -
737 -PATCHES=(
738 - "${FILESDIR}/${PN}-test.patch"
739 - "${FILESDIR}/${PN}-dictionary.patch"
740 -)
741 -
742 -src_configure() {
743 - local mycmakeargs=(
744 - $(cmake-utils_use_build static-libs STATIC)
745 - -DBUILD_DATA=OFF
746 - $(cmake-utils_use_build test TEST)
747 - -DLIB_INSTALL_DIR=/usr/$(get_libdir)
748 - )
749 - cmake-utils_src_configure
750 -}
751
752 diff --git a/app-i18n/librime/librime-1.2.ebuild b/app-i18n/librime/librime-1.2.ebuild
753 deleted file mode 100644
754 index e2ccff847d1..00000000000
755 --- a/app-i18n/librime/librime-1.2.ebuild
756 +++ /dev/null
757 @@ -1,45 +0,0 @@
758 -# Copyright 1999-2017 Gentoo Foundation
759 -# Distributed under the terms of the GNU General Public License v2
760 -
761 -EAPI=5
762 -
763 -inherit cmake-utils multilib versionator toolchain-funcs
764 -
765 -DESCRIPTION="Rime Input Method Engine library"
766 -HOMEPAGE="http://rime.im/"
767 -SRC_URI="http://dl.bintray.com/lotem/rime/${P}.tar.gz"
768 -
769 -LICENSE="GPL-3"
770 -SLOT="0/1"
771 -KEYWORDS="amd64 ~ppc ppc64 ~x86"
772 -IUSE="static-libs test"
773 -
774 -RDEPEND="app-i18n/opencc:=
775 - dev-cpp/glog
776 - >=dev-cpp/yaml-cpp-0.5.0
777 - dev-db/kyotocabinet
778 - dev-libs/marisa
779 - >=dev-libs/boost-1.46.0[threads(+)]
780 - sys-libs/zlib
781 - x11-proto/xproto"
782 -DEPEND="${RDEPEND}
783 - test? ( dev-cpp/gtest )"
784 -
785 -S="${WORKDIR}/${PN}"
786 -
787 -#bug 496080, backport patch for <gcc-4.8
788 -PATCHES=(
789 - "${FILESDIR}/${PN}-1.2-BOOST_NO_SCOPED_ENUMS.patch"
790 - "${FILESDIR}/${PN}-1.1-gcc53613.patch"
791 -)
792 -
793 -src_configure() {
794 - local mycmakeargs=(
795 - $(cmake-utils_use_build static-libs STATIC)
796 - -DBUILD_DATA=OFF
797 - -DBUILD_SEPARATE_LIBS=OFF
798 - $(cmake-utils_use_build test TEST)
799 - -DLIB_INSTALL_DIR=/usr/$(get_libdir)
800 - )
801 - cmake-utils_src_configure
802 -}