commit:     1eaf4d223020104dd4461c8ae548d13276505455
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 29 01:22:38 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Mon Mar 29 01:39:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eaf4d22

dev-libs/libgweather: Use python-any-r1

Closes: https://bugs.gentoo.org/770655
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 dev-libs/libgweather/libgweather-3.36.2.ebuild | 8 +++++++-
 dev-libs/libgweather/libgweather-40.0.ebuild   | 8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/dev-libs/libgweather/libgweather-3.36.2.ebuild 
b/dev-libs/libgweather/libgweather-3.36.2.ebuild
index 6c35cbd8b67..8e0086d85c3 100644
--- a/dev-libs/libgweather/libgweather-3.36.2.ebuild
+++ b/dev-libs/libgweather/libgweather-3.36.2.ebuild
@@ -2,9 +2,10 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+PYTHON_COMPAT=( python3_{7..9} )
 VALA_USE_DEPEND="vapigen"
 
-inherit gnome.org gnome2-utils meson vala xdg
+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";
@@ -35,6 +36,7 @@ BDEPEND="
                app-text/docbook-xml-dtd:4.3 )
        >=sys-devel/gettext-0.19.8
        virtual/pkgconfig
+       ${PYTHON_DEPS}
        $(vala_depend)
 "
 
@@ -44,6 +46,10 @@ PATCHES=(
        "${FILESDIR}"/3.36.2-autoskip-network-test.patch
 )
 
+pkg_setup() {
+       python-any-r1_pkg_setup
+}
+
 src_prepare() {
        xdg_src_prepare
        vala_src_prepare

diff --git a/dev-libs/libgweather/libgweather-40.0.ebuild 
b/dev-libs/libgweather/libgweather-40.0.ebuild
index 46454d5c78d..a9e1c0918c2 100644
--- a/dev-libs/libgweather/libgweather-40.0.ebuild
+++ b/dev-libs/libgweather/libgweather-40.0.ebuild
@@ -2,9 +2,10 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+PYTHON_COMPAT=( python3_{7..9} )
 VALA_USE_DEPEND="vapigen"
 
-inherit gnome.org gnome2-utils meson vala xdg
+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";
@@ -35,6 +36,7 @@ BDEPEND="
                app-text/docbook-xml-dtd:4.3 )
        >=sys-devel/gettext-0.19.8
        virtual/pkgconfig
+       ${PYTHON_DEPS}
        $(vala_depend)
 "
 
@@ -44,6 +46,10 @@ PATCHES=(
        "${FILESDIR}"/40.0-autoskip-network-test.patch
 )
 
+pkg_setup() {
+       python-any-r1_pkg_setup
+}
+
 src_prepare() {
        xdg_src_prepare
        vala_src_prepare

Reply via email to