You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/xerces/files/xerces-2.3.0-gentoo.patch

62 lines
2.6 KiB

diff -urpN xerces-2_3_0.orig/build.sh xerces-2_3_0/build.sh
--- xerces-2_3_0.orig/build.sh 2005-01-15 15:14:51.682424232 +0100
+++ xerces-2_3_0/build.sh 2005-01-15 16:22:11.299309120 +0100
@@ -19,7 +19,7 @@ uname | grep WIN && CLPATHSEP=\;
# Keep this classpath to the minimum required to run ant
# Application dependent classpaths are specified in build.xml
-LOCALCLASSPATH="$JAVA_HOME/lib/tools.jar${CLPATHSEP}${JAVA_HOME}/lib/classes.zip${CLPATHSEP}./tools/ant.jar${CLPATHSEP}./tools/xercesImpl.jar${CLPATHSEP}./tools/xml-apis.jar${CLPATHSEP}./tools/bin/xjavac.jar"
+LOCALCLASSPATH="$JAVA_HOME/lib/tools.jar${CLPATHSEP}${JAVA_HOME}/lib/classes.zip${CLPATHSEP}./tools/ant.jar${CLPATHSEP}./tools/ant-launcher.jar${CLPATHSEP}./tools/xercesImpl.jar${CLPATHSEP}./tools/xml-apis.jar${CLPATHSEP}./tools/bin/xjavac.jar"
ANT_HOME=./tools
echo Building with classpath \"$LOCALCLASSPATH\"
diff -urpN xerces-2_3_0.orig/build.xml xerces-2_3_0/build.xml
--- xerces-2_3_0.orig/build.xml 2005-01-15 15:14:51.682424232 +0100
+++ xerces-2_3_0/build.xml 2005-01-15 16:38:48.751673312 +0100
@@ -173,7 +173,6 @@ Copyright:
<copy file="${src.dir}/org/apache/xerces/parsers/org.apache.xerces.xni.parser.XMLParserConfiguration"
tofile="${build.dest}/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration"/>
- <!-- copy src files -->
<copy todir="${build.src}">
<fileset
dir="${src.dir}"
@@ -187,8 +186,8 @@ Copyright:
org/apache/xerces/dom3/ls/**">
</fileset>
</copy>
-
- <!-- now deal with API's: -->
+
+ <!-- now deal with API's:
<unzip src="${src.apis.zip}" dest="${build.src}">
<patternset
includes="org/xml/sax/**
@@ -200,7 +199,7 @@ Copyright:
org/w3c/dom/traversal/**"
/>
</unzip>
-
+ -->
<!-- substitute tokens as needed -->
<replace file="${build.dir}/src/org/apache/xerces/impl/Version.java"
token="@@VERSION@@" value="${parser.Name} ${parser.Version}"/>
@@ -221,16 +220,7 @@ Copyright:
debug="${debug}"
deprecation="${deprecation}"
optimize="${optimize}"
- includeAntRuntime="false"
- includeJavaRuntime="false"
- excludes="org/xml/sax/**
- javax/xml/parsers/**
- org/w3c/dom/*
- org/w3c/dom/events/**
- org/w3c/dom/html/**
- org/w3c/dom/ranges/**
- org/w3c/dom/traversal/**"
- />
+ classpath="tools/xml-apis.jar" />
</target>
<!-- =================================================================== -->