1 |
scarabeus 13/12/27 15:33:33 |
2 |
|
3 |
Added: libetonyek-0.0.3-comma.patch |
4 |
libetonyek-0.0.3-lexical_cast.patch |
5 |
Log: |
6 |
Fix boost build wrt bug#496146 |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 app-text/libetonyek/files/libetonyek-0.0.3-comma.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/libetonyek/files/libetonyek-0.0.3-comma.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/libetonyek/files/libetonyek-0.0.3-comma.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: libetonyek-0.0.3-comma.patch |
17 |
=================================================================== |
18 |
--- libetonyek-0.0.3/src/lib/KEYEnum.h 2013-12-06 09:40:36.000000000 +0100 |
19 |
+++ libetonyek-0.0.3/src/lib/KEYEnum.h 2013-12-15 06:21:26.372083749 +0100 |
20 |
@@ -33,7 +33,7 @@ |
21 |
KEY_CAPITALIZATION_NONE, |
22 |
KEY_CAPITALIZATION_ALL_CAPS, |
23 |
KEY_CAPITALIZATION_SMALL_CAPS, |
24 |
- KEY_CAPITALIZATION_TITLE, |
25 |
+ KEY_CAPITALIZATION_TITLE |
26 |
}; |
27 |
|
28 |
} |
29 |
|
30 |
|
31 |
|
32 |
1.1 app-text/libetonyek/files/libetonyek-0.0.3-lexical_cast.patch |
33 |
|
34 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/libetonyek/files/libetonyek-0.0.3-lexical_cast.patch?rev=1.1&view=markup |
35 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/libetonyek/files/libetonyek-0.0.3-lexical_cast.patch?rev=1.1&content-type=text/plain |
36 |
|
37 |
Index: libetonyek-0.0.3-lexical_cast.patch |
38 |
=================================================================== |
39 |
--- libetonyek-0.0.3/src/lib/KEY2ParserUtils.cpp 2013-12-01 21:44:51.000000000 +0100 |
40 |
+++ libetonyek-0.0.3/src/lib/KEY2ParserUtils.cpp 2013-12-15 06:53:07.474721349 +0100 |
41 |
@@ -125,7 +125,7 @@ |
42 |
return KEYSize(size.second, size.first); |
43 |
} |
44 |
|
45 |
-bool KEY2ParserUtils::bool_cast(const char *const value) |
46 |
+bool KEY2ParserUtils::bool_cast(const char *value) |
47 |
{ |
48 |
KEY2Tokenizer tok; |
49 |
switch (tok(value)) |
50 |
@@ -142,6 +142,16 @@ |
51 |
return false; |
52 |
} |
53 |
|
54 |
+double KEY2ParserUtils::double_cast(const char *value) |
55 |
+{ |
56 |
+ return lexical_cast<double, const char *>(value); |
57 |
+} |
58 |
+ |
59 |
+int KEY2ParserUtils::int_cast(const char *value) |
60 |
+{ |
61 |
+ return lexical_cast<int, const char *>(value); |
62 |
+} |
63 |
+ |
64 |
double KEY2ParserUtils::deg2rad(double value) |
65 |
{ |
66 |
// normalize range |
67 |
--- libetonyek-0.0.3/src/lib/KEY2ParserUtils.h 2013-10-30 22:04:38.000000000 +0100 |
68 |
+++ libetonyek-0.0.3/src/lib/KEY2ParserUtils.h 2013-12-15 06:50:40.296884951 +0100 |
69 |
@@ -81,6 +81,8 @@ |
70 |
* @returns the boolean value of the string |
71 |
*/ |
72 |
static bool bool_cast(const char *value); |
73 |
+ static double double_cast(const char *value); |
74 |
+ static int int_cast(const char *value); |
75 |
|
76 |
static double deg2rad(double value); |
77 |
|
78 |
--- libetonyek-0.0.3/src/lib/KEY2StyleParser.cpp 2013-12-06 10:36:13.000000000 +0100 |
79 |
+++ libetonyek-0.0.3/src/lib/KEY2StyleParser.cpp 2013-12-15 06:53:45.353451061 +0100 |
80 |
@@ -62,12 +62,12 @@ |
81 |
|
82 |
optional<double> readDouble(const KEYXMLReader &reader) |
83 |
{ |
84 |
- return readNumber<double>(reader, KEY2Token::f, &lexical_cast<double, const char *>); |
85 |
+ return readNumber<double>(reader, KEY2Token::f, &KEY2ParserUtils::double_cast); |
86 |
} |
87 |
|
88 |
optional<int> readInt(const KEYXMLReader &reader) |
89 |
{ |
90 |
- return readNumber<int>(reader, KEY2Token::i, &lexical_cast<int, const char *>); |
91 |
+ return readNumber<int>(reader, KEY2Token::i, &KEY2ParserUtils::double_cast); |
92 |
} |
93 |
|
94 |
optional<KEYColor> readColor(const KEYXMLReader &reader) |