Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/libtomoe-gtk/files/
Date: Sat, 12 Aug 2017 13:35:39
Message-Id: 1502544875.ed0282eede5a314b787f39977068ada58569e4ff.hattya@gentoo
1 commit: ed0282eede5a314b787f39977068ada58569e4ff
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Mon Aug 7 16:00:32 2017 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 12 13:34:35 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed0282ee
7
8 app-i18n/libtomoe-gtk: remove unused patches
9
10 Closes: https://github.com/gentoo/gentoo/pull/5339
11
12 .../files/libtomoe-gtk-0.6.0-gucharmap2.patch | 253 ---------------------
13 .../files/libtomoe-gtk-0.6.0-underlinking.patch | 15 --
14 2 files changed, 268 deletions(-)
15
16 diff --git a/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch b/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch
17 deleted file mode 100644
18 index 44900beb678..00000000000
19 --- a/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch
20 +++ /dev/null
21 @@ -1,253 +0,0 @@
22 ----
23 - Update libtomoe-gtk to gucharmap-2 API
24 - https://bugs.gentoo.org/show_bug.cgi?id=243160
25 -
26 - Makefile.am | 1
27 - bindings/python/Makefile.am | 5 ++-
28 - configure.ac | 14 +++++---
29 - src/tomoe-gucharmap.c | 71 +++++++++++++++++++++++++++++++++++++++-----
30 - 4 files changed, 78 insertions(+), 13 deletions(-)
31 -
32 ---- a/Makefile.am 2007-06-07 14:36:06.000000000 +0900
33 -+++ b/Makefile.am 2008-12-21 01:24:06.000000000 +0900
34 -@@ -1,3 +1,4 @@
35 -+ACLOCAL_AMFLAGS = -I macros
36 - SUBDIRS=src data po test doc bindings
37 -
38 - EXTRA_DIST = autogen.sh tomoe-gtk.pc
39 ---- a/configure.ac 2007-06-12 17:17:23.000000000 +0900
40 -+++ b/configure.ac 2008-12-21 01:08:16.000000000 +0900
41 -@@ -94,6 +94,9 @@
42 - AC_SUBST(TOMOE_CFLAGS)
43 - AC_SUBST(TOMOE_LIBS)
44 -
45 -+TOMOE_GTK_REQUIRED_LIBS="tomoe >= 0.4.0 gtk+-2.0 >= 2.4.0"
46 -+AC_SUBST(TOMOE_GTK_REQUIRED_LIBS)
47 -+
48 - # Checks for gucharmap
49 - AC_ARG_WITH(gucharmap,
50 - AS_HELP_STRING([--with-gucharmap],
51 -@@ -102,14 +105,15 @@
52 - [use_gucharmap=yes])
53 - if test x"$use_gucharmap" = "xyes"; then
54 - # Checks for gucharmap
55 -- PKG_CHECK_MODULES(GUCHARMAP, [gucharmap >= 1.4.0])
56 -- TOMOE_GTK_REQUIRED_LIBS="tomoe >= 0.4.0 gtk+-2.0 >= 2.4.0 gucharmap >= 1.4.0"
57 --else
58 -- TOMOE_GTK_REQUIRED_LIBS="tomoe >= 0.4.0 gtk+-2.0 >= 2.4.0"
59 -+ PKG_CHECK_EXISTS(gucharmap-2,
60 -+ [PKG_CHECK_MODULES(GUCHARMAP, [gucharmap-2],
61 -+ [gucharmap_lib="gucharmap-2"])],
62 -+ [PKG_CHECK_MODULES(GUCHARMAP, [gucharmap >= 1.4.0],
63 -+ [gucharmap_lib="gucharmap >= 1.4.0"])])
64 -+ TOMOE_GTK_REQUIRED_LIBS="$TOMOE_GTK_REQUIRED_LIBS $gucharmap_lib"
65 - fi
66 - AC_SUBST(GUCHARMAP_CFLAGS)
67 - AC_SUBST(GUCHARMAP_LIBS)
68 --AC_SUBST(TOMOE_GTK_REQUIRED_LIBS)
69 - AM_CONDITIONAL([USE_GUCHARMAP], [test x"$use_gucharmap" = "xyes"])
70 -
71 - # Check for pygtk
72 ---- a/src/tomoe-gucharmap.c 2007-04-27 14:41:40.000000000 +0900
73 -+++ b/src/tomoe-gucharmap.c 2008-12-21 01:08:16.000000000 +0900
74 -@@ -34,7 +34,11 @@
75 - {
76 - GtkWidget *chapters_type_combobox;
77 - GtkWidget *chapters_combobox;
78 -+#ifdef GUCHARMAP_TYPE_CHAPTERS
79 - GucharmapChapters *chapters;
80 -+#else
81 -+ GucharmapChaptersModel *chapters_model;
82 -+#endif
83 - GucharmapCharmap *charmap;
84 - gchar *selected;
85 - };
86 -@@ -120,14 +124,24 @@
87 - gtk_widget_show (combobox);
88 -
89 - /* gucharmap */
90 -+#ifdef GUCHARMAP_TYPE_CHAPTERS
91 - priv->chapters = GUCHARMAP_CHAPTERS (gucharmap_block_chapters_new ());
92 - priv->charmap = GUCHARMAP_CHARMAP (gucharmap_charmap_new (priv->chapters));
93 -+#else
94 -+ priv->chapters_model = gucharmap_block_chapters_model_new ();
95 -+ priv->charmap = GUCHARMAP_CHARMAP (gucharmap_charmap_new ());
96 -+ gucharmap_charmap_set_chapters_model (priv->charmap, priv->chapters_model);
97 -+#endif
98 - widget = GTK_WIDGET (priv->charmap);
99 - gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 2);
100 - gtk_widget_show (widget);
101 -
102 - /* Hide chapters page by default. Usually use combo box instead. */
103 -+#ifdef GUCHARMAP_TYPE_CHAPTERS
104 - gtk_widget_hide (GTK_WIDGET (priv->chapters));
105 -+#else
106 -+ gucharmap_charmap_set_chapters_visible (priv->charmap, FALSE);
107 -+#endif
108 -
109 - #if 0
110 - /* CharDetails view will be here */
111 -@@ -146,10 +160,11 @@
112 - g_signal_connect (G_OBJECT (priv->chapters_combobox), "changed",
113 - G_CALLBACK (on_chapters_combo_changed),
114 - (gpointer) page);
115 -- g_signal_connect (G_OBJECT (priv->charmap->chartable), "activate",
116 -+ g_signal_connect (G_OBJECT (gucharmap_charmap_get_chartable (priv->charmap)),
117 -+ "activate",
118 - G_CALLBACK (on_gucharmap_activate),
119 - (gpointer) page);
120 -- g_signal_connect (G_OBJECT (priv->charmap->chartable),
121 -+ g_signal_connect (G_OBJECT (gucharmap_charmap_get_chartable (priv->charmap)),
122 - "button-release-event",
123 - G_CALLBACK (on_gucharmap_button_release),
124 - (gpointer) page);
125 -@@ -162,7 +177,11 @@
126 -
127 - priv->chapters_type_combobox = NULL;
128 - priv->chapters_combobox = NULL;
129 -+#ifdef GUCHARMAP_TYPE_CHAPTERS
130 - priv->chapters = NULL;
131 -+#else
132 -+ priv->chapters_model = NULL;
133 -+#endif
134 - priv->charmap = NULL;
135 - if (priv->selected) {
136 - g_free (priv->selected);
137 -@@ -188,7 +207,11 @@
138 - tomoe_gucharmap_get_selected_char (TomoeGucharmap *page)
139 - {
140 - TomoeGucharmapPrivate *priv;
141 -+#ifdef GUCHARMAP_TABLE
142 - GucharmapTable *table;
143 -+#else
144 -+ GucharmapChartable *table;
145 -+#endif
146 - gunichar c;
147 - gchar buf[7];
148 - gint bytes;
149 -@@ -196,9 +219,17 @@
150 - g_return_val_if_fail (TOMOE_IS_GUCHARMAP (page), NULL);
151 -
152 - priv = TOMOE_GUCHARMAP_GET_PRIVATE (page);
153 -+#ifdef GUCHARMAP_TABLE
154 - table = GUCHARMAP_TABLE (priv->charmap->chartable);
155 -+#else
156 -+ table = gucharmap_charmap_get_chartable (priv->charmap);
157 -+#endif
158 -
159 -+#ifdef GUCHARMAP_TABLE
160 - c = gucharmap_table_get_active_character (table);
161 -+#else
162 -+ c = gucharmap_chartable_get_active_character (table);
163 -+#endif
164 - bytes = g_unichar_to_utf8(c, buf);
165 -
166 - if (bytes > 0 && bytes < 7) {
167 -@@ -222,7 +253,13 @@
168 - setup_chapters_combo_box (TomoeGucharmap *page)
169 - {
170 - TomoeGucharmapPrivate *priv = TOMOE_GUCHARMAP_GET_PRIVATE (page);
171 -- GtkTreeModel *model = priv->chapters->tree_model;
172 -+ GtkTreeModel *model;
173 -+
174 -+#ifdef GUCHARMAP_TYPE_CHAPTERS
175 -+ model = priv->chapters->tree_model;
176 -+#else
177 -+ model = GTK_TREE_MODEL (priv->chapters_model);
178 -+#endif
179 -
180 - gtk_combo_box_set_model (GTK_COMBO_BOX (priv->chapters_combobox), model);
181 - gtk_combo_box_set_active (GTK_COMBO_BOX (priv->chapters_combobox), 0);
182 -@@ -235,12 +272,26 @@
183 - TomoeGucharmapPrivate *priv = TOMOE_GUCHARMAP_GET_PRIVATE (page);
184 - gint idx = gtk_combo_box_get_active (combobox);
185 -
186 -- if (idx == 1)
187 -+ if (idx == 1) {
188 -+#ifdef GUCHARMAP_TYPE_CHAPTERS
189 - priv->chapters = GUCHARMAP_CHAPTERS (gucharmap_script_chapters_new ());
190 -- else
191 -+#else
192 -+ priv->chapters_model = gucharmap_script_chapters_model_new ();
193 -+#endif
194 -+ } else {
195 -+#ifdef GUCHARMAP_TYPE_CHAPTERS
196 - priv->chapters = GUCHARMAP_CHAPTERS (gucharmap_block_chapters_new ());
197 -+#else
198 -+ priv->chapters_model = gucharmap_block_chapters_model_new ();
199 -+#endif
200 -+ }
201 -+#ifdef GUCHARMAP_TYPE_CHAPTERS
202 - gucharmap_charmap_set_chapters (priv->charmap, priv->chapters);
203 - gtk_widget_hide (GTK_WIDGET (priv->chapters));
204 -+#else
205 -+ gucharmap_charmap_set_chapters_model (priv->charmap, priv->chapters_model);
206 -+ gucharmap_charmap_set_chapters_visible (priv->charmap, FALSE);
207 -+#endif
208 - setup_chapters_combo_box (page);
209 - }
210 -
211 -@@ -249,6 +300,7 @@
212 - {
213 - TomoeGucharmap *page = data;
214 - TomoeGucharmapPrivate *priv = TOMOE_GUCHARMAP_GET_PRIVATE (page);
215 -+ GtkTreeView *tree_view;
216 - GtkTreePath *path;
217 - gchar buf[8];
218 - gint idx;
219 -@@ -256,8 +308,13 @@
220 - idx = gtk_combo_box_get_active (combobox);
221 - g_snprintf (buf, 8 , "%d", idx);
222 - path = gtk_tree_path_new_from_string (buf);
223 -- gtk_tree_view_set_cursor (GTK_TREE_VIEW (priv->chapters->tree_view),
224 -- path, NULL, FALSE);
225 -+#ifdef GUCHARMAP_TYPE_CHAPTERS
226 -+ tree_view = GTK_TREE_VIEW (priv->chapters->tree_view);
227 -+#else
228 -+ tree_view =
229 -+ GTK_TREE_VIEW (gucharmap_charmap_get_chapters_view (priv->charmap));
230 -+#endif
231 -+ gtk_tree_view_set_cursor (tree_view, path, NULL, FALSE);
232 - gtk_tree_path_free (path);
233 - }
234 -
235 ---- a/bindings/python/Makefile.am
236 -+++ b/bindings/python/Makefile.am
237 -@@ -6,6 +6,7 @@
238 - $(PYTHON_CFLAGS) \
239 - $(PYGOBJECT_CFLAGS) \
240 - $(PYGTK_CFLAGS) \
241 -+ $(GUCHARMAP_CFLAGS) \
242 - $(GTK2_CFLAGS) \
243 - $(TOMOE_CFLAGS) \
244 - -I$(top_srcdir)/src \
245 -@@ -21,11 +22,13 @@
246 - -module \
247 - -avoid-version \
248 - $(TOMOE_LDFLAGS) \
249 -- $(PYTHON_LDFLAGS)
250 -+ $(PYTHON_LDFLAGS) \
251 -+ $(GUCHARMAP_LDFLAGS)
252 -
253 - tomoegtk_la_LIBADD = \
254 - $(TOMOE_LIBS) \
255 - $(PYGTK_LIBS) \
256 -+ $(GUCHARMAP_LIBS) \
257 - $(top_builddir)/src/libtomoe-gtk.la
258 -
259 - OVERRIDES = \
260 ---- a/doc/reference/Makefile.am 2009-03-09 23:53:04.000000000 +0100
261 -+++ b/doc/reference/Makefile.am 2009-03-09 23:52:30.000000000 +0100
262 -@@ -27,10 +27,12 @@
263 - -I$(top_srcdir)/src \
264 - -I$(top_builddir)/src \
265 - $(TOMOE_CFLAGS) \
266 -+ $(GUCHARMAP_CFLAGS) \
267 - $(GTK2_CFLAGS)
268 - GTKDOC_LIBS = \
269 - $(top_builddir)/src/libtomoe-gtk.la \
270 - $(TOMOE_LIBS) \
271 -+ $(GUCHARMAP_LIBS) \
272 - $(GTK2_LIBS)
273 -
274 - # Extra options to supply to gtkdoc-mkdb
275
276 diff --git a/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-underlinking.patch b/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-underlinking.patch
277 deleted file mode 100644
278 index 755b50a68eb..00000000000
279 --- a/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-underlinking.patch
280 +++ /dev/null
281 @@ -1,15 +0,0 @@
282 -diff --git a/test/Makefile.am b/test/Makefile.am
283 -index 4f4206e..4a21629 100644
284 ---- a/test/Makefile.am
285 -+++ b/test/Makefile.am
286 -@@ -42,8 +42,8 @@ LDADDS = \
287 -
288 - noinst_PROGRAMS = testtomoegtk testtomoegtkedit
289 -
290 --testtomoegtk_LDADD = $(LDADDS)
291 -+testtomoegtk_LDADD = $(LDADDS) -lm
292 - testtomoegtk_SOURCES = testtomoegtk.c
293 -
294 --testtomoegtkedit_LDADD = $(LDADDS)
295 -+testtomoegtkedit_LDADD = $(LDADDS) -lm
296 - testtomoegtkedit_SOURCES = testtomoegtkedit.c