ports/68637: [NEW PORT] textproc/saxon-devel: An XSLT 2.0 / XPath 2.0 / XQuery 1.0 processor for Java

Herve Quiroz herve.quiroz at esil.univ-mrs.fr
Sat Jul 3 15:30:27 UTC 2004


>Number:         68637
>Category:       ports
>Synopsis:       [NEW PORT] textproc/saxon-devel: An XSLT 2.0 / XPath 2.0 / XQuery 1.0 processor for Java
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 03 15:30:26 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Herve Quiroz
>Release:        FreeBSD 5.2.1-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD arabica.esil.univ-mrs.fr 5.2.1-RELEASE-p5 FreeBSD 5.2.1-RELEASE-p5 #3: Thu May  6 20:17:47 CEST
>Description:
The Saxon 8.0 package is a collection of tools for processing XML documents.
The main components are:

- An XSLT 2.0 processor, that can be used from the command line, or invoked
  from a Java application by use of the standard JAXP API. Saxon can be
  integrated with Java applications using the JAXP API, which means it is
  possible for a Java application to switch between different XSLT processors
  without changing the application code. As well as conforming closely with the
  XSLT 2.0 specification, Saxon offers a number of powerful extensions.
- An XPath 2.0 processor accessible via an API to Java applications.
- An XQuery 1.0 processor that can be used from the command line, or invoked
  from a Java application by use of an API.
- An XML Schema 1.0 processor. This can be used on its own to validate a schema
  for correctness, or to validate a source document against the definitions in
  a schema. It is also used to support the schema-aware functionality of the
  XSLT and XQuery processors.

So you can use Saxon to process XML by writing XSLT stylesheets, by writing
XQuery queries, by writing Java applications, or by combinations of the
approaches.

WWW: http://saxon.sourceforge.net/

