From c3626a6f36ffb6d526337b51f2e89ab2f22cec52 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Tue, 24 Sep 2019 23:52:28 +0200 Subject: [PATCH] dev-libs/libxmlb: fix Python dependency Closes: https://bugs.gentoo.org/692904 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann --- dev-libs/libxmlb/libxmlb-0.1.11.ebuild | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dev-libs/libxmlb/libxmlb-0.1.11.ebuild b/dev-libs/libxmlb/libxmlb-0.1.11.ebuild index 487a34f0da43..51a1b304f84c 100644 --- a/dev-libs/libxmlb/libxmlb-0.1.11.ebuild +++ b/dev-libs/libxmlb/libxmlb-0.1.11.ebuild @@ -3,7 +3,9 @@ EAPI=7 -inherit meson +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) + +inherit meson python-any-r1 DESCRIPTION="Library to help create and query binary XML blobs" HOMEPAGE="https://github.com/hughsie/libxmlb" @@ -29,8 +31,20 @@ DEPEND=" BDEPEND=" >=dev-util/meson-0.47.0 virtual/pkgconfig + introspection? ( + $(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') + ${PYTHON_DEPS} + ) " +python_check_deps() { + has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use introspection && python-any-r1_pkg_setup +} + src_configure() { local emesonargs=( -Dgtkdoc="$(usex doc true false)" -- 2.26.2