diff options
author | glewis <glewis@FreeBSD.org> | 2004-07-02 19:30:27 +0000 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2004-07-02 19:30:27 +0000 |
commit | 7cd62bec681dd86c9e14fe9a58e10c4edffa9018 (patch) | |
tree | fc29fe12e65f8d9a2e36b906221107b1fc0f8e06 /textproc/saxon | |
parent | 5868f9704b6496fff60c6caf09abd5f6450afd0c (diff) | |
download | FreeBSD-ports-7cd62bec681dd86c9e14fe9a58e10c4edffa9018.zip FreeBSD-ports-7cd62bec681dd86c9e14fe9a58e10c4edffa9018.tar.gz |
. 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>
Diffstat (limited to 'textproc/saxon')
-rw-r--r-- | textproc/saxon/Makefile | 12 | ||||
-rw-r--r-- | textproc/saxon/files/saxon.sh | 6 |
2 files changed, 17 insertions, 1 deletions
diff --git a/textproc/saxon/Makefile b/textproc/saxon/Makefile index 818feef..357129c 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 0000000..9efa0af --- /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 $@ |