commit: d804dfa0aa9ffeae731255372171ce6fca461950 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Tue Jun 22 00:34:36 2021 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Jun 22 00:52:28 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d804dfa0
dev-python/agate: add xml test-against dependency Bug: https://bugs.gentoo.org/797397 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> dev-python/agate/agate-1.6.2.ebuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dev-python/agate/agate-1.6.2.ebuild b/dev-python/agate/agate-1.6.2.ebuild index 390df28bbab..fd3497ce471 100644 --- a/dev-python/agate/agate-1.6.2.ebuild +++ b/dev-python/agate/agate-1.6.2.ebuild @@ -13,8 +13,12 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="test" +IUSE="test +xml" RESTRICT="!test? ( test )" + +# Other packages have BDEPEND="test? ( dev-python/agate[xml] )" +LEATHER_VERSION_DEP=">=dev-python/leather-0.3.2" +TEST_AGAINST_RDEPEND="xml? ( ${LEATHER_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" RDEPEND=" >=dev-python/six-1.9.0[${PYTHON_USEDEP}] >=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}] @@ -23,9 +27,11 @@ RDEPEND=" >=dev-python/isodate-0.5.4[${PYTHON_USEDEP}] >=dev-python/pyicu-2.4.2[${PYTHON_USEDEP}] >=dev-python/python-slugify-1.2.1[${PYTHON_USEDEP}] - >=dev-python/leather-0.3.2[${PYTHON_USEDEP}] + ${LEATHER_VERSION_DEP}[${PYTHON_USEDEP}] + + ${TEST_AGAINST_RDEPEND} " -BDEPEND="test? ( >=dev-python/leather-0.3.2[xml,${PYTHON_USEDEP}] )" +BDEPEND="test? ( ${LEATHER_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" distutils_enable_tests pytest