From 1c5dc777fcf9c98e03e3f071fb6b4f70ee1c420b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Jakub=C3=AD=C4=8Dek?= Date: Sun, 21 Feb 2010 14:32:41 +0000 Subject: [PATCH] - Build the doxygen documentation for the C target in a C-docs subpackage - BuildRequires/Requires cleanup across subpackages - Update to 3.2, bootstrap build. - Build bindings for C and JavaScript as well as gunit and maven plugin. --- antlr-clean-generated | 23 --- antlr-pom.patch | 94 ++++++++++++ antlr3 | 2 +- antlr3.spec | 323 +++++++++++++++++++++++++++++++++++------- settings.xml | 47 ++++++ sources | 7 +- 6 files changed, 421 insertions(+), 75 deletions(-) delete mode 100644 antlr-clean-generated create mode 100644 antlr-pom.patch create mode 100644 settings.xml diff --git a/antlr-clean-generated b/antlr-clean-generated deleted file mode 100644 index e8fbcca..0000000 --- a/antlr-clean-generated +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/python -# Clean out files which look to have been generated by antlr -# Author: Colin Walters -# This file is hereby placed into the public domain. - -import os,sys,re - -_antlr_compiled_re = re.compile(r'// \$ANTLR.*:.*->.*\$$') - -def clean_antlr_generated(basedir): - for (dpath,subdirs,fnames) in os.walk(basedir): - for fname in fnames: - fpath = os.path.join(dpath, fname) - f = open(fpath) - first = f.readline() - f.close() - if _antlr_compiled_re.match(first): - print "Deleting antlr-compiled %s" % (fpath,) - os.unlink(fpath) - -if __name__ == '__main__': - basedir = sys.argv[1] - clean_antlr_generated(basedir) diff --git a/antlr-pom.patch b/antlr-pom.patch new file mode 100644 index 0000000..9ec176f --- /dev/null +++ b/antlr-pom.patch @@ -0,0 +1,94 @@ +--- gunit/pom.xml.orig 2010-01-29 02:12:43.000000000 +0100 ++++ gunit/pom.xml 2010-01-29 02:12:54.000000000 +0100 +@@ -142,16 +142,6 @@ + maven-surefire-plugin + + +- +- org.codehaus.mojo +- findbugs-maven-plugin +- +- true +- true +- true +- +- +- + + + +--- runtime/Java/pom.xml.orig 2010-01-29 02:13:13.000000000 +0100 ++++ runtime/Java/pom.xml 2010-01-29 02:13:21.000000000 +0100 +@@ -104,15 +104,6 @@ + + + +- +- org.codehaus.mojo +- findbugs-maven-plugin +- +- true +- true +- true +- +- + + + +--- tool/pom.xml.orig 2009-09-23 20:50:28.000000000 +0200 ++++ tool/pom.xml 2010-02-01 13:01:08.000000000 +0100 +@@ -75,8 +82,7 @@ + + + +- org.codehaus.mojo +- antlr-maven-plugin ++ maven-antlr-plugin + + src/main/antlr2/org/antlr/grammar/v2 + antlr.g codegen.g, antlr.print.g, assign.types.g, buildnfa.g, define.g +--- pom.xml.orig 2009-09-23 20:46:18.000000000 +0200 ++++ pom.xml 2010-02-01 13:45:20.000000000 +0100 +@@ -146,25 +154,6 @@ + + + +- +- org.codehaus.mojo +- buildnumber-maven-plugin +- +- {0,date,MMM dd, yyyy} {0,time,kk:mm:ss} +- +- timestamp +- +- +- +- +- validate +- +- create +- +- +- +- +- + + maven-compiler-plugin + +@@ -179,16 +168,6 @@ + + + +- org.codehaus.mojo +- findbugs-maven-plugin +- +- true +- true +- true +- +- +- +- + +