From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1112810-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 4610C138334
	for <garchives@archives.gentoo.org>; Tue, 24 Sep 2019 22:10:04 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7719DE08D1;
	Tue, 24 Sep 2019 22:10:03 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 59444E08D1
	for <gentoo-commits@lists.gentoo.org>; Tue, 24 Sep 2019 22:10:03 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id D071534B507
	for <gentoo-commits@lists.gentoo.org>; Tue, 24 Sep 2019 22:10:01 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 52FC2775
	for <gentoo-commits@lists.gentoo.org>; Tue, 24 Sep 2019 22:09:59 +0000 (UTC)
From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" <whissi@gentoo.org>
Message-ID: <1569362986.c3626a6f36ffb6d526337b51f2e89ab2f22cec52.whissi@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libxmlb/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-libs/libxmlb/libxmlb-0.1.11.ebuild
X-VCS-Directories: dev-libs/libxmlb/
X-VCS-Committer: whissi
X-VCS-Committer-Name: Thomas Deutschmann
X-VCS-Revision: c3626a6f36ffb6d526337b51f2e89ab2f22cec52
X-VCS-Branch: master
Date: Tue, 24 Sep 2019 22:09:59 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: bd1b3971-5e3b-4434-af6f-de7a1f75a4fa
X-Archives-Hash: 1e9e52603a112549c52ae0313fa239a3

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)"