Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dev-haskell/haddock-2.12.0: use bundled Cabal to make it build :] (fo…

…und out by qnikst)

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information...
commit 239b0d3c2f7fcc6bbec91190734976fa68aab063 1 parent da3a0cb
Sergei Trofimovich trofi authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 dev-haskell/haddock/haddock-2.12.0.ebuild
9 dev-haskell/haddock/haddock-2.12.0.ebuild
View
@@ -4,7 +4,7 @@
EAPI="4"
-CABAL_FEATURES="bin lib profile haddock hscolour"
+CABAL_FEATURES="bin lib profile haddock hscolour nocabaldep"
inherit eutils haskell-cabal pax-utils
DESCRIPTION="A documentation-generation tool for Haskell libraries"
@@ -44,7 +44,12 @@ src_configure() {
echo -e "#!/bin/sh\necho Haddock version ${PV}" > "${exe}"
chmod +x "${exe}"
- haskell-cabal_src_configure --with-haddock="${exe}"
+ # we use 'nocabaldep' to use ghc's bundled Cabal
+ # as external one is likely to break our haddock
+ # (known to work on 1.16.0 and breaks on 1.16.0.1!)
+ haskell-cabal_src_configure \
+ --with-haddock="${exe}" \
+ --constraint="Cabal == $(cabal-version)"
}
src_compile() {
Please sign in to comment.
Something went wrong with that request. Please try again.