summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2012-03-09 22:01:11 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2012-03-09 22:01:11 +0000
commitcc7e79a8621806f202f56b85f68aff52f58c56f5 (patch)
treec0e97a6ec8168eec140838e27306e71e13903d29 /eclass
parentFix build failure against system's cabal-1.10 (use cabal bundled with ghc). F... (diff)
downloadgentoo-2-cc7e79a8621806f202f56b85f68aff52f58c56f5.tar.gz
gentoo-2-cc7e79a8621806f202f56b85f68aff52f58c56f5.tar.bz2
gentoo-2-cc7e79a8621806f202f56b85f68aff52f58c56f5.zip
Drop haddock from DEPENDS when USE=doc haddock. haddock-2.9.2+ can be used right in the ebuild phase to build it's docs.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog6
-rw-r--r--eclass/haskell-cabal.eclass6
2 files changed, 9 insertions, 3 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 73c8083eaeba..64602aa0d7f1 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.157 2012/03/08 14:24:40 pesa Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.158 2012/03/09 22:01:11 slyfox Exp $
+
+ 09 Mar 2012; Sergei Trofimovich <slyfox@gentoo.org> haskell-cabal.eclass:
+ Drop haddock from DEPENDS when USE=doc haddock. haddock-2.9.2+ can be used
+ right in the ebuild phase to build it's docs.
08 Mar 2012; Davide Pesavento <pesa@gentoo.org> qt4-build.eclass:
Die earlier on unsupported EAPI.
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass
index fe101b834608..44f35688f787 100644
--- a/eclass/haskell-cabal.eclass
+++ b/eclass/haskell-cabal.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.27 2012/02/07 12:47:54 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.28 2012/03/09 22:01:11 slyfox Exp $
# @ECLASS: haskell-cabal.eclass
# @MAINTAINER:
@@ -95,7 +95,9 @@ done
if [[ -n "${CABAL_USE_HADDOCK}" ]]; then
IUSE="${IUSE} doc"
- DEPEND="${DEPEND} doc? ( dev-haskell/haddock )"
+ # don't require depend on itself to build docs.
+ # ebuild bootstraps docs from just built binary
+ [[ ${CATEGORY}/${PN} = "dev-haskell/haddock" ]] || DEPEND="${DEPEND} doc? ( dev-haskell/haddock )"
fi
if [[ -n "${CABAL_USE_HSCOLOUR}" ]]; then