summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2005-11-24 18:07:40 +0000
committerHerve Quiroz <hq@FreeBSD.org>2005-11-24 18:07:40 +0000
commit6e220b3286e463873e137e98d05737be3a5bef93 (patch)
tree2af8f78877fc38ec3aa79b8aec18b76d33adceb8
parentUpdate to 2.12.3. (diff)
Cross-link API documentation with JDK API documentation (if installed)
Notes
Notes: svn path=/head/; revision=149320
-rw-r--r--textproc/xerces-j/Makefile5
-rw-r--r--textproc/xerces-j/files/patch-build.xml61
2 files changed, 66 insertions, 0 deletions
diff --git a/textproc/xerces-j/Makefile b/textproc/xerces-j/Makefile
index f3b05c45ce26..e16ef205a655 100644
--- a/textproc/xerces-j/Makefile
+++ b/textproc/xerces-j/Makefile
@@ -50,6 +50,11 @@ TOOLS_JARFILES= resolver.jar stylebook-1.0-b2.jar bin/xjavac.jar
CLASSPATH!= ${ECHO_CMD} ${TOOLS_JARFILES:S,^,tools/,} | ${TR} " " ":"
MAKE_ENV= CLASSPATH=${CLASSPATH}
+JAVA_PORT_API= ${LOCALBASE}/share/doc/jdk${JAVA_PORT_VERSION:C/([0-9]\.[0-9])\.[0-9]/\1/}/api
+.if exists(${JAVA_PORT_API})
+MAKE_ARGS+= -Djdk.api="${JAVA_PORT_API}"
+.endif
+
post-extract:
@cd ${WRKSRC} && ${MV} ../tools .
diff --git a/textproc/xerces-j/files/patch-build.xml b/textproc/xerces-j/files/patch-build.xml
new file mode 100644
index 000000000000..8621b1652dca
--- /dev/null
+++ b/textproc/xerces-j/files/patch-build.xml
@@ -0,0 +1,61 @@
+Allows to enforce a packagelistLoc for JDK API documentation
+
+$FreeBSD$
+
+--- build.xml.orig Thu Nov 24 16:57:51 2005
++++ build.xml Thu Nov 24 17:19:25 2005
+@@ -402,7 +402,9 @@
+ windowtitle='XML Standard API' doctitle='XML Standard API'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ <mkdir dir='${build.dir}/docs/javadocs/xni'/>
+ <javadoc packagenames='org.apache.xerces.xni.*'
+ locale='en_US'
+@@ -412,7 +414,9 @@
+ doctitle='Xerces Native Interface'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ <mkdir dir='${build.dir}/docs/javadocs/xs'/>
+ <javadoc packagenames='org.apache.xerces.xs, org.apache.xerces.xs.datatypes'
+ locale='en_US'
+@@ -422,7 +426,9 @@
+ doctitle='XML Schema API'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+
+ <mkdir dir='${build.dir}/docs/javadocs/xerces2'/>
+ <javadoc packagenames='org.apache.xerces.dom.*,
+@@ -440,7 +446,9 @@
+ doctitle='Xerces2 Implementation'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ <mkdir dir='${build.dir}/docs/javadocs/other'/>
+ <javadoc packagenames='org.apache.html.*,
+ org.apache.wml.*,
+@@ -451,7 +459,9 @@
+ windowtitle='Other Classes' doctitle='Other Classes'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ </target>
+
+ <!-- =================================================================== -->