NOTE: The port conflicts with the textproc/saxon one. So I attached a patch for
this other port in the PR.

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- saxon-devel-8.0.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	saxon-devel
#	saxon-devel/files
#	saxon-devel/files/saxon.sh
#	saxon-devel/Makefile
#	saxon-devel/distinfo
#	saxon-devel/pkg-descr
#	saxon-devel/pkg-plist
#	saxon-devel/README.html
#
echo c - saxon-devel
mkdir -p saxon-devel > /dev/null 2>&1
echo c - saxon-devel/files
mkdir -p saxon-devel/files > /dev/null 2>&1
echo x - saxon-devel/files/saxon.sh
sed 's/^X//' >saxon-devel/files/saxon.sh << 'END-of-saxon-devel/files/saxon.sh'
X#!/bin/sh
X#
X# $FreeBSD: ports/textproc/saxon/files/saxon.sh,v 1.1 2004/07/02 19:30:27 glewis Exp $
X
Xexport CLASSPATH=`%%PREFIX%%/bin/classpath`
Xjavavm -jar %%JAVAJARDIR%%/saxon8.jar $@
END-of-saxon-devel/files/saxon.sh
echo x - saxon-devel/Makefile
sed 's/^X//' >saxon-devel/Makefile << 'END-of-saxon-devel/Makefile'
X# New ports collection makefile for:   saxon-devel
X# Date created:                03 July 2004
X# Whom:                        Herve Quiroz <herve.quiroz at esil.univ-mrs.fr>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	saxon
XPORTVERSION=	8.0
XCATEGORIES=	textproc java
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
XMASTER_SITE_SUBDIR=	saxon
XPKGNAMESUFFIX=	-devel
XDISTNAME=	${PORTNAME}b${PORTVERSION:S/./-/g}
X
XMAINTAINER=	ports at FreeBSD.org
XCOMMENT=	An XSLT 2.0 / XPath 2.0 / XQuery 1.0 processor for Java
X
XRUN_DEPENDS=	${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
X
XUSE_ZIP=	yes
XUSE_JAVA=	yes
XJAVA_VERSION=	1.4+
XNO_WRKSUBDIR=	yes
XNO_BUILD=	yes
X
XCONFLICTS=	saxon-6.*
X
XJARFILES=	saxon8-sql.jar saxon8-jdom.jar saxon8.jar
XPLIST_FILES+=	${JARFILES:S,^,${JAVAJARDIR:S,^${PREFIX}/,,}/,} bin/saxon
X.if !defined(NOPORTDOCS)
XPORTDOCS=	background documentation img index.html javadoc saxon.css
X.endif
X
Xdo-configure:
X	@${SED} 's|%%PREFIX%%|${PREFIX}|g ; s|%%JAVAJARDIR%%|${JAVAJARDIR}|g' \
X		${FILESDIR}/saxon.sh >${WRKSRC}/saxon
X
Xdo-install:
X	@${ECHO_MSG} -n ">> Installing JARs in ${JAVAJARDIR}..."
X	@${MKDIR} ${JAVAJARDIR}
X.for JARFILE in ${JARFILES}
X	@${ECHO_MSG} -n " ${JARFILE}"
X	@${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/
X.endfor
X	@${ECHO_MSG} " [ DONE ]"
X.if !defined(NOPORTDOCS)
X	@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
X	@${MKDIR} ${EXAMPLESDIR}
X	@${CP} -R ${WRKSRC}/samples/* ${EXAMPLESDIR}/
X	@${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
X	@${ECHO_MSG} " [ DONE ]"
X	@${ECHO_MSG} -n ">> Installing documentation..."
X	@${MKDIR} ${DOCSDIR}
X.for DOCFILE in ${PORTDOCS}
X	@${ECHO_MSG} -n " ${DOCFILE}"
X	@${CP} -R ${WRKSRC}/doc/${DOCFILE} ${DOCSDIR}/
X.endfor
X	@${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
X	@${ECHO_MSG} " [ DONE ]"
X.endif
X	@${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin..."
X	@${INSTALL_SCRIPT} ${WRKSRC}/saxon ${PREFIX}/bin/
X	@${ECHO_MSG} " [ DONE ]"
X
X.include <bsd.port.mk>
END-of-saxon-devel/Makefile
echo x - saxon-devel/distinfo
sed 's/^X//' >saxon-devel/distinfo << 'END-of-saxon-devel/distinfo'
XMD5 (saxonb8-0.zip) = d05fbd398847ef27b2d1d875bb5136ea
XSIZE (saxonb8-0.zip) = 5465208
END-of-saxon-devel/distinfo
echo x - saxon-devel/pkg-descr
sed 's/^X//' >saxon-devel/pkg-descr << 'END-of-saxon-devel/pkg-descr'
XThe Saxon 8.0 package is a collection of tools for processing XML documents.
XThe main components are:
X
X- An XSLT 2.0 processor, that can be used from the command line, or invoked
X  from a Java application by use of the standard JAXP API. Saxon can be
X  integrated with Java applications using the JAXP API, which means it is
X  possible for a Java application to switch between different XSLT processors
X  without changing the application code. As well as conforming closely with the
X  XSLT 2.0 specification, Saxon offers a number of powerful extensions.
X- An XPath 2.0 processor accessible via an API to Java applications.
X- An XQuery 1.0 processor that can be used from the command line, or invoked
X  from a Java application by use of an API.
X- An XML Schema 1.0 processor. This can be used on its own to validate a schema
X  for correctness, or to validate a source document against the definitions in
X  a schema. It is also used to support the schema-aware functionality of the
X  XSLT and XQuery processors.
X
XSo you can use Saxon to process XML by writing XSLT stylesheets, by writing
XXQuery queries, by writing Java applications, or by combinations of the
Xapproaches.
X
XWWW: http://saxon.sourceforge.net/
END-of-saxon-devel/pkg-descr
echo x - saxon-devel/pkg-plist
sed 's/^X//' >saxon-devel/pkg-plist << 'END-of-saxon-devel/pkg-plist'
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xsl/text.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xsl/preamble.txt
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xsl/multidoc.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xsl/inc1/inc2/inc2.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xsl/inc1/inc1.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xsl/foo3.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xsl/foo2.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xsl/foo.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xsl/baz.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xml/subdir1/subdir2/foo3.xml
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xml/subdir1/foo2.xml
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xml/foo.xml
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xml/embedded.xml
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/xml/baz.xml
X%%PORTDOCS%%%%EXAMPLESDIR%%/trax/exampleSimple2.out
X%%PORTDOCS%%%%EXAMPLESDIR%%/styles/tour.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/styles/total.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/styles/play.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/styles/identity.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/styles/books.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/styles/books-tle.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/styles/books-sql.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/styles/books-sa.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/styles/books-csv.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/styles/bible.xsl
X%%PORTDOCS%%%%EXAMPLESDIR%%/query/tour.xq
X%%PORTDOCS%%%%EXAMPLESDIR%%/query/books.xq
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/XPathExample.java
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/XPathExample.class
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/TraxExamples.java
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/TraxExamples.class
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/TraxExamples$UserURIResolver.class
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/TraxExamples$UserOutputResolver.class
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/TraxExamples$ModifyStylesheetFilter.class
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/TraxExamples$1.class
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/SaxonServlet.java
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/SaxonServlet.class
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/QuickValidator.java
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/QuickValidator.class
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/JDOMExample.java
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/JDOMExample.class
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/ExampleContentHandler.java
X%%PORTDOCS%%%%EXAMPLESDIR%%/java/ExampleContentHandler.class
X%%PORTDOCS%%%%EXAMPLESDIR%%/data/tstmt.dtd
X%%PORTDOCS%%%%EXAMPLESDIR%%/data/play.dtd
X%%PORTDOCS%%%%EXAMPLESDIR%%/data/othello.xml
X%%PORTDOCS%%%%EXAMPLESDIR%%/data/books.xsd
X%%PORTDOCS%%%%EXAMPLESDIR%%/data/books.xml
X%%PORTDOCS%%%%EXAMPLESDIR%%/data/books.dtd
X%%PORTDOCS%%%%EXAMPLESDIR%%/analysis/timing-profile.xsl
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/trax/xsl/inc1/inc2
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/trax/xsl/inc1
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/trax/xsl
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/trax/xml/subdir1/subdir2
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/trax/xml/subdir1
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/trax/xml
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/trax
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/styles
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/query
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/java
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/data
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/analysis
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/
END-of-saxon-devel/pkg-plist
echo x - saxon-devel/README.html
sed 's/^X//' >saxon-devel/README.html << 'END-of-saxon-devel/README.html'
X<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
X
X<html>
X  <head>
X    <title>The FreeBSD Ports Collection (textproc/saxon)</title>
X  </head>
X
X  <body>
X    <h1>The FreeBSD Ports Collection (textproc/saxon)</h1>
X    <hr>
X
X    <p>You are now in the directory for the port "textproc/saxon".</p>
X
X    <p>The package name of this port is "saxon-6.5.2".</p>
X
X    <p>This is the one-line description for this port:</p>
X    <hr>
X
X    <p>
XAn XSLT processor for Java
X    </p>
X    <hr>
X
X    <p>Please read the "<a href="pkg-descr">description file</a>" for a
X    longer description and/or visit the <a href="http://saxon.sourceforge.net/">web site</a> for futher informations.</p>
X
X    <p>If needed, you may contact the <a href=
X    "mailto:ports at FreeBSD.org">maintainer</a> of this port or the port <a href=
X    "mailto:ports at FreeBSD.org">mailing-list</a>.</p>
X
X    <p>This port requires package(s) "unzip-5.50_2" to build.</p>
X
X    <p>This port requires package(s) "compat3x-i386-5.0.20020925 javavmwrapper-1.4 jdk-1.1.8" to run.</p>
X
X    <p>Go to the <a href="../../README.html">top of the ports tree</a> for
X    a summary on how to use the ports collection.</p>
X    <hr>
X
X    <p><a href="../README.html">Go up one level</a> | <a href=
X    "../../README.html">Go to top of ports tree</a></p>
X  </body>
X</html>
X
END-of-saxon-devel/README.html
exit
--- saxon-devel-8.0.shar ends here ---


The patch for textproc/saxon:

--- saxon-Makefile.diff begins here ---
--- Makefile.original	Sat Jul  3 17:16:37 2004
+++ Makefile	Sat Jul  3 17:19:47 2004
@@ -24,6 +24,8 @@
 NO_WRKSUBDIR=	yes
 NO_BUILD=	yes
 
+CONFLICTS=	saxon-devel-8.*
+
 JARFILES=	saxon-jdom.jar saxon.jar
 PLIST_FILES+=	${JARFILES:S,^,${JAVAJARDIR:S,^${PREFIX}/,,}/,} bin/saxon
 .if !defined(NOPORTDOCS)
--- saxon-Makefile.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list