summaryrefslogtreecommitdiff
blob: 6864d895783061f9f4cf67b66a09b9b8bf80b9a3 (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
41
42
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.2_alpha2.ebuild,v 1.5 2003/02/13 10:06:55 vapier Exp $

S=${WORKDIR}/${PN}-2.7.2a2
DESCRIPTION="A parser generator for Java, C++ and Sather, written in Java"
SRC_URI="http://www.antlr.org/nirvana/antlr-2.7.2a2.tar.gz"
HOMEPAGE="http://www.antlr.org"
DEPEND=">=virtual/jdk-1.2
	>=dev-java/jikes-1.13"
SLOT="2"
LICENSE="ANTLR"
KEYWORDS="x86"

src_compile() {

	if [ ! -f antlrall.jar ] ; then 
		./mkalljar
	fi

	export JAVAC=jikes

	echo $CLASSPATH
	econf || die	
	make all || die

#	cd lib/cpp
#	econf || die
#	emake || die
}

src_install () {
	insinto /usr/share/antlr
	dojar 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
}