[Midnightbsd-cvs] mports: mports/textproc: what's an xml parser without XSLT too
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Oct 4 12:39:12 EDT 2008
Log Message:
-----------
what's an xml parser without XSLT too
Modified Files:
--------------
mports/textproc:
Makefile (r1.102 -> r1.103)
Added Files:
-----------
mports/textproc/xalan-j:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
mports/textproc/xalan-j/files:
xalan-j.sh.in (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/textproc/Makefile,v
retrieving revision 1.102
retrieving revision 1.103
diff -L textproc/Makefile -L textproc/Makefile -u -r1.102 -r1.103
--- textproc/Makefile
+++ textproc/Makefile
@@ -122,6 +122,8 @@
SUBDIR += urlview
SUBDIR += wv
SUBDIR += wv2
+ SUBDIR += xalan-j
+ SUBDIR += xerces-j
SUBDIR += xhtml
SUBDIR += xhtml-basic
SUBDIR += xhtml-modularization
--- /dev/null
+++ textproc/xalan-j/pkg-descr
@@ -0,0 +1,15 @@
+Xalan-Java is an XSLT processor for transforming XML documents into HTML, text,
+or other XML document types. It implements the W3C Recommendations for XSL
+Transformations (XSLT) Version 1.0 and the XML Path Language (XPath) Version
+1.0. It can be used from the command line, in an applet or a servlet, or as a
+module in other program.
+
+Xalan-Java recasts Xalan as an implementation of the Transformation API for XML
+(TrAX) interfaces, part of the Java API for XML Processing 1.2. TrAX provides a
+modular framework and a standard API for performing XML transformations, and it
+utilizes system properties to determine which Transformer and which XML parser
+to use.
+
+Xalan-Java also builds on SAX 2 and DOM level 2.
+
+WWW: http://xml.apache.org/xalan-j/
--- /dev/null
+++ textproc/xalan-j/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for: xalan-j
+# Date created: 21 February 2001
+# Whom: znerd at FreeBSD.org
+#
+# $MidnightBSD: mports/textproc/xalan-j/Makefile,v 1.1 2008/10/04 16:39:10 laffer1 Exp $
+# $FreeBSD: ports/textproc/xalan-j/Makefile,v 1.23 2008/06/06 14:05:06 edwin Exp $
+#
+
+PORTNAME= xalan-j
+PORTVERSION= 2.7.0
+CATEGORIES= textproc java
+MASTER_SITES= ${MASTER_SITE_APACHE_XML}
+MASTER_SITE_SUBDIR= ${PORTNAME}/source
+DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g}-src
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Apache XSLT processor for transforming XML documents
+LICENSE= apache2
+
+RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
+
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
+USE_ANT= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/g}
+ALL_TARGET= jar
+.if !defined(NOPORTDOCS)
+ALL_TARGET+= javadocs
+PORTDOCS= apidocs design
+.endif
+JARFILES= xalan.jar serializer.jar
+PLIST_FILES= ${JARFILES:S|^|%%JAVAJARDIR%%/|} bin/xalan-j
+
+SUB_FILES= xalan-j.sh
+
+.include <bsd.port.pre.mk>
+
+.if ${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1.\2/} != "1.5"
+RUN_DEPENDS+= ${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j
+.endif
+
+do-install:
+ @${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..."
+.for jarfile in ${JARFILES}
+ @${INSTALL_DATA} ${WRKSRC}/build/${jarfile} ${JAVAJARDIR}/
+ @${ECHO_MSG} -n " ${jarfile}"
+.endfor
+ @${ECHO_MSG} " [ DONE ]"
+.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
+ @cd ${WRKSRC}/build/docs && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
+ @cd ${WRKSRC}/build/docs && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
+ @${ECHO_MSG} " [ DONE ]"
+.endif
+ @${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin/..."
+ @${INSTALL_SCRIPT} ${WRKDIR}/xalan-j.sh ${PREFIX}/bin/xalan-j
+ @${ECHO_MSG} " [ DONE ]"
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ textproc/xalan-j/distinfo
@@ -0,0 +1,3 @@
+MD5 (xalan-j_2_7_0-src.tar.gz) = 7859a78a5564cae42c933adcbbecdd01
+SHA256 (xalan-j_2_7_0-src.tar.gz) = 210843fb672b0c44138797d9d11b61c2f538b89400ce8be1f230cd666f70bb02
+SIZE (xalan-j_2_7_0-src.tar.gz) = 6264659
--- /dev/null
+++ textproc/xalan-j/files/xalan-j.sh.in
@@ -0,0 +1,4 @@
+#!/bin/sh
+# $FreeBSD: ports/textproc/xalan-j/files/xalan-j.sh.in,v 1.2 2006/08/06 23:21:41 hq Exp $
+
+JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" -cp "%%JAVALIBDIR%%/xml-apis.jar:%%JAVALIBDIR/xercesImpl.jar:%%JAVAJARDIR%%/xalan.jar" org.apache.xalan.xslt.Process "$@"
More information about the Midnightbsd-cvs
mailing list