summaryrefslogtreecommitdiff
path: root/textproc/saxon-he
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/saxon-he')
-rw-r--r--textproc/saxon-he/Makefile26
-rw-r--r--textproc/saxon-he/distinfo6
-rw-r--r--textproc/saxon-he/files/saxon.sh.in12
3 files changed, 36 insertions, 8 deletions
diff --git a/textproc/saxon-he/Makefile b/textproc/saxon-he/Makefile
index a1e8773de518..b2ef13b8f515 100644
--- a/textproc/saxon-he/Makefile
+++ b/textproc/saxon-he/Makefile
@@ -1,7 +1,8 @@
PORTNAME= saxon-he
-DISTVERSION= 12-6
+DISTVERSION= 12-8
+PORTREVISION= 1
CATEGORIES= textproc java
-MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/SaxonHE${DISTVERSION}/
+MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/SaxonHE-${DISTVERSION}/
DISTNAME= SaxonHE${DISTVERSION}J
MAINTAINER= thierry@FreeBSD.org
@@ -21,18 +22,33 @@ NO_WRKSUBDIR= yes
NO_ARCH= yes
NO_BUILD= yes
+_XMLRESOLVER_VER=5.3.3
JARFILES= ${JARFILES1} ${JARFILES2}
JARFILES1= saxon-he-${PORTVERSION}.jar \
saxon-he-test-${PORTVERSION}.jar \
saxon-he-xqj-${PORTVERSION}.jar
JARFILES2= jline-2.14.6.jar \
- xmlresolver-5.3.1.jar \
- xmlresolver-5.3.1-data.jar
-PLIST_FILES= ${JARFILES:S,^,%%JAVAJARDIR%%/,}
+ xmlresolver-${_XMLRESOLVER_VER}.jar \
+ xmlresolver-${_XMLRESOLVER_VER}-data.jar
+PLIST_FILES= ${JARFILES:S,^,%%JAVAJARDIR%%/,} ${SCRIPTFILES}
+
+SUB_FILES= saxon.sh
+SUB_LIST= SAXON_JARS="${JARFILES:S,^,${JAVAJARDIR}/,:ts:}"
+SCRIPTFILES= bin/saxon bin/saxon-xquery
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${JARFILES1:S,^,${WRKSRC}/,} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${JARFILES2:S,^,${WRKSRC}/lib/,} ${STAGEDIR}${JAVAJARDIR}
+ ${INSTALL_SCRIPT} ${WRKDIR}/saxon.sh ${STAGEDIR}${PREFIX}/bin/saxon
+ ${RLN} ${STAGEDIR}${PREFIX}/bin/saxon ${STAGEDIR}${PREFIX}/bin/saxon-xquery
+
+post-stage:
+# smoke test so we're sure we can load all required classes
+# (12.0 and 12.6 didn't work with OpenJDK 8)
+ ${STAGEDIR}${PREFIX}/bin/saxon-xquery -? 2>&1 | ${HEAD} -n1
+ ${STAGEDIR}${PREFIX}/bin/saxon -? 2>&1 | ${HEAD} -n1
+ ${JAVA} -cp '${STAGEDIR}${JAVAJARDIR}/*' net.sf.saxon.Transform -? 2>&1 \
+ | ${HEAD} -n1
.include <bsd.port.mk>
diff --git a/textproc/saxon-he/distinfo b/textproc/saxon-he/distinfo
index 038367d9de9b..88406974656b 100644
--- a/textproc/saxon-he/distinfo
+++ b/textproc/saxon-he/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1746715463
-SHA256 (SaxonHE12-6J.zip) = cbb6657da061c155476ad9e43a3564a4cc928d4951ebeed2eafe5a0aa74e2aee
-SIZE (SaxonHE12-6J.zip) = 7248220
+TIMESTAMP = 1752488672
+SHA256 (SaxonHE12-8J.zip) = 2ba851aec7925b882208182c48c936230205d558e335636bbe46626bd8003598
+SIZE (SaxonHE12-8J.zip) = 7208886
diff --git a/textproc/saxon-he/files/saxon.sh.in b/textproc/saxon-he/files/saxon.sh.in
new file mode 100644
index 000000000000..8371776b80f2
--- /dev/null
+++ b/textproc/saxon-he/files/saxon.sh.in
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+IAM="`basename "$0"`"
+
+if [ saxon-xquery = "${IAM}" ]
+then
+ LAUNCHER_CLASS="net.sf.saxon.Query"
+else
+ LAUNCHER_CLASS="net.sf.saxon.Transform"
+fi
+
+exec "%%LOCALBASE%%/bin/java" -classpath "%%SAXON_JARS%%" "${LAUNCHER_CLASS}" "$@"