Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libindicate/, dev-libs/libindicate/files/
Date: Sun, 01 Jan 2023 11:33:24
Message-Id: 1672572778.70cc434ec010485de3d72ef424301caaf053ac24.soap@gentoo
1 commit: 70cc434ec010485de3d72ef424301caaf053ac24
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 1 11:32:58 2023 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 1 11:32:58 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70cc434e
7
8 dev-libs/libindicate: update EAPI 6 -> 8
9
10 Closes: https://bugs.gentoo.org/469032
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 .../files/libindicate-0.6.1-no-mono.patch | 78 -----------
14 .../files/libindicate-12.10.1-autotools.patch | 151 +++++++++++++++++++++
15 .../files/libindicate-12.10.1-werror.patch | 13 --
16 ...0.1-r3.ebuild => libindicate-12.10.1-r4.ebuild} | 37 ++---
17 4 files changed, 162 insertions(+), 117 deletions(-)
18
19 diff --git a/dev-libs/libindicate/files/libindicate-0.6.1-no-mono.patch b/dev-libs/libindicate/files/libindicate-0.6.1-no-mono.patch
20 deleted file mode 100644
21 index 1743f861f4ba..000000000000
22 --- a/dev-libs/libindicate/files/libindicate-0.6.1-no-mono.patch
23 +++ /dev/null
24 @@ -1,78 +0,0 @@
25 -Temporary patch to disable mono until new gtk-sharp is in tree wrt bug #382491
26 -
27 ---- a/bindings/Makefile.am
28 -+++ b/bindings/Makefile.am
29 -@@ -1,9 +1,5 @@
30 - SUBDIRS =
31 -
32 --if HAS_MONO
33 --SUBDIRS += mono
34 --endif
35 --
36 - if HAS_PYTHON
37 - SUBDIRS += python
38 - endif
39 ---- a/configure.ac
40 -+++ b/configure.ac
41 -@@ -124,61 +124,6 @@
42 - AC_PATH_PROG([VALA_API_GEN], [vapigen])
43 -
44 - ###########################
45 --# Check for Mono support
46 --###########################
47 --
48 --MONO_REQUIRED_VERSION=1.0
49 --PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
50 --
51 --AC_PATH_PROG(AL, al, no)
52 --if test "x$AL" = "xno" ; then
53 -- AC_MSG_NOTICE([No al tool found. You need to install Mono.])
54 --fi
55 --
56 --if test "x$has_mono" = "xtrue" ; then
57 -- GENERATED_SOURCES=generated/*.cs
58 -- AC_PATH_PROG(RUNTIME, mono, no)
59 --
60 -- if test "x$RUNTIME" != "no" ; then
61 -- RUNTIME=mono
62 -- fi
63 --
64 -- AC_PATH_PROG(CSC, gmcs, no)
65 -- LIB_PREFIX=.so
66 -- LIB_SUFFIX=
67 --fi
68 --
69 --if test "x$CSC" = "xno" ; then
70 -- AC_MSG_NOTICE([No Mono compiler found.])
71 --fi
72 --
73 --AC_PATH_PROG(GACUTIL, gacutil, no)
74 --if test "x$GACUTIL" = "xno" ; then
75 -- AC_MSG_NOTICE([No gacutil tool found])
76 --fi
77 --
78 --AC_SUBST(RUNTIME)
79 --AC_SUBST(CSC)
80 --AC_SUBST(GACUTIL)
81 --AC_SUBST(LIB_PREFIX)
82 --AC_SUBST(LIB_SUFFIX)
83 --AC_SUBST(GENERATED_SOURCES)
84 --
85 --GLIB_SHARP_REQ_VERSION=2.12.1
86 --GTK_SHARP_REQ_VERSION=2.12
87 --PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION, has_gtksharp=true, has_gtksharp=false)
88 --AC_SUBST(GTK_SHARP_LIBS)
89 --AC_SUBST(GTK_SHARP_CFLAGS)
90 --
91 --PKG_CHECK_MODULES(GAPI, gapi-2.0 >= $GLIB_SHARP_REQ_VERSION, has_gapi=true, has_gapi=false)
92 --AC_PATH_PROG(GAPI_PARSER, gapi2-parser, no)
93 --AC_SUBST(GAPI_PARSER)
94 --AC_PATH_PROG(GAPI_CODEGEN, gapi2-codegen, no)
95 --AC_SUBST(GAPI_CODEGEN)
96 --AC_PATH_PROG(GAPI_FIXUP, gapi2-fixup, no)
97 --AC_SUBST(GAPI_FIXUP)
98 --
99 --###########################
100 - # Check for Python support
101 - ###########################
102 -
103
104 diff --git a/dev-libs/libindicate/files/libindicate-12.10.1-autotools.patch b/dev-libs/libindicate/files/libindicate-12.10.1-autotools.patch
105 new file mode 100644
106 index 000000000000..ef84aab8cd94
107 --- /dev/null
108 +++ b/dev-libs/libindicate/files/libindicate-12.10.1-autotools.patch
109 @@ -0,0 +1,151 @@
110 +- Temporary patch to disable mono until new gtk-sharp is in tree wrt bug #382491
111 +- fix parallel install issue #469032
112 +- remove -Werror
113 +- use VAPIGEN from vala.eclass
114 +
115 +--- a/bindings/Makefile.am
116 ++++ b/bindings/Makefile.am
117 +@@ -1,9 +1,5 @@
118 + SUBDIRS =
119 +
120 +-if HAS_MONO
121 +-SUBDIRS += mono
122 +-endif
123 +-
124 + if HAS_PYTHON
125 + SUBDIRS += python
126 + endif
127 +--- a/configure.ac
128 ++++ b/configure.ac
129 +@@ -3,7 +3,7 @@
130 +
131 + AC_PREREQ(2.53)
132 +
133 +-AM_CONFIG_HEADER(config.h)
134 ++AC_CONFIG_HEADERS(config.h)
135 + AM_INIT_AUTOMAKE(libindicate, 12.10.1)
136 +
137 + AM_MAINTAINER_MODE
138 +@@ -134,62 +134,7 @@
139 + # Vala API Generation
140 + ###########################
141 +
142 +-AC_PATH_PROG([VALA_API_GEN], [vapigen])
143 +-
144 +-###########################
145 +-# Check for Mono support
146 +-###########################
147 +-
148 +-MONO_REQUIRED_VERSION=1.0
149 +-PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
150 +-
151 +-AC_PATH_PROG(AL, al, no)
152 +-if test "x$AL" = "xno" ; then
153 +- AC_MSG_NOTICE([No al tool found. You need to install Mono.])
154 +-fi
155 +-
156 +-if test "x$has_mono" = "xtrue" ; then
157 +- GENERATED_SOURCES=generated/*.cs
158 +- AC_PATH_PROG(RUNTIME, mono, no)
159 +-
160 +- if test "x$RUNTIME" != "no" ; then
161 +- RUNTIME=mono
162 +- fi
163 +-
164 +- AC_PATH_PROG(CSC, gmcs, no)
165 +- LIB_PREFIX=.so
166 +- LIB_SUFFIX=
167 +-fi
168 +-
169 +-if test "x$CSC" = "xno" ; then
170 +- AC_MSG_NOTICE([No Mono compiler found.])
171 +-fi
172 +-
173 +-AC_PATH_PROG(GACUTIL, gacutil, no)
174 +-if test "x$GACUTIL" = "xno" ; then
175 +- AC_MSG_NOTICE([No gacutil tool found])
176 +-fi
177 +-
178 +-AC_SUBST(RUNTIME)
179 +-AC_SUBST(CSC)
180 +-AC_SUBST(GACUTIL)
181 +-AC_SUBST(LIB_PREFIX)
182 +-AC_SUBST(LIB_SUFFIX)
183 +-AC_SUBST(GENERATED_SOURCES)
184 +-
185 +-GLIB_SHARP_REQ_VERSION=2.12.1
186 +-GTK_SHARP_REQ_VERSION=2.12
187 +-PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION, has_gtksharp=true, has_gtksharp=false)
188 +-AC_SUBST(GTK_SHARP_LIBS)
189 +-AC_SUBST(GTK_SHARP_CFLAGS)
190 +-
191 +-PKG_CHECK_MODULES(GAPI, gapi-2.0 >= $GLIB_SHARP_REQ_VERSION, has_gapi=true, has_gapi=false)
192 +-AC_PATH_PROG(GAPI_PARSER, gapi2-parser, no)
193 +-AC_SUBST(GAPI_PARSER)
194 +-AC_PATH_PROG(GAPI_CODEGEN, gapi2-codegen, no)
195 +-AC_SUBST(GAPI_CODEGEN)
196 +-AC_PATH_PROG(GAPI_FIXUP, gapi2-fixup, no)
197 +-AC_SUBST(GAPI_FIXUP)
198 ++AC_PATH_PROG([VAPIGEN], [vapigen])
199 +
200 + ###########################
201 + # Check for Python support
202 +--- a/libindicate/Makefile.am
203 ++++ b/libindicate/Makefile.am
204 +@@ -74,7 +74,7 @@
205 + libindicate_la_CFLAGS = \
206 + $(LIBINDICATE_CFLAGS) \
207 + $(COVERAGE_CFLAGS) \
208 +- -Wall -Werror
209 ++ -Wall
210 +
211 + libindicate_la_LIBADD = \
212 + $(LIBINDICATE_LIBS)
213 +@@ -173,7 +173,7 @@
214 + vapi_DATA = Indicate-0.7.vapi
215 +
216 + Indicate-0.7.vapi: Indicate-0.7.gir
217 +- $(VALA_API_GEN) --library=Indicate-0.7 \
218 ++ $(VAPIGEN) --library=Indicate-0.7 \
219 + --pkg Dbusmenu-0.4 \
220 + $<
221 +
222 +--- a/libindicate-gtk/Makefile.am
223 ++++ b/libindicate-gtk/Makefile.am
224 +@@ -26,8 +26,7 @@
225 + indicator.h \
226 + listener.h
227 +
228 +-libindicate_gtkinclude_HEADERS = \
229 +- $(indicate_gtk_headers)
230 ++libindicate_gtkinclude_HEADERS =
231 +
232 + libindicate_gtk_la_SOURCES = \
233 + $(indicate_gtk_headers) \
234 +@@ -43,7 +42,7 @@
235 + libindicate_gtk_la_CFLAGS = \
236 + $(COVERAGE_CFLAGS) \
237 + -I $(top_srcdir) \
238 +- -Wall -Werror \
239 ++ -Wall \
240 + $(LIBINDICATEGTK_CFLAGS)
241 +
242 + libindicate_gtk_la_LIBADD = \
243 +@@ -58,7 +57,7 @@
244 + libindicate_gtk3_la_CFLAGS = $(libindicate_gtk_la_CFLAGS)
245 + libindicate_gtk3_la_LDFLAGS = $(libindicate_gtk_la_LDFLAGS)
246 + libindicate_gtk3_la_SOURCES = $(libindicate_gtk_la_SOURCES)
247 +-libindicate_gtk3include_HEADERS = $(libindicate_gtkinclude_HEADERS)
248 ++libindicate_gtk3include_HEADERS = $(indicate_gtk_headers)
249 + libindicate_gtk3includedir = $(libindicate_gtkincludedir)
250 +
251 + pkgconfig_DATA = indicate-gtk$(VER)-0.7.pc
252 +@@ -139,7 +138,7 @@
253 + vapi_DATA = IndicateGtk$(VER)-0.7.vapi
254 +
255 + IndicateGtk$(VER)-0.7.vapi: IndicateGtk$(VER)-0.7.tmp.gir Makefile.am
256 +- $(VALA_API_GEN) --library=IndicateGtk$(VER)-0.7 \
257 ++ $(VAPIGEN) --library=IndicateGtk$(VER)-0.7 \
258 + --pkg $(GTKVALA) \
259 + --pkg Dbusmenu-0.4 \
260 + --pkg Indicate-0.7 \
261
262 diff --git a/dev-libs/libindicate/files/libindicate-12.10.1-werror.patch b/dev-libs/libindicate/files/libindicate-12.10.1-werror.patch
263 deleted file mode 100644
264 index 9a330caac03c..000000000000
265 --- a/dev-libs/libindicate/files/libindicate-12.10.1-werror.patch
266 +++ /dev/null
267 @@ -1,13 +0,0 @@
268 ---- a/libindicate-gtk/Makefile.am
269 -+++ b/libindicate-gtk/Makefile.am
270 -@@ -45,3 +45,3 @@ libindicate_gtk_la_CFLAGS = \
271 - -I $(top_srcdir) \
272 -- -Wall -Werror \
273 -+ -Wall \
274 - $(LIBINDICATEGTK_CFLAGS)
275 ---- a/libindicate/Makefile.am
276 -+++ b/libindicate/Makefile.am
277 -@@ -76,3 +76,3 @@ libindicate_la_CFLAGS = \
278 - $(COVERAGE_CFLAGS) \
279 -- -Wall -Werror
280 -+ -Wall
281
282 diff --git a/dev-libs/libindicate/libindicate-12.10.1-r3.ebuild b/dev-libs/libindicate/libindicate-12.10.1-r4.ebuild
283 similarity index 62%
284 rename from dev-libs/libindicate/libindicate-12.10.1-r3.ebuild
285 rename to dev-libs/libindicate/libindicate-12.10.1-r4.ebuild
286 index e1cb38a5bbb4..2124b53457b2 100644
287 --- a/dev-libs/libindicate/libindicate-12.10.1-r3.ebuild
288 +++ b/dev-libs/libindicate/libindicate-12.10.1-r4.ebuild
289 @@ -1,11 +1,11 @@
290 -# Copyright 1999-2022 Gentoo Authors
291 +# Copyright 1999-2023 Gentoo Authors
292 # Distributed under the terms of the GNU General Public License v2
293
294 -EAPI=6
295 +EAPI=8
296
297 -VALA_MIN_API_VERSION="0.16"
298 VALA_USE_DEPEND="vapigen"
299 -inherit autotools flag-o-matic vala xdg-utils
300 +
301 +inherit autotools vala
302
303 DESCRIPTION="Library to raise flags on DBus for other components of the desktop"
304 HOMEPAGE="https://launchpad.net/libindicate"
305 @@ -15,7 +15,6 @@ LICENSE="LGPL-2.1 LGPL-3"
306 SLOT="3"
307 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv sparc x86"
308 IUSE="gtk +introspection"
309 -
310 RESTRICT="test" # consequence of the -no-mono.patch
311
312 RDEPEND="
313 @@ -29,38 +28,27 @@ RDEPEND="
314 )
315 introspection? ( >=dev-libs/gobject-introspection-1 )
316 "
317 -DEPEND="${RDEPEND}
318 - $(vala_depend)
319 +DEPEND="${RDEPEND}"
320 +BDEPEND="
321 app-text/gnome-doc-utils
322 dev-util/gtk-doc-am
323 gnome-base/gnome-common
324 virtual/pkgconfig
325 + $(vala_depend)
326 "
327
328 -PATCHES=(
329 - "${FILESDIR}"/${PN}-0.6.1-no-mono.patch
330 - "${FILESDIR}"/${PN}-12.10.1-werror.patch
331 -)
332 +PATCHES=( "${FILESDIR}"/${P}-autotools.patch )
333
334 src_prepare() {
335 default
336 - xdg_environment_reset
337 - vala_src_prepare
338 -
339 - sed -i \
340 - -e "s:vapigen:vapigen-$(vala_best_api_version):" \
341 - -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" \
342 - configure.ac || die
343 -
344 eautoreconf
345 }
346
347 src_configure() {
348 - append-flags -Wno-error
349 + vala_setup
350
351 # python bindings are only for GTK+-2.x
352 econf \
353 - --disable-static \
354 $(use_enable gtk) \
355 $(use_enable introspection) \
356 --disable-python \
357 @@ -69,9 +57,6 @@ src_configure() {
358 }
359
360 src_install() {
361 - # work around failing parallel installation (-j1)
362 - # until a better fix is available. (bug #469032)
363 - emake -j1 DESTDIR="${D}" install
364 - einstalldocs
365 - find "${D}" -name '*.la' -delete || die
366 + default
367 + find "${ED}" -name '*.la' -delete || die
368 }