blob: dceaa479f7462c5c5f884e7e2a5a057b931e4fbf (
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-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.ebuild,v 1.5 2003/09/06 22:26:46 msterret Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A parser generator for Java and C++, written in Java"
SRC_URI="http://www.antlr.org/download/${P}.tar.gz"
HOMEPAGE="http://www.antlr.org"
DEPEND=">=virtual/jdk-1.2
jikes? ( >=dev-java/jikes-1.13 )"
SLOT="2"
LICENSE="ANTLR"
KEYWORDS="x86"
IUSE="jikes"
src_unpack() {
unpack ${A}
cd ${S} && patch -p1 <${FILESDIR}/${P}-gcc3-gentoo.patch || die
}
src_compile() {
if [ -n "`use jikes`" ] ; then
export JAVAC=jikes
fi
echo $CLASSPATH
econf || die
make antlr.jar antlr.debug.jar antlrall.jar all || 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
}
|