blob: 3a2ea0f1f6e8f973a3bab5a2a68792a32db74f55 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/bnfc-2.1.2.ebuild,v 1.2 2004/11/11 11:11:49 mr_bones_ Exp $
DESCRIPTION="BNF Converter -- a sophisticated parser generator"
HOMEPAGE="http://www.cs.chalmers.se/~markus/BNFC/"
SRC_URI="http://www.cs.chalmers.se/~markus/BNFC/${PN}_${PV}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc"
DEPEND=">=virtual/ghc-6.2
doc? ( virtual/tetex )"
RDEPEND="virtual/libc"
S="${WORKDIR}/BNFC"
src_unpack() {
unpack ${A}
}
src_compile() {
emake GHC_OPTS=-O || die "emake failed"
}
src_install() {
dobin bnfc
if use doc ; then
cd doc
pdflatex LBNF-report.tex
pdflatex LBNF-report.tex
dodoc LBNF-report.pdf
fi
}
|