The dependency doesn't make sense since libxml2 has a python USE flag. That has to be added, too, for ${PYTHON_USEDEP} to be effective. However, it looks like the libxml2 usage has been replaced with lxml a long time ago, see upstream commit 45a4d079652f <https://github.com/sympy/sympy/commit/45a4d079652f58f4bc36466771836bf3d7c7ff73>. I might be missing something, but I guess the dependency on libxml2 shouldn't be fixed, but be replaced with one on lxml. BTW, wouldn't optfeature be a better fit for all these flags/dependencies?
Included a commit for this in a not-so-related merge request, but this commit could be cherry-picked earlier. https://github.com/gentoo/gentoo/pull/29636/commits/1fa32b7f8a231f29221c6f1b0905d94f68c4d81c
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=267f8e520aadfbe1b7461923fc83bec802bb4f85 commit 267f8e520aadfbe1b7461923fc83bec802bb4f85 Author: Jérôme Carretero <cJ@zougloub.eu> AuthorDate: 2023-02-17 14:44:37 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2023-02-19 19:46:15 +0000 dev-python/sympy: depend on lxml, not libxml2, for mathml (#890559) Closes: https://bugs.gentoo.org/890559 Signed-off-by: Jérôme Carretero <cJ-gentoo@zougloub.eu> Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/sympy/{sympy-1.11.1-r1.ebuild => sympy-1.11.1-r2.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)