summaryrefslogtreecommitdiff
blob: f6ff3f4e3370737d12d38d024259a2e05e88a4dc (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.3.ebuild,v 1.11 2006/10/05 15:04:34 gustavoz Exp $

inherit java-pkg

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
	source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.2"
SLOT="0"
LICENSE="ANTLR"
KEYWORDS="x86 ppc amd64"
IUSE="source"

src_compile() {
	econf || die
	make all || die
}

src_install() {
	insinto /usr/share/antlr
	java-pkg_dojar *.jar
	use source && java-pkg_dosrc antlr

	doins extras/antlr-mode.el
	java-pkg_dohtml -r doc/*
	cp -R examples ${D}/usr/share/doc/${P}/
	dodoc RIGHTS
	cd lib/cpp
	make DESTDIR=$D install
}