ports/68548: [PATCH] textproc/saxon: new shell script to run Saxon
Herve Quiroz
herve.quiroz at esil.univ-mrs.fr
Thu Jul 1 09:30:40 UTC 2004
>Number: 68548
>Category: ports
>Synopsis: [PATCH] textproc/saxon: new shell script to run Saxon
>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: Thu Jul 01 09:30:14 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:
- Added a new shell script to run Saxon from the command-line
NOTE: The script is modified according to ${JAVAJARDIR} and ${PREFIX} prior to
being installed.
NOTE2: I am planning to port two other versions of Saxon. Saxon 7.9.1 is the
-STABLE branch of the XSLT 2.0 flavor of Saxon and Saxon 8.0 is the -CURRENT
branch. I think I will have the two ports named respectively textproc/saxon7
and textproc/saxon8. Together with this port, the three ports would CONFLICTS
with each other as I believe it is not good to install different JAR files that
implement different versions of the same classes in ${JAVAJARDIR}. Still I
could be mistaken so please enlighten me on this one. The only other approach I
can think of would be to repocopy this port to textproc/saxon6 and have the
three as slave ports of textproc/saxon where you may use WITH[OUT]_XSLT2 and
WITH[OUT]_EXPERIMENTAL to specify which version to install.
Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:
--- saxon-6.5.3.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/textproc/saxon.original/Makefile /usr/ports/textproc/saxon/Makefile
--- /usr/ports/textproc/saxon.original/Makefile Thu Jul 1 10:48:04 2004
+++ /usr/ports/textproc/saxon/Makefile Thu Jul 1 11:16:49 2004
@@ -15,6 +15,9 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= An XSLT processor for Java
+RUN_DEPENDS= ${LOCALBASE}/bin/classpath:${PORTSDIR}/java/javavmwrapper \
+ ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
+
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.1+
@@ -22,13 +25,14 @@
NO_BUILD= yes
JARFILES= saxon-jdom.jar saxon.jar
-PLIST_FILES+= ${JARFILES:S,^,${JAVAJARDIR:S,^${PREFIX}/,,}/,}
+PLIST_FILES+= ${JARFILES:S,^,${JAVAJARDIR:S,^${PREFIX}/,,}/,} bin/saxon
.if !defined(NOPORTDOCS)
PORTDOCS= api api-guide.html changes.html changes5.html conditions.html conformance.html dtdgen.html expressions.html extensibility.html extensions.html history.html index.html instant.html patterns.html samples.html saxon-style.css using-xsl.html xsl-elements.html
.endif
post-extract:
@${RMDIR} ${WRKSRC}/samples/ot
+ @${SED} 's|%%PREFIX%%|${PREFIX}|g ; s|%%JAVAJARDIR%%|${JAVAJARDIR}|g' ${FILESDIR}/saxon.sh >${WRKSRC}/saxon
do-install:
@${ECHO_MSG} -n ">> Installing JARs in ${JAVAJARDIR}..."
@@ -53,5 +57,8 @@
@${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@${ECHO_MSG} " [ DONE ]"
.endif
+ @${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin..."
+ @${INSTALL_SCRIPT} ${WRKSRC}/saxon ${PREFIX}/bin/
+ @${ECHO_MSG} " [ DONE ]"
.include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/textproc/saxon.original/files/saxon.sh /usr/ports/textproc/saxon/files/saxon.sh
--- /usr/ports/textproc/saxon.original/files/saxon.sh Thu Jan 1 01:00:00 1970
+++ /usr/ports/textproc/saxon/files/saxon.sh Thu Jul 1 11:02:29 2004
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+export CLASSPATH=`%%PREFIX%%/bin/classpath`
+javavm -jar %%JAVAJARDIR%%/saxon.jar $@
--- saxon-6.5.3.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list