diff options
author | Florian Schmaus <flow@gentoo.org> | 2024-12-11 09:43:10 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2024-12-11 09:48:55 +0100 |
commit | 10dc5dfe7fd75ccaa15722c6509142cb0b8d916c (patch) | |
tree | db107de92b1a2176d8d9df935ae024205c156be4 /dev-tex | |
parent | app-emulation/wine-gecko: add comment to do straight-to-stable (diff) | |
download | gentoo-10dc5dfe7fd75ccaa15722c6509142cb0b8d916c.tar.gz gentoo-10dc5dfe7fd75ccaa15722c6509142cb0b8d916c.tar.bz2 gentoo-10dc5dfe7fd75ccaa15722c6509142cb0b8d916c.zip |
dev-tex/minted: build documentation with just build latexminted
Based on a patch from Paul "negril" Zander. This allows us to drop the
circular BDEPEND on minted if USE=doc.
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-tex')
-rw-r--r-- | dev-tex/minted/minted-3.4.0.ebuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dev-tex/minted/minted-3.4.0.ebuild b/dev-tex/minted/minted-3.4.0.ebuild index 1acb9a3c9542..95f392722a0b 100644 --- a/dev-tex/minted/minted-3.4.0.ebuild +++ b/dev-tex/minted/minted-3.4.0.ebuild @@ -33,7 +33,6 @@ RDEPEND=" " BDEPEND=" doc? ( - >=dev-tex/minted-${PV} dev-texlive/texlive-fontsextra ) " @@ -74,8 +73,16 @@ src_install() { pushd latex/minted &> /dev/null || die local -x LATEX_DOC_ARGUMENTS="-shell-escape" - latex-package_src_install + latex-package_src_doinstall styles fonts bin if use doc; then + python_setup + local -x PYTHONPATH="${ED}/usr/lib/${EPYTHON}/site-packages" + local -x PATH="${ED}/usr/lib/python-exec/${EPYTHON}:${PATH}" + latex-package_src_doinstall doc + # The following line shouldn't be required, as 'doc' is expaned + # by latex-package.eclass to "… dtx … pdf", but without this, + # the pdf is *not* installed. Maybe a bug in + # latex-package.eclass? latex-package_src_doinstall pdf fi popd &> /dev/null || die |