summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-text/libetonyek/files
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-text/libetonyek/files')
-rw-r--r--app-text/libetonyek/files/libetonyek-0.0.3-comma.patch11
-rw-r--r--app-text/libetonyek/files/libetonyek-0.0.3-lexical_cast.patch56
2 files changed, 67 insertions, 0 deletions
diff --git a/app-text/libetonyek/files/libetonyek-0.0.3-comma.patch b/app-text/libetonyek/files/libetonyek-0.0.3-comma.patch
new file mode 100644
index 000000000000..1504acc4c115
--- /dev/null
+++ b/app-text/libetonyek/files/libetonyek-0.0.3-comma.patch
@@ -0,0 +1,11 @@
+--- libetonyek-0.0.3/src/lib/KEYEnum.h 2013-12-06 09:40:36.000000000 +0100
++++ libetonyek-0.0.3/src/lib/KEYEnum.h 2013-12-15 06:21:26.372083749 +0100
+@@ -33,7 +33,7 @@
+ KEY_CAPITALIZATION_NONE,
+ KEY_CAPITALIZATION_ALL_CAPS,
+ KEY_CAPITALIZATION_SMALL_CAPS,
+- KEY_CAPITALIZATION_TITLE,
++ KEY_CAPITALIZATION_TITLE
+ };
+
+ }
diff --git a/app-text/libetonyek/files/libetonyek-0.0.3-lexical_cast.patch b/app-text/libetonyek/files/libetonyek-0.0.3-lexical_cast.patch
new file mode 100644
index 000000000000..19a5aead224d
--- /dev/null
+++ b/app-text/libetonyek/files/libetonyek-0.0.3-lexical_cast.patch
@@ -0,0 +1,56 @@
+--- libetonyek-0.0.3/src/lib/KEY2ParserUtils.cpp 2013-12-01 21:44:51.000000000 +0100
++++ libetonyek-0.0.3/src/lib/KEY2ParserUtils.cpp 2013-12-15 06:53:07.474721349 +0100
+@@ -125,7 +125,7 @@
+ return KEYSize(size.second, size.first);
+ }
+
+-bool KEY2ParserUtils::bool_cast(const char *const value)
++bool KEY2ParserUtils::bool_cast(const char *value)
+ {
+ KEY2Tokenizer tok;
+ switch (tok(value))
+@@ -142,6 +142,16 @@
+ return false;
+ }
+
++double KEY2ParserUtils::double_cast(const char *value)
++{
++ return lexical_cast<double, const char *>(value);
++}
++
++int KEY2ParserUtils::int_cast(const char *value)
++{
++ return lexical_cast<int, const char *>(value);
++}
++
+ double KEY2ParserUtils::deg2rad(double value)
+ {
+ // normalize range
+--- libetonyek-0.0.3/src/lib/KEY2ParserUtils.h 2013-10-30 22:04:38.000000000 +0100
++++ libetonyek-0.0.3/src/lib/KEY2ParserUtils.h 2013-12-15 06:50:40.296884951 +0100
+@@ -81,6 +81,8 @@
+ * @returns the boolean value of the string
+ */
+ static bool bool_cast(const char *value);
++ static double double_cast(const char *value);
++ static int int_cast(const char *value);
+
+ static double deg2rad(double value);
+
+--- libetonyek-0.0.3/src/lib/KEY2StyleParser.cpp 2013-12-06 10:36:13.000000000 +0100
++++ libetonyek-0.0.3/src/lib/KEY2StyleParser.cpp 2013-12-15 06:53:45.353451061 +0100
+@@ -62,12 +62,12 @@
+
+ optional<double> readDouble(const KEYXMLReader &reader)
+ {
+- return readNumber<double>(reader, KEY2Token::f, &lexical_cast<double, const char *>);
++ return readNumber<double>(reader, KEY2Token::f, &KEY2ParserUtils::double_cast);
+ }
+
+ optional<int> readInt(const KEYXMLReader &reader)
+ {
+- return readNumber<int>(reader, KEY2Token::i, &lexical_cast<int, const char *>);
++ return readNumber<int>(reader, KEY2Token::i, &KEY2ParserUtils::double_cast);
+ }
+
+ optional<KEYColor> readColor(const KEYXMLReader &reader)