diff options
| author | Eli Schwartz <eschwartz@gentoo.org> | 2025-12-17 17:55:30 -0500 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@gentoo.org> | 2025-12-17 21:04:28 -0500 |
| commit | 32e95f25610244a94d027860d056816dbd99d986 (patch) | |
| tree | 2de80fa307b8f5541c1889e9ffe699e56dd718ba /dev-python | |
| parent | e36e1cdb2a34e5a50ece846937d0d6986161099c (diff) | |
| download | gentoo-32e95f25610244a94d027860d056816dbd99d986.tar.gz gentoo-32e95f25610244a94d027860d056816dbd99d986.tar.bz2 gentoo-32e95f25610244a94d027860d056816dbd99d986.zip | |
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@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/matplotlib/matplotlib-3.10.7-r1.ebuild (renamed from dev-python/matplotlib/matplotlib-3.10.7.ebuild) | 2 | ||||
| -rw-r--r-- | dev-python/matplotlib/matplotlib-3.10.8-r1.ebuild (renamed from dev-python/matplotlib/matplotlib-3.10.8.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 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 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 |
