From 1bc9c3b9d5a8c51b67f6ea2f57bdd76ff5073097 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Sep 2022 03:11:19 +0100 Subject: gentoo auto-resync : 28:09:2022 - 03:11:19 --- dev-libs/libgweather/libgweather-4.0.0-r1.ebuild | 81 ++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 dev-libs/libgweather/libgweather-4.0.0-r1.ebuild (limited to 'dev-libs/libgweather/libgweather-4.0.0-r1.ebuild') diff --git a/dev-libs/libgweather/libgweather-4.0.0-r1.ebuild b/dev-libs/libgweather/libgweather-4.0.0-r1.ebuild new file mode 100644 index 000000000000..8f5a335babca --- /dev/null +++ b/dev-libs/libgweather/libgweather-4.0.0-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{8..10} ) + +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 )" + +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.44:2.4 + >=dev-libs/libxml2-2.6.0:2 + sci-geosciences/geocode-glib:0 + + introspection? ( >=dev-libs/gobject-introspection-1.54:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/glib-utils + gtk-doc? ( + >=dev-util/gi-docgen-2021.6 + app-text/docbook-xml-dtd:4.3 + ) + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/pygobject[${PYTHON_USEDEP}]') + vala? ( $(vala_depend) ) +" + +PATCHES=( + "${FILESDIR}"/4.0.0-autoskip-network-test.patch + "${FILESDIR}"/4.0.0-vapigen.patch +) + +python_check_deps() { + 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 +} + +src_configure() { + local emesonargs=( + $(meson_use vala enable_vala) + $(meson_use gtk-doc gtk_doc) + $(meson_use introspection) + $(meson_use test tests) + -Dsoup2=true + ) + meson_src_configure +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} -- cgit v1.2.3