summaryrefslogtreecommitdiff
path: root/textproc/saxon
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2004-07-02 19:30:27 +0000
committerGreg Lewis <glewis@FreeBSD.org>2004-07-02 19:30:27 +0000
commit31a5ee8f5fb9e3064aea55fe1d3a2a0e0991994b (patch)
tree6ee72f7fa93781a4311406635064b12f734d184b /textproc/saxon
parent- Update to 0.3.9 (diff)
. Add a shell script to allow people to easily run saxon from the command
line. PR: 68548 Submitted by: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
Notes
Notes: svn path=/head/; revision=112792
Diffstat (limited to 'textproc/saxon')
-rw-r--r--textproc/saxon/Makefile12
-rw-r--r--textproc/saxon/files/saxon.sh6
2 files changed, 17 insertions, 1 deletions
diff --git a/textproc/saxon/Makefile b/textproc/saxon/Makefile
index 818feef98d47..357129ce0136 100644
--- a/textproc/saxon/Makefile
+++ b/textproc/saxon/Makefile
@@ -7,6 +7,7 @@
PORTNAME= saxon
PORTVERSION= 6.5.3
+PORTREVISION= 1
CATEGORIES= textproc java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= saxon
@@ -15,6 +16,8 @@ DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/g}
MAINTAINER= ports@FreeBSD.org
COMMENT= An XSLT processor for Java
+RUN_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
+
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.1+
@@ -22,7 +25,7 @@ NO_WRKSUBDIR= yes
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
@@ -30,6 +33,10 @@ PORTDOCS= api api-guide.html changes.html changes5.html conditions.html conforma
post-extract:
@${RMDIR} ${WRKSRC}/samples/ot
+do-configure:
+ @${SED} 's|%%PREFIX%%|${PREFIX}|g ; s|%%JAVAJARDIR%%|${JAVAJARDIR}|g' \
+ ${FILESDIR}/saxon.sh >${WRKSRC}/saxon
+
do-install:
@${ECHO_MSG} -n ">> Installing JARs in ${JAVAJARDIR}..."
@${MKDIR} ${JAVAJARDIR}
@@ -53,5 +60,8 @@ do-install:
@${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 --git a/textproc/saxon/files/saxon.sh b/textproc/saxon/files/saxon.sh
new file mode 100644
index 000000000000..9efa0af54b7d
--- /dev/null
+++ b/textproc/saxon/files/saxon.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+export CLASSPATH=`%%PREFIX%%/bin/classpath`
+javavm -jar %%JAVAJARDIR%%/saxon.jar $@