dev-lang/ghc: guard manuals building behind USE=doc

Building ghc.1 needs sphinx present in system.

Reported-by: Patrick McLean
Package-Manager: Portage-2.3.6, Repoman-2.3.2
This commit is contained in:
Sergei Trofimovich
2017-07-12 21:14:35 +01:00
parent 97e0ba9da8
commit 73b0ef0936

View File

@@ -514,6 +514,7 @@ src_configure() {
# app-text/dblatex is not in portage, can not build PDF or PS
echo "BUILD_SPHINX_PDF = NO" >> mk/build.mk
echo "BUILD_SPHINX_HTML = $(usex doc YES NO)" >> mk/build.mk
echo "BUILD_MAN = $(usex doc YES NO)" >> mk/build.mk
# this controls presence on 'xhtml' and 'haddock' in final install
echo "HADDOCK_DOCS = YES" >> mk/build.mk