xalan-j and Java-1.5

Mikhail T. mi at aldan.algebra.com
Thu Jul 7 04:52:36 GMT 2005


Herve!

According to http://java.sun.com/j2se/1.5.0/compatibility.html ,
Java-1.5 comes with Xerces from Apache, so there is no need to build it
for Xalan's sake if the used Java is of version 1.5

In addition, the xerces-j would not build with 1.5 anyway :-)

Below is a patch for xalan-j -- please, commit or allow me to do so.
There is no need to bump portrevision, because the currently existin
package(s) will not change.

Thanks!

	-mi

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/textproc/xalan-j/Makefile,v
retrieving revision 1.18
diff -U2 -r1.18 Makefile
--- Makefile	24 May 2005 18:21:04 -0000	1.18
+++ Makefile	7 Jul 2005 04:51:54 -0000
@@ -16,11 +16,10 @@
 COMMENT=	Apache XSLT processor for transforming XML documents
 
-RUN_DEPENDS=	java:${PORTSDIR}/java/javavmwrapper \
-		${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j
+RUN_DEPENDS=	java:${PORTSDIR}/java/javavmwrapper
 
 USE_REINPLACE=	yes
 
 USE_JAVA=	yes
-JAVA_VERSION=	1.2 1.3 1.4
+JAVA_VERSION=	1.2+
 USE_ANT=	yes
 
@@ -38,4 +37,8 @@
 .include <bsd.port.pre.mk>
 
+.if empty(JAVA_HOME:M*1.5*)
+RUN_DEPENDS+=	${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j
+.endif
+
 do-install:
 	@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."


More information about the freebsd-java mailing list