commit: 32e95f25610244a94d027860d056816dbd99d986
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 17 22:55:30 2025 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Thu Dec 18 02:04:28 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32e95f25
dev-python/matplotlib: require poppler's cairo/png support
It is used for pdftops and pdftocairo. For the latter:
"""
Matplotlib's pgf support requires a recent LaTeX_ installation that includes
the TikZ/PGF packages (such as TeXLive_), preferably with XeLaTeX or LuaLaTeX
installed. If either pdftocairo or ghostscript is present on your system,
figures can optionally be saved to PNG images as well. The executables
for all applications must be located on your :envvar:`PATH`.
"""
This naturally fails if PNG support in poppler is disabled. The failure
is non-obvious -- subprocess.run fails, and stdout (not stderr) simply
contains the pdftocairo --help text. Careful inspection shows it does
not support the `-png` option in its argparse routine, not even to
immediately raise an "error: png support not available".
:/
The cairo support should be enabled too; that has a more obvious failure
mode (pdftocairo won't exist).
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
.../{matplotlib-3.10.7.ebuild => matplotlib-3.10.7-r1.ebuild} | 2 +-
.../{matplotlib-3.10.8.ebuild => matplotlib-3.10.8-r1.ebuild} | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-python/matplotlib/matplotlib-3.10.7.ebuild
b/dev-python/matplotlib/matplotlib-3.10.7-r1.ebuild
similarity index 99%
rename from dev-python/matplotlib/matplotlib-3.10.7.ebuild
rename to dev-python/matplotlib/matplotlib-3.10.7-r1.ebuild
index bf4a95d9121a..e99dfb581c91 100644
--- a/dev-python/matplotlib/matplotlib-3.10.7.ebuild
+++ b/dev-python/matplotlib/matplotlib-3.10.7-r1.ebuild
@@ -37,7 +37,7 @@ LATEX_DEPEND="
virtual/latex-base
app-text/dvipng
app-text/ghostscript-gpl
- app-text/poppler[utils]
+ app-text/poppler[cairo,png,utils]
dev-texlive/texlive-fontsrecommended
dev-texlive/texlive-latexextra
dev-texlive/texlive-luatex
diff --git a/dev-python/matplotlib/matplotlib-3.10.8.ebuild
b/dev-python/matplotlib/matplotlib-3.10.8-r1.ebuild
similarity index 99%
rename from dev-python/matplotlib/matplotlib-3.10.8.ebuild
rename to dev-python/matplotlib/matplotlib-3.10.8-r1.ebuild
index 449303c780db..2160f6ce33b0 100644
--- a/dev-python/matplotlib/matplotlib-3.10.8.ebuild
+++ b/dev-python/matplotlib/matplotlib-3.10.8-r1.ebuild
@@ -37,7 +37,7 @@ LATEX_DEPEND="
virtual/latex-base
app-text/dvipng
app-text/ghostscript-gpl
- app-text/poppler[utils]
+ app-text/poppler[cairo,png,utils]
dev-texlive/texlive-fontsrecommended
dev-texlive/texlive-latexextra
dev-texlive/texlive-luatex