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: dev-cpp/htmlcxx/files/, dev-cpp/htmlcxx/
Date: Sun, 13 Jan 2019 22:25:27
Message-Id: 1547418270.c2ac95a99799e9fb95769e79811f3bded620fa9c.chewi@gentoo
1 commit: c2ac95a99799e9fb95769e79811f3bded620fa9c
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 13 22:24:30 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 13 22:24:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2ac95a9
7
8 dev-cpp/htmlcxx: Drop old 0.86
9
10 Package-Manager: Portage-2.3.55, Repoman-2.3.12
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 dev-cpp/htmlcxx/Manifest | 1 -
14 ...rstream-is-deprecated-use-sstream-instead.patch | 56 ------------------
15 ..._syntax.y-for-use-with-less-ancient-Bison.patch | 67 ----------------------
16 dev-cpp/htmlcxx/htmlcxx-0.86.ebuild | 35 -----------
17 4 files changed, 159 deletions(-)
18
19 diff --git a/dev-cpp/htmlcxx/Manifest b/dev-cpp/htmlcxx/Manifest
20 index d686b34f837..6a7558d8de9 100644
21 --- a/dev-cpp/htmlcxx/Manifest
22 +++ b/dev-cpp/htmlcxx/Manifest
23 @@ -1,2 +1 @@
24 -DIST htmlcxx-0.86.tar.gz 469416 BLAKE2B 6edd4b7755db6d8911bc4ee6b1b61792b08d6a381971162a77cd3a6c7cb6cdb06e5a4a77b0a815589edab26aec04490a6b6c9edd80199f01304a506c707688b6 SHA512 dcff9c9946e1c3429af2230997c965b89a28a8ee219d8d594800106ff578bb21154e4680c38a09fb5f96cd4051c89cbf16f2151d30be93d4e3d291ff421aafcb
25 DIST htmlcxx-0.87.tar.gz 477083 BLAKE2B 94977e758b4f2643f39a464094e315c11b78bc957a3eb054e6a7608828345704a82c3ca36c5ac2855054e7570daebb80d8a63639f3a7197344d25f2d16830702 SHA512 391b94c7ea2d17a04d46ac80f8146e6c2b14b289379c40f3d432ed9c0f36222ced6384d725cdecfc352e28c30f11976249b6a3f7133bbee3161a7883d197fca7
26
27 diff --git a/dev-cpp/htmlcxx/files/0001-strstream-is-deprecated-use-sstream-instead.patch b/dev-cpp/htmlcxx/files/0001-strstream-is-deprecated-use-sstream-instead.patch
28 deleted file mode 100644
29 index 822c1c8e41a..00000000000
30 --- a/dev-cpp/htmlcxx/files/0001-strstream-is-deprecated-use-sstream-instead.patch
31 +++ /dev/null
32 @@ -1,56 +0,0 @@
33 -From 04fbe8cb7d933699f2a8ac06d89b205d933070c1 Mon Sep 17 00:00:00 2001
34 -From: James Le Cuirot <chewi@g.o>
35 -Date: Wed, 14 Sep 2016 22:56:14 +0100
36 -Subject: [PATCH 1/3] strstream is deprecated, use sstream instead
37 -
38 ----
39 - html/Uri.cc | 2 +-
40 - html/utils.cc | 5 ++---
41 - 2 files changed, 3 insertions(+), 4 deletions(-)
42 -
43 -diff --git a/html/Uri.cc b/html/Uri.cc
44 -index 4ddb3dd..034d29a 100644
45 ---- a/html/Uri.cc
46 -+++ b/html/Uri.cc
47 -@@ -1,7 +1,7 @@
48 - #include "Uri.h"
49 -
50 - #include "wincstring.h"
51 --#include <strstream>
52 -+#include <sstream>
53 - #include <cstdlib>
54 - #include <cassert>
55 - #include "tld.h"
56 -diff --git a/html/utils.cc b/html/utils.cc
57 -index 37ee889..e56cbaf 100644
58 ---- a/html/utils.cc
59 -+++ b/html/utils.cc
60 -@@ -1,7 +1,7 @@
61 - #include <algorithm>
62 - #include <cctype>
63 - #include <cstring>
64 --#include <strstream>
65 -+#include <sstream>
66 - #include "Uri.h"
67 -
68 - #include "utils.h"
69 -@@ -509,7 +509,7 @@ namespace htmlcxx {
70 - string __serialize_gml(const tree<HTML::Node> &tr, tree<HTML::Node>::iterator it, tree<HTML::Node>::iterator end, unsigned int parent_id, unsigned int& label) {
71 -
72 - using namespace std;
73 -- ostrstream ret;
74 -+ ostringstream ret;
75 - tree<HTML::Node>::sibling_iterator sib = tr.begin(it);
76 - while(sib != tr.end(it)) {
77 - ret << "node [ id " << ++label << "\n label \"" << label << "\"\n]\n";
78 -@@ -519,7 +519,6 @@ namespace htmlcxx {
79 - }
80 - ret << ends;
81 - string str = ret.str();
82 -- ret.freeze(0);
83 - return str;
84 - }
85 -
86 ---
87 -2.8.2
88 -
89
90 diff --git a/dev-cpp/htmlcxx/files/0002-Update-css_syntax.y-for-use-with-less-ancient-Bison.patch b/dev-cpp/htmlcxx/files/0002-Update-css_syntax.y-for-use-with-less-ancient-Bison.patch
91 deleted file mode 100644
92 index c387deeca7f..00000000000
93 --- a/dev-cpp/htmlcxx/files/0002-Update-css_syntax.y-for-use-with-less-ancient-Bison.patch
94 +++ /dev/null
95 @@ -1,67 +0,0 @@
96 -From 807081583ea58b07a5ff2e0659f4173492befb8a Mon Sep 17 00:00:00 2001
97 -From: James Le Cuirot <chewi@g.o>
98 -Date: Wed, 14 Sep 2016 22:56:35 +0100
99 -Subject: [PATCH 2/3] Update css_syntax.y for use with less ancient Bison
100 -
101 -New pregenerated css_syntax.c to follow.
102 ----
103 - css/css_syntax.y | 24 +++++++++++++++---------
104 - 1 file changed, 15 insertions(+), 9 deletions(-)
105 -
106 -diff --git a/css/css_syntax.y b/css/css_syntax.y
107 -index e75720d..0d9b177 100644
108 ---- a/css/css_syntax.y
109 -+++ b/css/css_syntax.y
110 -@@ -4,13 +4,13 @@
111 - #include "css_lex.h"
112 - #include "parser.h"
113 -
114 --#define YYPARSE_PARAM yyparam
115 - #define YYERROR_VERBOSE 1
116 - //#define YYDEBUG 1
117 -
118 - %}
119 -
120 --%pure_parser
121 -+%parse-param {void *yyparam}
122 -+%pure-parser
123 -
124 - %union {
125 - char *lexeme;
126 -@@ -22,6 +22,19 @@
127 - int pseudo_element;
128 - }
129 -
130 -+%{
131 -+
132 -+int yylex(YYSTYPE *lvalp);
133 -+
134 -+int yyerror(void *yyparam, const char *s) {
135 -+#if YYDEBUG
136 -+ fprintf(stderr, "Error: %s\n", s);
137 -+#endif
138 -+ return 0;
139 -+}
140 -+
141 -+%}
142 -+
143 - %token IMPORT_SYM
144 - %token IMPORTANT_SYM
145 - %token IDENT
146 -@@ -571,13 +584,6 @@ hexcolor
147 -
148 - %%
149 -
150 --int yyerror(char *s) {
151 --#if YYDEBUG
152 -- fprintf(stderr, "Error: %s\n", s);
153 --#endif
154 -- return 0;
155 --}
156 --
157 - struct selector_list_t* css_parse(const char *buffer, int buf_len) {
158 - struct selector_list_t *ret = NULL;
159 - //yydebug = 1;
160 ---
161 -2.8.2
162 -
163
164 diff --git a/dev-cpp/htmlcxx/htmlcxx-0.86.ebuild b/dev-cpp/htmlcxx/htmlcxx-0.86.ebuild
165 deleted file mode 100644
166 index 88d48de3373..00000000000
167 --- a/dev-cpp/htmlcxx/htmlcxx-0.86.ebuild
168 +++ /dev/null
169 @@ -1,35 +0,0 @@
170 -# Copyright 1999-2016 Gentoo Foundation
171 -# Distributed under the terms of the GNU General Public License v2
172 -
173 -EAPI=6
174 -
175 -inherit eutils multilib-minimal
176 -
177 -DESCRIPTION="A simple non-validating CSS 1 and HTML parser for C++"
178 -HOMEPAGE="http://htmlcxx.sourceforge.net/"
179 -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
180 -LICENSE="LGPL-2"
181 -SLOT="0"
182 -KEYWORDS="~amd64 ~x86"
183 -IUSE="static-libs"
184 -
185 -DEPEND="sys-devel/flex[${MULTILIB_USEDEP}]
186 - virtual/yacc"
187 -
188 -PATCHES=(
189 - "${FILESDIR}"/0001-strstream-is-deprecated-use-sstream-instead.patch
190 - "${FILESDIR}"/0002-Update-css_syntax.y-for-use-with-less-ancient-Bison.patch
191 -)
192 -
193 -ECONF_SOURCE="${S}"
194 -
195 -multilib_src_configure() {
196 - econf \
197 - --enable-shared \
198 - $(use_enable static-libs static)
199 -}
200 -
201 -multilib_src_install_all() {
202 - prune_libtool_files
203 - einstalldocs
204 -}