diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-02-18 14:49:50 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-02-19 04:04:25 +0000 |
commit | 80321876fb80dd0dbc14c6281c2710ba6f3bbd2a (patch) | |
tree | 2294928aa520fdc66758e1141596731e3967f024 /dev-libs/mathjax | |
parent | dev-python/moto: Bump to 5.0.2 (diff) | |
download | gentoo-80321876fb80dd0dbc14c6281c2710ba6f3bbd2a.tar.gz gentoo-80321876fb80dd0dbc14c6281c2710ba6f3bbd2a.tar.bz2 gentoo-80321876fb80dd0dbc14c6281c2710ba6f3bbd2a.zip |
dev-libs/mathjax: fix build error for 2.x built without docs
The sed did not apply because the docs aren't extracted unless USE=doc.
In that case there's no point running it anyway.
Closes: https://bugs.gentoo.org/924879
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/mathjax')
-rw-r--r-- | dev-libs/mathjax/mathjax-2.7.7-r1.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dev-libs/mathjax/mathjax-2.7.7-r1.ebuild b/dev-libs/mathjax/mathjax-2.7.7-r1.ebuild index 9fea30af9a03..7c3e85efd7b3 100644 --- a/dev-libs/mathjax/mathjax-2.7.7-r1.ebuild +++ b/dev-libs/mathjax/mathjax-2.7.7-r1.ebuild @@ -62,7 +62,9 @@ pkg_setup() { src_prepare() { default - sed -e 's/add_stylesheet/add_css_file/' -i "${DOCS_S}"/conf.py || die + if use doc; then + sed -e 's/add_stylesheet/add_css_file/' -i "${DOCS_S}"/conf.py || die + fi } src_compile() { |