diff options
author | hq <hq@FreeBSD.org> | 2004-11-10 00:03:39 +0800 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2004-11-10 00:03:39 +0800 |
commit | 339648b49f88805f9e701a38f8c70abaab9bde27 (patch) | |
tree | b459621fdbebf27c5ab1db2493b67bdf13c81fce /textproc | |
parent | 63efd325044883034a1f7ba7652f1e17425303eb (diff) | |
download | freebsd-ports-gnome-339648b49f88805f9e701a38f8c70abaab9bde27.tar.gz freebsd-ports-gnome-339648b49f88805f9e701a38f8c70abaab9bde27.tar.zst freebsd-ports-gnome-339648b49f88805f9e701a38f8c70abaab9bde27.zip |
- Removed unnecessary run dependency on Xerces-J (given XML APIs and some XML
parser are included in JDK 1.4+ Standard API)
- Tweaked CLASSPATH in launcher script: Only Saxon installed JARs are indeed
required for command-line operations (see above)
- Added some more "" in launcher script to ensure spaces in paths and args will
not break anything
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/saxon-devel/Makefile | 6 | ||||
-rw-r--r-- | textproc/saxon-devel/files/saxon.sh | 10 | ||||
-rw-r--r-- | textproc/saxon-he/Makefile | 6 | ||||
-rw-r--r-- | textproc/saxon-he/files/saxon.sh | 10 |
4 files changed, 22 insertions, 10 deletions
diff --git a/textproc/saxon-devel/Makefile b/textproc/saxon-devel/Makefile index 215907972a6b..3804c8c4bb46 100644 --- a/textproc/saxon-devel/Makefile +++ b/textproc/saxon-devel/Makefile @@ -16,8 +16,7 @@ DISTNAME= ${PORTNAME}b${PORTVERSION:S,.,-,g} MAINTAINER= hq@FreeBSD.org COMMENT= An XSLT 2.0 / XPath 2.0 / XQuery 1.0 processor for Java -RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper \ - ${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j +RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper USE_ZIP= yes USE_JAVA= yes @@ -34,7 +33,8 @@ PORTDOCS= background documentation img javadoc .endif do-configure: - @${SED} 's|%%LOCALBASE%%|${LOCALBASE}|g ; s|%%JAVAVM%%|${JAVA}|g' \ + @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; s|%%JAVAVM%%|${JAVA}|g ; \ + s|%%SAXON_JARS%%|${JARFILES:S,^,${JAVAJARDIR}/,}|' \ ${FILESDIR}/saxon.sh >${WRKSRC}/saxon do-install: diff --git a/textproc/saxon-devel/files/saxon.sh b/textproc/saxon-devel/files/saxon.sh index bfbf5eb61bc3..1865dbc5a793 100644 --- a/textproc/saxon-devel/files/saxon.sh +++ b/textproc/saxon-devel/files/saxon.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $FreeBSD: /tmp/pcvs/ports/textproc/saxon-devel/files/Attic/saxon.sh,v 1.3 2004-10-27 16:50:43 hq Exp $ +# $FreeBSD: /tmp/pcvs/ports/textproc/saxon-devel/files/Attic/saxon.sh,v 1.4 2004-11-09 16:03:39 hq Exp $ IAM=`basename "$0"` @@ -11,4 +11,10 @@ else LAUNCHER_CLASS="net.sf.saxon.Transform" fi -JAVAVM=%%JAVAVM%% %%LOCALBASE%%/bin/javavm -classpath "`%%LOCALBASE%%/bin/classpath`" ${LAUNCHER_CLASS} $@ +SAXON_CLASSPATH="" +for jarfile in %%SAXON_JARS%% +do + SAXON_CLASSPATH="${SAXON_CLASSPATH}:${jarfile}" +done + +JAVAVM="%%JAVAVM%%" "%%LOCALBASE%%/bin/javavm" -classpath "${SAXON_CLASSPATH}" "${LAUNCHER_CLASS}" "$@" diff --git a/textproc/saxon-he/Makefile b/textproc/saxon-he/Makefile index 215907972a6b..3804c8c4bb46 100644 --- a/textproc/saxon-he/Makefile +++ b/textproc/saxon-he/Makefile @@ -16,8 +16,7 @@ DISTNAME= ${PORTNAME}b${PORTVERSION:S,.,-,g} MAINTAINER= hq@FreeBSD.org COMMENT= An XSLT 2.0 / XPath 2.0 / XQuery 1.0 processor for Java -RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper \ - ${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j +RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper USE_ZIP= yes USE_JAVA= yes @@ -34,7 +33,8 @@ PORTDOCS= background documentation img javadoc .endif do-configure: - @${SED} 's|%%LOCALBASE%%|${LOCALBASE}|g ; s|%%JAVAVM%%|${JAVA}|g' \ + @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; s|%%JAVAVM%%|${JAVA}|g ; \ + s|%%SAXON_JARS%%|${JARFILES:S,^,${JAVAJARDIR}/,}|' \ ${FILESDIR}/saxon.sh >${WRKSRC}/saxon do-install: diff --git a/textproc/saxon-he/files/saxon.sh b/textproc/saxon-he/files/saxon.sh index 7b7e03dbdb28..2f8fa270f061 100644 --- a/textproc/saxon-he/files/saxon.sh +++ b/textproc/saxon-he/files/saxon.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $FreeBSD: /tmp/pcvs/ports/textproc/saxon-he/files/Attic/saxon.sh,v 1.3 2004-10-27 16:50:43 hq Exp $ +# $FreeBSD: /tmp/pcvs/ports/textproc/saxon-he/files/Attic/saxon.sh,v 1.4 2004-11-09 16:03:39 hq Exp $ IAM=`basename "$0"` @@ -11,4 +11,10 @@ else LAUNCHER_CLASS="net.sf.saxon.Transform" fi -JAVAVM=%%JAVAVM%% %%LOCALBASE%%/bin/javavm -classpath "`%%LOCALBASE%%/bin/classpath`" ${LAUNCHER_CLASS} $@ +SAXON_CLASSPATH="" +for jarfile in %%SAXON_JARS%% +do + SAXON_CLASSPATH="${SAXON_CLASSPATH}:${jarfile}" +done + +JAVAVM="%%JAVAVM%%" "%%LOCALBASE%%/bin/javavm" -classpath "${SAXON_CLASSPATH}" "${LAUNCHER_CLASS}" "$@" |