From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BEF94158093 for ; Mon, 4 Jul 2022 00:09:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E00E7E0AB9; Mon, 4 Jul 2022 00:09:17 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3A278E0AB9 for ; Mon, 4 Jul 2022 00:09:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 100DB341EEF for ; Mon, 4 Jul 2022 00:09:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 72AE851F for ; Mon, 4 Jul 2022 00:09:14 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1656893269.81d5316516c330c46ed86cc3e23409d7a36e535a.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/geocode-glib/files/, sci-geosciences/geocode-glib/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-geosciences/geocode-glib/Manifest sci-geosciences/geocode-glib/files/3.26.3-tests-Fix-locale-in-pi-test.patch sci-geosciences/geocode-glib/geocode-glib-3.26.3.ebuild X-VCS-Directories: sci-geosciences/geocode-glib/ sci-geosciences/geocode-glib/files/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 81d5316516c330c46ed86cc3e23409d7a36e535a X-VCS-Branch: master Date: Mon, 4 Jul 2022 00:09:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 35067a69-3cbb-43ae-b20a-df1c1d27ec56 X-Archives-Hash: 622986448de19ea29d348d955a22c1bf commit: 81d5316516c330c46ed86cc3e23409d7a36e535a Author: Matt Turner gentoo org> AuthorDate: Sun Jul 3 23:53:40 2022 +0000 Commit: Matt Turner gentoo org> CommitDate: Mon Jul 4 00:07:49 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81d53165 sci-geosciences/geocode-glib: Version bump to 3.26.3 Signed-off-by: Matt Turner gentoo.org> sci-geosciences/geocode-glib/Manifest | 1 + .../files/3.26.3-tests-Fix-locale-in-pi-test.patch | 43 +++++++++++++++++++++ .../geocode-glib/geocode-glib-3.26.3.ebuild | 45 ++++++++++++++++++++++ 3 files changed, 89 insertions(+) diff --git a/sci-geosciences/geocode-glib/Manifest b/sci-geosciences/geocode-glib/Manifest index 373e7b16b678..882ba5a4e1a7 100644 --- a/sci-geosciences/geocode-glib/Manifest +++ b/sci-geosciences/geocode-glib/Manifest @@ -1 +1,2 @@ DIST geocode-glib-3.26.2.tar.xz 72956 BLAKE2B 40a32fb0ba61cd91b28e57c518dc5450ce89a16889a335d19fe722c1088a4cdb085237d1fe24d08eeac62581ac68895a7a2b432d66f46fc4e03466485cfe5060 SHA512 b3ef81fac6959f6c4725ca721125cdafbbec69233f321872e17f9035266ed7616018ef54a9082fbd0a83395d18c664144cfe3b431d63744be433f058071cd435 +DIST geocode-glib-3.26.3.tar.xz 75148 BLAKE2B 8eba0cb40511a724cddcab659fe0720b0c0534d811c83f8a90d21b9153af242de2a69b2c882b3eb3008ac128d1631a2ac7692c5e000284579aade987334f6cce SHA512 42313b1da24f5256ad73bd4be366d6bacf35256acc098e4865bbff58e92c5b78f4a2537e4787c6387190f10a2be2a72bc1507f7cb436e096e772195cf30fca7c diff --git a/sci-geosciences/geocode-glib/files/3.26.3-tests-Fix-locale-in-pi-test.patch b/sci-geosciences/geocode-glib/files/3.26.3-tests-Fix-locale-in-pi-test.patch new file mode 100644 index 000000000000..5df7814383c0 --- /dev/null +++ b/sci-geosciences/geocode-glib/files/3.26.3-tests-Fix-locale-in-pi-test.patch @@ -0,0 +1,43 @@ +From c9bbf13d76600492565fa042638b48cb737e492d Mon Sep 17 00:00:00 2001 +From: Bastien Nocera +Date: Sat, 2 Jul 2022 10:11:10 +0200 +Subject: [PATCH] tests: Fix locale in "pi" test + +The test expects the locale to be en_GB.UTF-8, so set it as such. + +Closes: #27 +--- + geocode-glib/tests/geocode-glib.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/geocode-glib/tests/geocode-glib.c b/geocode-glib/tests/geocode-glib.c +index f74d031..ef20716 100644 +--- a/geocode-glib/tests/geocode-glib.c ++++ b/geocode-glib/tests/geocode-glib.c +@@ -410,10 +410,14 @@ test_pi (void) + { + g_autoptr (GHashTable) params = NULL; + GeocodeForward *object; ++ g_autofree char *old_locale = NULL; + GError *error = NULL; + GList *res; + GeocodePlace *place; + ++ old_locale = g_strdup (setlocale(LC_ALL, NULL)); ++ setlocale (LC_ALL, "en_GB.UTF-8"); ++ + /* The query parameters the mock server expects to receive. */ + params = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL); + add_attr_string (params, "q", "Jack Cole Building, St Andrews"); +@@ -439,6 +443,8 @@ test_pi (void) + g_assert_cmpstr (geocode_place_get_street_address (place), ==, "North Haugh π"); + g_object_unref (place); + g_list_free (res); ++ ++ setlocale (LC_ALL, old_locale); + } + + static void +-- +2.35.1 + diff --git a/sci-geosciences/geocode-glib/geocode-glib-3.26.3.ebuild b/sci-geosciences/geocode-glib/geocode-glib-3.26.3.ebuild new file mode 100644 index 000000000000..f8360512af4b --- /dev/null +++ b/sci-geosciences/geocode-glib/geocode-glib-3.26.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit gnome.org meson xdg + +DESCRIPTION="GLib helper library for geocoding services" +HOMEPAGE="https://gitlab.gnome.org/GNOME/geocode-glib" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="gtk-doc +introspection test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.44:2 + >=dev-libs/json-glib-0.99.2[introspection?] + >=net-libs/libsoup-2.42:2.4[introspection?] + introspection? ( >=dev-libs/gobject-introspection-1.54:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/glib-utils + gtk-doc? ( + >=dev-util/gtk-doc-1.13 + app-text/docbook-xml-dtd:4.3 + ) + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PV}-tests-Fix-locale-in-pi-test.patch +) + +src_configure() { + local emesonargs=( + -Denable-installed-tests=false + $(meson_use introspection enable-introspection) + $(meson_use gtk-doc enable-gtk-doc) + -Dsoup2=true + ) + meson_src_configure +}