summaryrefslogtreecommitdiff
blob: ce48bd809f750291a211950701e8f6ef6e32af53 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/lhs2tex/lhs2tex-1.10_pre.ebuild,v 1.3 2004/06/24 22:15:48 agriffis Exp $

SRC_URI="http://www.cs.uu.nl/~andres/lhs2tex/${PN}-1.10pre.tar.bz2"

IUSE="doc"

DESCRIPTION="Preprocessor for typesetting Haskell sources with LaTeX"
HOMEPAGE="http://www.cs.uu.nl/~andres/lhs2tex"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

S="${WORKDIR}/${PN}-1.10pre"

DEPEND=">=dev-tex/polytable-0.7.2
	>=virtual/ghc-5.04
	doc? ( dev-lang/hugs98 )
	virtual/tetex"

src_compile() {
	# polytable is installed separately
	econf --disable-polytable || die "econf failed"
	# if doc is set, we build the documentation instead
	# of using the prebuilt file
	use doc && rm doc/Guide2.dontbuild
	# emake doesn't work because lhs2TeX interactive calls are
	# broken
	make || die "make failed"
}

src_install () {
	DESTDIR="${D}" make install || die "installation failed"
	dodoc doc/Guide2.pdf
	dodoc INSTALL RELEASE
}