Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jul 2005 00:52:32 -0400 (EDT)
From:      "Mikhail T." <mi@aldan.algebra.com>
To:        hq@FreeBSD.org, java@FreeBSD.org
Subject:   xalan-j and Java-1.5
Message-ID:  <200507070452.j674qW8c077481@blue.virtual-estates.net>

next in thread | raw e-mail | index | archive | help
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}..."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507070452.j674qW8c077481>