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/, profiles/
Date: Fri, 30 Sep 2022 16:52:39
Message-Id: 1664556725.cc0853ba9c91dcd9887d922fcbe7026958327cbb.mattst88@gentoo
1 commit: cc0853ba9c91dcd9887d922fcbe7026958327cbb
2 Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
3 AuthorDate: Wed Sep 21 12:05:21 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 16:52:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc0853ba
7
8 dev-libs/libgweather: Version bump to 4.2.0
9
10 Closes: https://github.com/gentoo/gentoo/pull/27375
11 Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>
12 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
13
14 dev-libs/libgweather/Manifest | 1 +
15 dev-libs/libgweather/libgweather-4.2.0.ebuild | 90 +++++++++++++++++++++++++++
16 profiles/package.mask | 1 +
17 3 files changed, 92 insertions(+)
18
19 diff --git a/dev-libs/libgweather/Manifest b/dev-libs/libgweather/Manifest
20 index b886c39a5164..c105b9fb2070 100644
21 --- a/dev-libs/libgweather/Manifest
22 +++ b/dev-libs/libgweather/Manifest
23 @@ -1,2 +1,3 @@
24 DIST libgweather-4.0.0.tar.xz 4722620 BLAKE2B f2500d065fe9607b740c2f6c87378d5fc86c15951b2880f89c3ac22021d085eed601b645dcf1c9864fe1fa47860aa14ed1ab858263a7634c3b7615231d3ee6d1 SHA512 1441b8996a53b277e9453d3fcf32448800c963f40c32542f9055362bc3188dcf2e706466133d53b3f1b6343dc97b15cf5eabe16b950e7c9451cb79eeef87a9c3
25 +DIST libgweather-4.2.0.tar.xz 2752164 BLAKE2B 9cc51363d6a2a09497269760701e0e0c1beb68c0096262fb6e2885414f838b41c151df7b057def457fdd49f9036d853ab624a9683a5cf57bbdefaed5376fe69f SHA512 cd95c6714575c0afc52455bb99c9116af27716868648debe0e5309904cfaf7516cf2379e415b3d9dd57b5dd223bae8e8acbaf705a3867dad8f75aec22eea908e
26 DIST libgweather-40.0.tar.xz 2704404 BLAKE2B 27bc69c350ae91a07307d75b5ea1d03bb251f51bf87d5d54861965b61d7ed825ab708466cbe9d961c4f544b8b17ca6ed37b723c003ce2c1ef020270d6812c61d SHA512 72e295246bf03550039a70bd4bf5b8f06357a6b70e04308c197fba309e406d410a97d128d849d97a29a6a114faa1ef5452e6632870b7ea45223a0c305c228cc1
27
28 diff --git a/dev-libs/libgweather/libgweather-4.2.0.ebuild b/dev-libs/libgweather/libgweather-4.2.0.ebuild
29 new file mode 100644
30 index 000000000000..a389d124a232
31 --- /dev/null
32 +++ b/dev-libs/libgweather/libgweather-4.2.0.ebuild
33 @@ -0,0 +1,90 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +PYTHON_COMPAT=( python3_{8..11} )
39 +
40 +inherit gnome.org gnome2-utils meson python-any-r1 vala xdg
41 +
42 +DESCRIPTION="Location and timezone database and weather-lookup library"
43 +HOMEPAGE="https://wiki.gnome.org/Projects/LibGWeather"
44 +
45 +LICENSE="GPL-2+"
46 +SLOT="4/4-0" # subslot = 4-(libgweather-4 soname suffix)
47 +
48 +IUSE="gtk-doc +introspection test +vala"
49 +RESTRICT="!test? ( test )"
50 +REQUIRED_USE="
51 + vala? ( introspection )
52 + gtk-doc? ( introspection )
53 +"
54 +
55 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
56 +
57 +RDEPEND="
58 + >=dev-libs/glib-2.68.0:2
59 + >=net-libs/libsoup-2.99.2:3.0
60 + sci-geosciences/geocode-glib:2
61 + >=net-libs/libsoup-2.44.0:2.4
62 + sci-geosciences/geocode-glib:0
63 + >=dev-libs/libxml2-2.6.0:2
64 + dev-libs/json-glib
65 + introspection? ( >=dev-libs/gobject-introspection-1.54:= )
66 +"
67 +DEPEND="${RDEPEND}"
68 +BDEPEND="
69 + dev-util/glib-utils
70 + gtk-doc? ( >=dev-util/gi-docgen-2021.6 )
71 + >=sys-devel/gettext-0.19.8
72 + virtual/pkgconfig
73 + ${PYTHON_DEPS}
74 + $(python_gen_any_dep 'dev-python/pygobject[${PYTHON_USEDEP}]')
75 + vala? ( $(vala_depend) )
76 +"
77 +
78 +python_check_deps() {
79 + python_has_version -b "dev-python/pygobject[${PYTHON_USEDEP}]"
80 +}
81 +
82 +pkg_setup() {
83 + python-any-r1_pkg_setup
84 +}
85 +
86 +src_prepare() {
87 + default
88 + gnome2_environment_reset
89 + use vala && vala_setup
90 + # The metar test requires network access
91 + if has network-sandbox ${FEATURES}; then
92 + sed -i -e '/metar/d' libgweather/tests/meson.build || die
93 + fi
94 +}
95 +
96 +src_configure() {
97 + local emesonargs=(
98 + $(meson_use vala enable_vala)
99 + $(meson_use gtk-doc gtk_doc)
100 + $(meson_use introspection)
101 + $(meson_use test tests)
102 + -Dsoup2=false
103 + )
104 + meson_src_configure
105 +}
106 +
107 +src_install() {
108 + meson_src_install
109 + if use gtk-doc; then
110 + mkdir -p "${ED}"/usr/share/gtk-doc/ || die
111 + mv "${ED}"/usr/share/doc/libgweather-4.0 "${ED}"/usr/share/gtk-doc/ || die
112 + fi
113 +}
114 +
115 +pkg_postinst() {
116 + xdg_pkg_postinst
117 + gnome2_schemas_update
118 +}
119 +
120 +pkg_postrm() {
121 + xdg_pkg_postrm
122 + gnome2_schemas_update
123 +}
124
125 diff --git a/profiles/package.mask b/profiles/package.mask
126 index fd906c68a295..5301d1e9cc25 100644
127 --- a/profiles/package.mask
128 +++ b/profiles/package.mask
129 @@ -384,6 +384,7 @@ sys-devel/automake:1.11
130 # New major parallel-installable release which needs special care to not
131 # end up loaded into the same process together with the earlier libsoup ABI.
132 # Migration to it is expected for GNOME 42, NOT to be unmasked with GNOME 41.
133 +>=dev-libs/libgweather-4.2.0
134 >=dev-util/devhelp-43
135 >=gnome-extra/gnome-calculator-43
136 media-libs/libshumate