summaryrefslogtreecommitdiff
blob: 22046abb56f48dfc98203cd4e72d421eedae61b3 (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
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Karl Trygve Kalleberg <karltk@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.1-r2.ebuild,v 1.1 2002/03/22 16:09:28 gbevin Exp $

S=${WORKDIR}/${P}

DESCRIPTION="A parser generator for Java, C++ and Sather, written in Java"

SRC_URI="http://www.antlr.org/D00100100/antlr-2.7.1.tar.gz"

HOMEPAGE="http://www.antlr.org"

DEPEND=">=virtual/jdk-1.2
        >=dev-java/jikes-1.13
		>=sys-devel/gcc-2.95.3"

src_compile() {
	PATH=${PATH}:${JAVA_HOME}/bin JAVAC=jikes make all-jars || die
	cd lib/cpp
	econf || die
	emake || die
}

src_install () {
	insinto /usr/share/antlr
	doins antlr.debug.jar antlr.jar antlrall.jar
	doins extras/antlr-mode.el
	dohtml -r doc/*
	cp -R examples ${D}/usr/share/doc/${P}/
	dodoc RIGHTS
	cd lib/cpp
	make DESTDIR=$D install
}