Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libgweather/, dev-libs/libgweather/files/, profiles/
Date: Tue, 29 Nov 2022 21:28:25
Message-Id: 1669757290.974d62298d5fbddfadfb24592aaed4615ac39be7.mattst88@gentoo
1 commit: 974d62298d5fbddfadfb24592aaed4615ac39be7
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 29 19:07:59 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 21:28:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=974d6229
7
8 dev-libs/libgweather: Drop old versions
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 dev-libs/libgweather/Manifest | 1 -
13 .../files/40.0-autoskip-network-test.patch | 29 ------
14 dev-libs/libgweather/files/40.0-meson-tweaks.patch | 109 ---------------------
15 dev-libs/libgweather/files/40.0-tests-locale.patch | 55 -----------
16 dev-libs/libgweather/libgweather-40.0-r1.ebuild | 80 ---------------
17 profiles/package.mask | 5 -
18 6 files changed, 279 deletions(-)
19
20 diff --git a/dev-libs/libgweather/Manifest b/dev-libs/libgweather/Manifest
21 index c105b9fb2070..8f4b3928c4f9 100644
22 --- a/dev-libs/libgweather/Manifest
23 +++ b/dev-libs/libgweather/Manifest
24 @@ -1,3 +1,2 @@
25 DIST libgweather-4.0.0.tar.xz 4722620 BLAKE2B f2500d065fe9607b740c2f6c87378d5fc86c15951b2880f89c3ac22021d085eed601b645dcf1c9864fe1fa47860aa14ed1ab858263a7634c3b7615231d3ee6d1 SHA512 1441b8996a53b277e9453d3fcf32448800c963f40c32542f9055362bc3188dcf2e706466133d53b3f1b6343dc97b15cf5eabe16b950e7c9451cb79eeef87a9c3
26 DIST libgweather-4.2.0.tar.xz 2752164 BLAKE2B 9cc51363d6a2a09497269760701e0e0c1beb68c0096262fb6e2885414f838b41c151df7b057def457fdd49f9036d853ab624a9683a5cf57bbdefaed5376fe69f SHA512 cd95c6714575c0afc52455bb99c9116af27716868648debe0e5309904cfaf7516cf2379e415b3d9dd57b5dd223bae8e8acbaf705a3867dad8f75aec22eea908e
27 -DIST libgweather-40.0.tar.xz 2704404 BLAKE2B 27bc69c350ae91a07307d75b5ea1d03bb251f51bf87d5d54861965b61d7ed825ab708466cbe9d961c4f544b8b17ca6ed37b723c003ce2c1ef020270d6812c61d SHA512 72e295246bf03550039a70bd4bf5b8f06357a6b70e04308c197fba309e406d410a97d128d849d97a29a6a114faa1ef5452e6632870b7ea45223a0c305c228cc1
28
29 diff --git a/dev-libs/libgweather/files/40.0-autoskip-network-test.patch b/dev-libs/libgweather/files/40.0-autoskip-network-test.patch
30 deleted file mode 100644
31 index def65382613b..000000000000
32 --- a/dev-libs/libgweather/files/40.0-autoskip-network-test.patch
33 +++ /dev/null
34 @@ -1,29 +0,0 @@
35 -From 1d0ae284635ef1975a581b4d73ab497ccbd4532f Mon Sep 17 00:00:00 2001
36 -From: Mart Raudsepp <leio@g.o>
37 -Date: Sun, 30 Aug 2020 10:35:13 +0300
38 -Subject: [PATCH 2/2] tests: Skip metar tests when METAR_SOURCES couldn't be
39 - resolved
40 -
41 ----
42 - libgweather/test_libgweather.c | 5 +++++
43 - 1 file changed, 5 insertions(+)
44 -
45 -diff --git a/libgweather/test_libgweather.c b/libgweather/test_libgweather.c
46 -index ee13dc7b..7ffaac41 100644
47 ---- a/libgweather/test_libgweather.c
48 -+++ b/libgweather/test_libgweather.c
49 -@@ -438,6 +438,11 @@ test_metar_weather_stations (void)
50 - g_test_message ("SSL/TLS failure, please check your glib-networking installation");
51 - g_test_failed ();
52 - return;
53 -+ } else if (msg->status_code == SOUP_STATUS_CANT_RESOLVE) {
54 -+ g_test_skip ("Could not resolve " METAR_SOURCES " - network sandboxed?");
55 -+ g_object_unref (session);
56 -+ g_object_unref (msg);
57 -+ return;
58 - }
59 - g_assert_cmpint (msg->status_code, >=, 200);
60 - g_assert_cmpint (msg->status_code, <, 300);
61 ---
62 -2.26.2
63 -
64
65 diff --git a/dev-libs/libgweather/files/40.0-meson-tweaks.patch b/dev-libs/libgweather/files/40.0-meson-tweaks.patch
66 deleted file mode 100644
67 index aa56c592890f..000000000000
68 --- a/dev-libs/libgweather/files/40.0-meson-tweaks.patch
69 +++ /dev/null
70 @@ -1,109 +0,0 @@
71 -From bbf17eac53c128904190ef2d74176b0717d7d907 Mon Sep 17 00:00:00 2001
72 -From: Mart Raudsepp <leio@g.o>
73 -Date: Sat, 23 Feb 2019 12:21:01 +0200
74 -Subject: [PATCH] build: Provide introspection option and don't build manual
75 - tests
76 -
77 ----
78 - libgweather/meson.build | 21 ++++++++++++++-------
79 - meson.build | 4 ++++
80 - meson_options.txt | 2 ++
81 - 3 files changed, 20 insertions(+), 7 deletions(-)
82 -
83 -diff --git a/libgweather/meson.build b/libgweather/meson.build
84 -index 26f067e6..8f0f9047 100644
85 ---- a/libgweather/meson.build
86 -+++ b/libgweather/meson.build
87 -@@ -74,6 +74,15 @@ lib_libgweather = shared_library('gweather-3',
88 - install: true,
89 - )
90 -
91 -+libgweather_dep = declare_dependency(
92 -+ sources: [gweather_enum_types[1]],
93 -+ dependencies: deps_libgweather,
94 -+ link_with: lib_libgweather,
95 -+ include_directories: root_inc,
96 -+)
97 -+
98 -+if get_option('introspection')
99 -+
100 - gweather_gir = gnome.generate_gir(lib_libgweather,
101 - sources: introspection_sources,
102 - dependencies: deps_libgweather,
103 -@@ -91,13 +100,6 @@ gweather_gir = gnome.generate_gir(lib_libgweather,
104 - install: true,
105 - )
106 -
107 --libgweather_dep = declare_dependency(
108 -- sources: [gweather_enum_types[1], gweather_gir],
109 -- dependencies: deps_libgweather,
110 -- link_with: lib_libgweather,
111 -- include_directories: root_inc,
112 --)
113 --
114 - if enable_vala
115 - gnome.generate_vapi('gweather-3.0',
116 - sources: gweather_gir[0],
117 -@@ -106,11 +108,13 @@ if enable_vala
118 - install: true
119 - )
120 - endif
121 -+endif
122 -
123 - test_cargs = ['-DTEST_LOCATIONS="@0@"'.format(locations_bin.full_path()),
124 - '-DSCHEMASDIR="@0@/schemas"'.format(meson.source_root()),
125 - '-DSCHEMAS_BUILDDIR="@0@/schemas"'.format(meson.build_root())]
126 -
127 -+if false
128 - executable('test_locations',
129 - ['test_locations.c'],
130 - c_args: test_cargs,
131 -@@ -121,6 +125,7 @@ executable('test_locations_utc',
132 - c_args: test_cargs,
133 - dependencies: libgweather_dep,
134 - install: false)
135 -+endif
136 -
137 - exe = executable('test_libgweather',
138 - ['test_libgweather.c'],
139 -@@ -129,6 +134,7 @@ exe = executable('test_libgweather',
140 - install: false)
141 - test('test_libgweather', exe, depends: [locations_bin])
142 -
143 -+if false
144 - executable('test_metar',
145 - ['test_metar.c', gweather_c_sources],
146 - c_args: test_cargs,
147 -@@ -144,3 +150,4 @@ executable('test_weather',
148 - c_args: test_cargs,
149 - dependencies: libgweather_dep,
150 - install: false)
151 -+endif
152 -diff --git a/meson.build b/meson.build
153 -index 87f9a7d8..48ff0ca2 100644
154 ---- a/meson.build
155 -+++ b/meson.build
156 -@@ -104,6 +104,10 @@ else
157 - enable_vala = enable_vala != 'false'
158 - endif
159 -
160 -+if enable_vala and not get_option('introspection')
161 -+ error('Vala bindings require introspection support')
162 -+endif
163 -+
164 - root_inc = include_directories('.')
165 -
166 - subdir('data')
167 -diff --git a/meson_options.txt b/meson_options.txt
168 -index 19b2c6a7..bf4c5175 100644
169 ---- a/meson_options.txt
170 -+++ b/meson_options.txt
171 -@@ -8,3 +8,5 @@ option('enable_vala', type: 'combo', choices : ['true', 'false', 'auto'], value
172 - description: 'Install vala bindings')
173 - option('gtk_doc', type: 'boolean', value: false,
174 - description: 'Whether to generate the API reference')
175 -+option('introspection', type: 'boolean', value: true,
176 -+ description: 'generate GObject Introspection data')
177 ---
178 -2.26.2
179 -
180
181 diff --git a/dev-libs/libgweather/files/40.0-tests-locale.patch b/dev-libs/libgweather/files/40.0-tests-locale.patch
182 deleted file mode 100644
183 index ea1f6020152d..000000000000
184 --- a/dev-libs/libgweather/files/40.0-tests-locale.patch
185 +++ /dev/null
186 @@ -1,55 +0,0 @@
187 -From 6b2801a8195990fdf5166b62f62ddfbad55f11e4 Mon Sep 17 00:00:00 2001
188 -From: Emmanuele Bassi <ebassi@×××××.org>
189 -Date: Mon, 9 Mar 2020 12:21:57 +0000
190 -Subject: [PATCH 1/2] Do not run local-dependent tests with missing locales
191 -
192 -Not everyone has all the locales installed all the time, so let's check
193 -if a locale is available before using it.
194 ----
195 - libgweather/test_libgweather.c | 12 +++++++++++-
196 - 1 file changed, 11 insertions(+), 1 deletion(-)
197 -
198 -diff --git a/libgweather/test_libgweather.c b/libgweather/test_libgweather.c
199 -index b10c1f16..ee13dc7b 100644
200 ---- a/libgweather/test_libgweather.c
201 -+++ b/libgweather/test_libgweather.c
202 -@@ -678,6 +678,7 @@ test_location_names (void)
203 - {
204 - g_autoptr(GWeatherLocation) world = NULL;
205 - g_autoptr(GWeatherLocation) brussels = NULL;
206 -+ char *old_locale;
207 -
208 - world = gweather_location_get_world ();
209 - g_assert_nonnull (world);
210 -@@ -689,10 +690,19 @@ test_location_names (void)
211 - g_assert_cmpstr (gweather_location_get_english_name (brussels), ==, "Brussels");
212 - gweather_location_unref (brussels);
213 -
214 -+ old_locale = g_strdup (setlocale (LC_ALL, NULL));
215 - setlocale (LC_ALL, "fr_FR.UTF-8");
216 -
217 - g_clear_pointer (&world, gweather_location_unref);
218 - g_clear_pointer (&brussels, gweather_location_unref);
219 -+ if (strstr (setlocale (LC_ALL, NULL), "fr_FR.UTF-8") == NULL)
220 -+ {
221 -+ g_test_skip ("locale fr_FR.UTF-8 not available, skipping localization tests");
222 -+ setlocale (LC_ALL, old_locale);
223 -+ g_free (old_locale);
224 -+ return;
225 -+ }
226 -+
227 - _gweather_location_reset_world ();
228 -
229 - world = gweather_location_get_world ();
230 -@@ -705,7 +715,7 @@ test_location_names (void)
231 - g_assert_cmpstr (gweather_location_get_english_name (brussels), ==, "Brussels");
232 - gweather_location_unref (brussels);
233 -
234 -- setlocale (LC_ALL, "");
235 -+ setlocale (LC_ALL, old_locale);
236 - g_clear_pointer (&world, gweather_location_unref);
237 - g_clear_pointer (&brussels, gweather_location_unref);
238 - _gweather_location_reset_world ();
239 ---
240 -2.26.2
241 -
242
243 diff --git a/dev-libs/libgweather/libgweather-40.0-r1.ebuild b/dev-libs/libgweather/libgweather-40.0-r1.ebuild
244 deleted file mode 100644
245 index 1f291f569c0c..000000000000
246 --- a/dev-libs/libgweather/libgweather-40.0-r1.ebuild
247 +++ /dev/null
248 @@ -1,80 +0,0 @@
249 -# Copyright 1999-2022 Gentoo Authors
250 -# Distributed under the terms of the GNU General Public License v2
251 -
252 -EAPI=7
253 -PYTHON_COMPAT=( python3_{8..11} )
254 -
255 -inherit gnome.org gnome2-utils meson python-any-r1 vala xdg
256 -
257 -DESCRIPTION="Location and timezone database and weather-lookup library"
258 -HOMEPAGE="https://wiki.gnome.org/Projects/LibGWeather"
259 -
260 -LICENSE="GPL-2+"
261 -SLOT="2/3-16-2" # subslot = 3-(libgweather-3 soname suffix) w/ temporary -2 suffix for silent ABI break after 3.28 without soname bump as per distro-list
262 -
263 -IUSE="glade gtk-doc +introspection +vala"
264 -REQUIRED_USE="vala? ( introspection )"
265 -
266 -KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
267 -
268 -RDEPEND="
269 - >=dev-libs/glib-2.44.0:2
270 - >=x11-libs/gtk+-3.13.5:3[introspection?]
271 - >=net-libs/libsoup-2.44:2.4
272 - >=dev-libs/libxml2-2.6.0:2
273 - sci-geosciences/geocode-glib:0
274 - >=sys-libs/timezone-data-2010k
275 -
276 - glade? ( >=dev-util/glade-3.16:3.10 )
277 - introspection? ( >=dev-libs/gobject-introspection-1.54:= )
278 -"
279 -DEPEND="${RDEPEND}"
280 -BDEPEND="
281 - dev-util/glib-utils
282 - gtk-doc? ( >=dev-util/gtk-doc-1.11
283 - app-text/docbook-xml-dtd:4.3 )
284 - >=sys-devel/gettext-0.19.8
285 - virtual/pkgconfig
286 - ${PYTHON_DEPS}
287 - $(python_gen_any_dep 'dev-python/pygobject[${PYTHON_USEDEP}]')
288 - $(vala_depend)
289 -"
290 -
291 -PATCHES=(
292 - "${FILESDIR}"/40.0-meson-tweaks.patch # Provide introspection optionality and don't build tests that aren't ran automatically
293 - "${FILESDIR}"/40.0-tests-locale.patch # Don't fail tests when a locale is not present, https://gitlab.gnome.org/GNOME/libgweather/-/merge_requests/58
294 - "${FILESDIR}"/40.0-autoskip-network-test.patch
295 -)
296 -
297 -python_check_deps() {
298 - has_version -b "dev-python/pygobject[${PYTHON_USEDEP}]"
299 -}
300 -
301 -pkg_setup() {
302 - python-any-r1_pkg_setup
303 -}
304 -
305 -src_prepare() {
306 - xdg_src_prepare
307 - vala_src_prepare
308 -}
309 -
310 -src_configure() {
311 - local emesonargs=(
312 - $(meson_use glade glade_catalog)
313 - $(meson_use vala enable_vala)
314 - $(meson_use gtk-doc gtk_doc)
315 - $(meson_use introspection)
316 - )
317 - meson_src_configure
318 -}
319 -
320 -pkg_postinst() {
321 - xdg_pkg_postinst
322 - gnome2_schemas_update
323 -}
324 -
325 -pkg_postrm() {
326 - xdg_pkg_postrm
327 - gnome2_schemas_update
328 -}
329
330 diff --git a/profiles/package.mask b/profiles/package.mask
331 index 3b25a25317ce..9ab35d47f744 100644
332 --- a/profiles/package.mask
333 +++ b/profiles/package.mask
334 @@ -425,11 +425,6 @@ media-gfx/peps
335 # Removal on 2022-11-30
336 media-gfx/gnome-raw-thumbnailer
337
338 -# Matt Turner <mattst88@g.o> (2022-10-29)
339 -# Old slot with no reverse dependencies.
340 -# Removal on 2022-11-29
341 -dev-libs/libgweather:2
342 -
343 # Arthur Zamarin <arthurzam@g.o> (2022-10-29)
344 # Last upstream commit in 2016, no tests, implements functions
345 # which are implemented by pathlib Python module. No reverse