commit: c3626a6f36ffb6d526337b51f2e89ab2f22cec52 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Tue Sep 24 21:52:28 2019 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Tue Sep 24 22:09:46 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3626a6f
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 <whissi <AT> gentoo.org> 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 487a34f0da4..51a1b304f84 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)"