[arch-commits] Commit in java-antlr3/repos (4 files)
Guillaume Alaux
guillaume at archlinux.org
Sat Sep 15 14:04:29 UTC 2012
Date: Saturday, September 15, 2012 @ 10:04:28
Author: guillaume
Revision: 166679
archrelease: copy trunk to extra-any
Added:
java-antlr3/repos/extra-any/
java-antlr3/repos/extra-any/LICENSE
(from rev 166678, java-antlr3/trunk/LICENSE)
java-antlr3/repos/extra-any/PKGBUILD
(from rev 166678, java-antlr3/trunk/PKGBUILD)
java-antlr3/repos/extra-any/antlrworks-1.4.3-jdk7.patch
(from rev 166678, java-antlr3/trunk/antlrworks-1.4.3-jdk7.patch)
-----------------------------+
LICENSE | 8 ++++++++
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
antlrworks-1.4.3-jdk7.patch | 41 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 86 insertions(+)
Copied: java-antlr3/repos/extra-any/LICENSE (from rev 166678, java-antlr3/trunk/LICENSE)
===================================================================
--- extra-any/LICENSE (rev 0)
+++ extra-any/LICENSE 2012-09-15 14:04:28 UTC (rev 166679)
@@ -0,0 +1,8 @@
+Copyright (c) 2010 Terence Parr
+All rights reserved.
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copied: java-antlr3/repos/extra-any/PKGBUILD (from rev 166678, java-antlr3/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD (rev 0)
+++ extra-any/PKGBUILD 2012-09-15 14:04:28 UTC (rev 166679)
@@ -0,0 +1,37 @@
+# Maintainer: Guillaume ALAUX <guillaume at archlinux.org>
+_libname=antlr
+pkgname=java-${_libname}3
+pkgver=1.4.3
+pkgrel=1
+pkgdesc="Language tool that provides a framework for constructing grammatical parsers"
+arch=('any')
+url="http://www.antlr.org/"
+license=('BSD')
+depends=('java-runtime')
+makedepends=('apache-ant')
+# Thanks Mageia:
+# http://svnweb.mageia.org/packages/cauldron/antlrworks/current/SOURCES/antlrworks-1.4.3-jdk7.patch
+# Patch proposed upstream on 2012-09-15:
+# http://www.antlr.org/pipermail/antlr-interest/2012-September/thread.html
+source=(http://www.antlr.org/download/${_libname}works-${pkgver}-src.zip
+ antlrworks-1.4.3-jdk7.patch
+ LICENSE)
+sha256sums=('ec76aa4f2aa06283bd8acff418d5a0517edff024c10dfab978f0023cf877fec7'
+ '39cf6629d7a779af5434d207fe467bde9c4bf2258c5aee2b11b376a1ffbf960c'
+ 'a13d8ca68ed79457f0e1c4465bbfa8a0704ccad75e5a909ed2fb7632f3fd77b6')
+
+build() {
+ cd "${srcdir}"
+
+ patch -p1 < antlrworks-1.4.3-jdk7.patch
+ ant build
+}
+
+package() {
+ install -Dm644 ${srcdir}/dist/${_libname}works-${pkgver}.jar \
+ ${pkgdir}/usr/share/java/${_libname}works-${pkgver}.jar
+ ln -s ${_libname}works-${pkgver}.jar \
+ ${pkgdir}/usr/share/java/${_libname}works.jar
+
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}
Copied: java-antlr3/repos/extra-any/antlrworks-1.4.3-jdk7.patch (from rev 166678, java-antlr3/trunk/antlrworks-1.4.3-jdk7.patch)
===================================================================
--- extra-any/antlrworks-1.4.3-jdk7.patch (rev 0)
+++ extra-any/antlrworks-1.4.3-jdk7.patch 2012-09-15 14:04:28 UTC (rev 166679)
@@ -0,0 +1,41 @@
+
+diff -up antlrworks-1.4.3/src/aw/org/antlr/works/grammar/decisiondfa/DecisionDFAEngine.java.orig antlrworks-1.4.3/src/aw/org/antlr/works/grammar/decisiondfa/DecisionDFAEngine.java
+--- antlrworks-1.4.3/src/aw/org/antlr/works/grammar/decisiondfa/DecisionDFAEngine.java.orig 2011-08-08 11:53:50.000000000 +0200
++++ antlrworks-1.4.3/src/aw/org/antlr/works/grammar/decisiondfa/DecisionDFAEngine.java 2012-02-02 13:53:50.536902161 +0100
+@@ -106,13 +106,13 @@ public class DecisionDFAEngine {
+ if(g == null) return;
+
+ if(g.decisionsWhoseDFAsUsesSemPreds != null) {
+- for(DFA dfa : g.decisionsWhoseDFAsUsesSemPreds) {
++ for(DFA dfa : (List<DFA>) g.decisionsWhoseDFAsUsesSemPreds) {
+ usesSemPreds.add(dfa.getDecisionNumber());
+ }
+ }
+
+ if(g.decisionsWhoseDFAsUsesSynPreds != null) {
+- for(DFA dfa : g.decisionsWhoseDFAsUsesSynPreds) {
++ for(DFA dfa : (List<DFA>) g.decisionsWhoseDFAsUsesSynPreds) {
+ usesSynPreds.add(dfa.getDecisionNumber());
+ }
+ }
+diff -up antlrworks-1.4.3/src/aw/org/antlr/works/grammar/engine/GrammarPropertiesImpl.java.orig antlrworks-1.4.3/src/aw/org/antlr/works/grammar/engine/GrammarPropertiesImpl.java
+--- antlrworks-1.4.3/src/aw/org/antlr/works/grammar/engine/GrammarPropertiesImpl.java.orig 2011-08-08 11:53:50.000000000 +0200
++++ antlrworks-1.4.3/src/aw/org/antlr/works/grammar/engine/GrammarPropertiesImpl.java 2012-02-02 13:54:24.610451213 +0100
+@@ -400,7 +400,7 @@ public class GrammarPropertiesImpl imple
+ Grammar g = antlrEngine.getDefaultGrammar();
+ if(g != null) {
+ names.add(g.getRecognizerName());
+- for(Grammar gd : g.getDelegates()) {
++ for(Grammar gd : (List<Grammar>) g.getDelegates()) {
+ names.add(gd.getRecognizerName());
+ }
+ }
+@@ -408,7 +408,7 @@ public class GrammarPropertiesImpl imple
+ Grammar lexer = antlrEngine.getLexerGrammar();
+ if(lexer != null) {
+ names.add(lexer.getRecognizerName());
+- for(Grammar gd : lexer.getDelegates()) {
++ for(Grammar gd : (List<Grammar>) lexer.getDelegates()) {
+ names.add(gd.getRecognizerName());
+ }
+ }
More information about the arch-commits
mailing list