summaryrefslogtreecommitdiff
blob: 887dad2ae73324eedd3b4b3381ab28dad660afeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hdoc/hdoc-0.8.2.ebuild,v 1.5 2004/07/02 04:17:27 eradicator Exp $

DESCRIPTION="A documentation generator for Haskell"

HOMEPAGE="http://www.fmi.uni-passau.de/~groessli/hdoc/"

LICENSE="GPL-2"

IUSE="nhc98"
SLOT="0"
KEYWORDS="~x86"

DEPEND="!nhc98? ( virtual/ghc )
	nhc98?  ( dev-lang/nhc98
		dev-haskell/hmake )"
RDEPEND="virtual/libc"

SRC_URI="http://www.fmi.uni-passau.de/~groessli/hdoc/${P}.tar.gz"

src_compile() {
	if use nhc98 ; then
		buildwith="--with-compiler=nhc98"
		# I don't see why nhc98 complains in the presence of this
		# file, but I am certain that it does no harm to remove it ...
		rm hsparser/HsParser.ly
	else
		buildwith="--with-compiler=ghc"
	fi
	econf ${buildwith} || die "econf failed"
	emake || die "emake failed"
}

src_install () {
	# DESTDIR does not work, but only bindir is used ...
	make bindir=${D}/usr/bin install || die
	dodoc docs/hdoc.pdf
}