From cc7e79a8621806f202f56b85f68aff52f58c56f5 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 9 Mar 2012 22:01:11 +0000 Subject: 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. --- eclass/ChangeLog | 6 +++++- eclass/haskell-cabal.eclass | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'eclass') 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 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 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 -- cgit v1.2.3-65-gdbad