blob: 2fc411db722caec7574604a68d3615f553c075b3 (
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
40
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/lhs2tex/lhs2tex-1.11.ebuild,v 1.7 2006/10/15 18:42:43 kosmikus Exp $
DESCRIPTION="Preprocessor for typesetting Haskell sources with LaTeX"
HOMEPAGE="http://www.iai.uni-bonn.de/~loeh/lhs2tex"
SRC_URI="http://www.iai.uni-bonn.de/~loeh/lhs2tex/${P/_pre/pre}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc64 sparc x86"
IUSE="doc"
S="${WORKDIR}/${P/_pre/pre}"
DEPEND=">=dev-tex/polytable-0.8.2
>=virtual/ghc-6.2.2
doc? ( dev-lang/hugs98 virtual/tetex )"
RDEPEND=">=dev-tex/polytable-0.8.2"
src_unpack() {
unpack ${A}
sed -i "s|-package lang||" ${S}/config.mk.in || die "patch failed"
}
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 -j1 || die "make failed"
}
src_install () {
DESTDIR="${D}" emake -j1 install || die "installation failed"
dodoc doc/Guide2.pdf
dodoc INSTALL RELEASE
}
|