summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kennedy <mkennedy@gentoo.org>2003-01-12 19:12:51 +0000
committerMatthew Kennedy <mkennedy@gentoo.org>2003-01-12 19:12:51 +0000
commit6c86b6aeac89f7163775a993696db1ddf57cf2f3 (patch)
treed8143d01f0ddffe405f624d8808523e0adaeb26b /dev-java
parentresolves http://bugs.gentoo.org/show_bug.cgi?id=13719 (too many .jars) (diff)
downloadgentoo-2-6c86b6aeac89f7163775a993696db1ddf57cf2f3.tar.gz
gentoo-2-6c86b6aeac89f7163775a993696db1ddf57cf2f3.tar.bz2
gentoo-2-6c86b6aeac89f7163775a993696db1ddf57cf2f3.zip
Code fix for GCC 3.2.1. No oustanding bug out on this (but prerequisite fix for makeme)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/antlr/ChangeLog10
-rw-r--r--dev-java/antlr/antlr-2.7.2_alpha2-r1.ebuild44
-rw-r--r--dev-java/antlr/files/antlr-2.7.2_alpha2-gcc3-gentoo.patch12
-rw-r--r--dev-java/antlr/files/digest-antlr-2.7.2_alpha2-r11
4 files changed, 66 insertions, 1 deletions
diff --git a/dev-java/antlr/ChangeLog b/dev-java/antlr/ChangeLog
index 68444c00a69a..11c91fb7738f 100644
--- a/dev-java/antlr/ChangeLog
+++ b/dev-java/antlr/ChangeLog
@@ -1,7 +1,15 @@
# ChangeLog for dev-java/antlr
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/ChangeLog,v 1.6 2002/08/09 00:07:06 karltk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/ChangeLog,v 1.7 2003/01/12 19:12:51 mkennedy Exp $
+*antlr-2.7.2_alpha2-r1 (Jan 2003)
+
+ 10 Jan 2003; Matthew Kennedy <mkennedy@gentoo.org>
+ antlr-2.7.2_alpha2-r1.ebuild, files/digest-antlr-2.7.2_alpha2-r1,
+ files/antrl-2.7.2_alpha2-r1-gcc3-gentoo.patch, ChangeLog :
+
+ Code fix for GCC 3.2.1. No oustanding bug out on this.
+
*antlr-2.7.2_alpha2 (25 Jun 2002)
01 Aug 2002; Karl Trygve Kalleberg <karltk@gentoo.org> antlr-2.7.2_alpha2.ebuild files/digest-antlr-2.7.2_alpha2 :
diff --git a/dev-java/antlr/antlr-2.7.2_alpha2-r1.ebuild b/dev-java/antlr/antlr-2.7.2_alpha2-r1.ebuild
new file mode 100644
index 000000000000..13bd10eccb91
--- /dev/null
+++ b/dev-java/antlr/antlr-2.7.2_alpha2-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2002 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-r1.ebuild,v 1.1 2003/01/12 19:12:51 mkennedy 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"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd ${S} && patch -p1 <${FILESDIR}/${P}-gcc3-gentoo.patch || die
+}
+
+src_compile() {
+
+ if [ ! -f antlrall.jar ] ; then
+ ./mkalljar
+ fi
+
+ export JAVAC=jikes
+
+ echo $CLASSPATH
+ econf || die
+ make 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
+}
+
diff --git a/dev-java/antlr/files/antlr-2.7.2_alpha2-gcc3-gentoo.patch b/dev-java/antlr/files/antlr-2.7.2_alpha2-gcc3-gentoo.patch
new file mode 100644
index 000000000000..cc09a74980ca
--- /dev/null
+++ b/dev-java/antlr/files/antlr-2.7.2_alpha2-gcc3-gentoo.patch
@@ -0,0 +1,12 @@
+diff -ur antlr-2.7.2a2~/lib/cpp/antlr/CharScanner.hpp antlr-2.7.2a2/lib/cpp/antlr/CharScanner.hpp
+--- antlr-2.7.2a2~/lib/cpp/antlr/CharScanner.hpp 2002-01-03 20:03:43.000000000 -0600
++++ antlr-2.7.2a2/lib/cpp/antlr/CharScanner.hpp 2003-01-12 11:41:51.000000000 -0600
+@@ -44,6 +44,8 @@
+ #include <antlr/LexerSharedInputState.hpp>
+ #include <map>
+
++#include <ctype.h>
++
+ #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
+ namespace antlr {
+ #endif
diff --git a/dev-java/antlr/files/digest-antlr-2.7.2_alpha2-r1 b/dev-java/antlr/files/digest-antlr-2.7.2_alpha2-r1
new file mode 100644
index 000000000000..4f0a1a5460c8
--- /dev/null
+++ b/dev-java/antlr/files/digest-antlr-2.7.2_alpha2-r1
@@ -0,0 +1 @@
+MD5 9c8b9cccf53effe450e755a66e67a27c antlr-2.7.2a2.tar.gz 1076842