diff options
Diffstat (limited to 'dev-util/darcs/darcs-1.0.7.ebuild')
-rw-r--r-- | dev-util/darcs/darcs-1.0.7.ebuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/dev-util/darcs/darcs-1.0.7.ebuild b/dev-util/darcs/darcs-1.0.7.ebuild index 6e978386a247..f736d1a227ee 100644 --- a/dev-util/darcs/darcs-1.0.7.ebuild +++ b/dev-util/darcs/darcs-1.0.7.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/darcs/darcs-1.0.7.ebuild,v 1.7 2007/12/21 00:29:10 dcoutts Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/darcs/darcs-1.0.7.ebuild,v 1.8 2007/12/30 16:30:48 kolmodin Exp $ inherit base autotools eutils @@ -29,6 +29,15 @@ RDEPEND=">=net-misc/curl-7.10.2 S=${WORKDIR}/${MY_P} +pkg_setup() { + if use doc && ! built_with_use -o dev-tex/latex2html png gif; then + eerror "Building darcs with USE=\"doc\" requires that" + eerror "dev-tex/latex2html is built with at least one of" + eerror "USE=\"png\" and USE=\"gif\"." + die "USE=doc requires dev-tex/latex2html with USE=\"png\" or USE=\"gif\"" + fi +} + src_unpack() { base_src_unpack |