haskell-cabal.eclass: unconditionally use bundled haddock for USE=doc

Reported-by: Toralf Förster
Bug: https://bugs.gentoo.org/760863#c10
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich
2020-12-20 23:18:06 +00:00
parent 3ca2bf22e5
commit bee7c2e25c

View File

@@ -109,15 +109,6 @@ done
if [[ -n "${CABAL_USE_HADDOCK}" ]]; then
IUSE="${IUSE} doc"
# don't require depend on itself to build docs.
# ebuild bootstraps docs from just built binary
#
# starting from ghc-7.10.2 we install haddock bundled with
# ghc to keep links to base and ghc library, otherwise
# newer haddock versions change index format and can't
# read index files for packages coming with ghc.
[[ ${CATEGORY}/${PN} = "dev-haskell/haddock" ]] || \
DEPEND="${DEPEND} doc? ( || ( dev-haskell/haddock >=dev-lang/ghc-7.10.2 ) )"
fi
if [[ -n "${CABAL_USE_HSCOLOUR}" ]]; then