summaryrefslogtreecommitdiffstats
path: root/app-text/jing/files
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/jing/files')
-rw-r--r--app-text/jing/files/build-patch.diff23
-rw-r--r--app-text/jing/files/build-r1.xml34
-rw-r--r--app-text/jing/files/jing-20030619-xerces.patch33
3 files changed, 90 insertions, 0 deletions
diff --git a/app-text/jing/files/build-patch.diff b/app-text/jing/files/build-patch.diff
new file mode 100644
index 0000000..f60d9af
--- /dev/null
+++ b/app-text/jing/files/build-patch.diff
@@ -0,0 +1,23 @@
+diff -uprN src.orig/com/thaiopensource/validate/schematron/SaxonSchemaReaderFactory.java src/com/thaiopensource/validate/schematron/SaxonSchemaReaderFactory.java
+--- src.orig/com/thaiopensource/validate/schematron/SaxonSchemaReaderFactory.java 2004-11-07 02:12:02.231733296 +0100
++++ src/com/thaiopensource/validate/schematron/SaxonSchemaReaderFactory.java 2004-11-07 02:11:40.888977888 +0100
+@@ -1,6 +1,6 @@
+ package com.thaiopensource.validate.schematron;
+
+-import com.icl.saxon.TransformerFactoryImpl;
++import net.sf.saxon.TransformerFactoryImpl;
+
+ import javax.xml.transform.TransformerFactory;
+
+diff -uprN src.orig/com/thaiopensource/validate/schematron/SchemaReaderImpl.java src/com/thaiopensource/validate/schematron/SchemaReaderImpl.java
+--- src.orig/com/thaiopensource/validate/schematron/SchemaReaderImpl.java 2004-11-07 02:12:02.230733448 +0100
++++ src/com/thaiopensource/validate/schematron/SchemaReaderImpl.java 2004-11-07 02:11:40.886978192 +0100
+@@ -85,7 +85,7 @@ class SchemaReaderImpl implements Schema
+ private void initTransformerFactory(TransformerFactory factory) {
+ String name = factory.getClass().getName();
+ try {
+- if (name.equals("com.icl.saxon.TransformerFactoryImpl"))
++ if (name.equals("net.sf.saxon.TransformerFactoryImpl"))
+ factory.setAttribute("http://icl.com/saxon/feature/linenumbering",
+ Boolean.TRUE);
+ else if (name.equals("org.apache.xalan.processor.TransformerFactoryImpl")) {
diff --git a/app-text/jing/files/build-r1.xml b/app-text/jing/files/build-r1.xml
new file mode 100644
index 0000000..8de4f9a
--- /dev/null
+++ b/app-text/jing/files/build-r1.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+
+<project name="jing" default="jar">
+ <!-- compiles the sources -->
+ <target name="compile">
+ <mkdir dir="build" />
+
+ <javac srcdir="src"
+ destdir="build"
+ source="1.4">
+ <classpath>
+ <fileset dir="bin" includes="*.jar"/>
+ </classpath>
+ </javac>
+
+ <!-- we need the *.properties at the correct
+ position in the jar archive! -->
+ <copy todir="build">
+ <fileset dir="src">
+ <include name="**/*.properties" />
+ </fileset>
+ </copy>
+ <copy todir="build/META-INF">
+ <fileset dir="src/META-INF" />
+ </copy>
+ </target>
+
+ <!-- create the jar archive -->
+ <target name="jar" depends="compile">
+ <jar jarfile="bin/jing.jar"
+ basedir="build">
+ </jar>
+ </target>
+</project>
diff --git a/app-text/jing/files/jing-20030619-xerces.patch b/app-text/jing/files/jing-20030619-xerces.patch
new file mode 100644
index 0000000..5873822
--- /dev/null
+++ b/app-text/jing/files/jing-20030619-xerces.patch
@@ -0,0 +1,33 @@
+Only in jing-20030619: META-INF
+diff -ru jing-20030619-orig/src/com/thaiopensource/relaxng/util/JingTask.java jing-20030619/src/com/thaiopensource/relaxng/util/JingTask.java
+--- jing-20030619-orig/src/com/thaiopensource/relaxng/util/JingTask.java 2003-05-30 20:54:52.000000000 -0400
++++ jing-20030619/src/com/thaiopensource/relaxng/util/JingTask.java 2006-01-22 00:14:34.000000000 -0500
+@@ -178,4 +178,11 @@
+ filesets.addElement(set);
+ }
+
++ public String getXMLVersion() {
++ throw new UnsupportedOperationException();
++ }
++
++ public int getCharacterOffset() {
++ throw new UnsupportedOperationException();
++ }
+ }
+diff -ru jing-20030619-orig/src/com/thaiopensource/validate/xerces/ValidatorImpl.java jing-20030619/src/com/thaiopensource/validate/xerces/ValidatorImpl.java
+--- jing-20030619-orig/src/com/thaiopensource/validate/xerces/ValidatorImpl.java 2003-06-19 13:57:22.000000000 -0400
++++ jing-20030619/src/com/thaiopensource/validate/xerces/ValidatorImpl.java 2006-01-22 00:15:10.000000000 -0500
+@@ -330,4 +330,12 @@
+ throw (RuntimeException)nested;
+ return new SAXException(nested);
+ }
++
++ public String getXMLVersion() {
++ throw new UnsupportedOperationException();
++ }
++ public int getCharacterOffset() {
++ throw new UnsupportedOperationException();
++ }
++
+ }
+Only in jing-20030619/src/com/thaiopensource/validate/xerces: .ValidatorImpl.java.swp