diff options
author | Pascal Jäger <pascal.jaeger@leimstift.de> | 2022-09-21 14:05:21 +0200 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2022-09-30 12:52:05 -0400 |
commit | cc0853ba9c91dcd9887d922fcbe7026958327cbb (patch) | |
tree | 96c7783ed9d8ba5310befb422fa8b5b0f2952715 /dev-libs/libgweather | |
parent | gnome-extra/evolution-data-server: add dep <dev-libs/libgweather-4.2.0:4 (diff) | |
download | gentoo-cc0853ba9c91dcd9887d922fcbe7026958327cbb.tar.gz gentoo-cc0853ba9c91dcd9887d922fcbe7026958327cbb.tar.bz2 gentoo-cc0853ba9c91dcd9887d922fcbe7026958327cbb.zip |
dev-libs/libgweather: Version bump to 4.2.0
Closes: https://github.com/gentoo/gentoo/pull/27375
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-libs/libgweather')
-rw-r--r-- | dev-libs/libgweather/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libgweather/libgweather-4.2.0.ebuild | 90 |
2 files changed, 91 insertions, 0 deletions
diff --git a/dev-libs/libgweather/Manifest b/dev-libs/libgweather/Manifest index b886c39a5164..c105b9fb2070 100644 --- a/dev-libs/libgweather/Manifest +++ b/dev-libs/libgweather/Manifest @@ -1,2 +1,3 @@ DIST libgweather-4.0.0.tar.xz 4722620 BLAKE2B f2500d065fe9607b740c2f6c87378d5fc86c15951b2880f89c3ac22021d085eed601b645dcf1c9864fe1fa47860aa14ed1ab858263a7634c3b7615231d3ee6d1 SHA512 1441b8996a53b277e9453d3fcf32448800c963f40c32542f9055362bc3188dcf2e706466133d53b3f1b6343dc97b15cf5eabe16b950e7c9451cb79eeef87a9c3 +DIST libgweather-4.2.0.tar.xz 2752164 BLAKE2B 9cc51363d6a2a09497269760701e0e0c1beb68c0096262fb6e2885414f838b41c151df7b057def457fdd49f9036d853ab624a9683a5cf57bbdefaed5376fe69f SHA512 cd95c6714575c0afc52455bb99c9116af27716868648debe0e5309904cfaf7516cf2379e415b3d9dd57b5dd223bae8e8acbaf705a3867dad8f75aec22eea908e DIST libgweather-40.0.tar.xz 2704404 BLAKE2B 27bc69c350ae91a07307d75b5ea1d03bb251f51bf87d5d54861965b61d7ed825ab708466cbe9d961c4f544b8b17ca6ed37b723c003ce2c1ef020270d6812c61d SHA512 72e295246bf03550039a70bd4bf5b8f06357a6b70e04308c197fba309e406d410a97d128d849d97a29a6a114faa1ef5452e6632870b7ea45223a0c305c228cc1 diff --git a/dev-libs/libgweather/libgweather-4.2.0.ebuild b/dev-libs/libgweather/libgweather-4.2.0.ebuild new file mode 100644 index 000000000000..a389d124a232 --- /dev/null +++ b/dev-libs/libgweather/libgweather-4.2.0.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{8..11} ) + +inherit gnome.org gnome2-utils meson python-any-r1 vala xdg + +DESCRIPTION="Location and timezone database and weather-lookup library" +HOMEPAGE="https://wiki.gnome.org/Projects/LibGWeather" + +LICENSE="GPL-2+" +SLOT="4/4-0" # subslot = 4-(libgweather-4 soname suffix) + +IUSE="gtk-doc +introspection test +vala" +RESTRICT="!test? ( test )" +REQUIRED_USE=" + vala? ( introspection ) + gtk-doc? ( introspection ) +" + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" + +RDEPEND=" + >=dev-libs/glib-2.68.0:2 + >=net-libs/libsoup-2.99.2:3.0 + sci-geosciences/geocode-glib:2 + >=net-libs/libsoup-2.44.0:2.4 + sci-geosciences/geocode-glib:0 + >=dev-libs/libxml2-2.6.0:2 + dev-libs/json-glib + introspection? ( >=dev-libs/gobject-introspection-1.54:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/glib-utils + gtk-doc? ( >=dev-util/gi-docgen-2021.6 ) + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/pygobject[${PYTHON_USEDEP}]') + vala? ( $(vala_depend) ) +" + +python_check_deps() { + python_has_version -b "dev-python/pygobject[${PYTHON_USEDEP}]" +} + +pkg_setup() { + python-any-r1_pkg_setup +} + +src_prepare() { + default + gnome2_environment_reset + use vala && vala_setup + # The metar test requires network access + if has network-sandbox ${FEATURES}; then + sed -i -e '/metar/d' libgweather/tests/meson.build || die + fi +} + +src_configure() { + local emesonargs=( + $(meson_use vala enable_vala) + $(meson_use gtk-doc gtk_doc) + $(meson_use introspection) + $(meson_use test tests) + -Dsoup2=false + ) + meson_src_configure +} + +src_install() { + meson_src_install + if use gtk-doc; then + mkdir -p "${ED}"/usr/share/gtk-doc/ || die + mv "${ED}"/usr/share/doc/libgweather-4.0 "${ED}"/usr/share/gtk-doc/ || die + fi +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} |