summaryrefslogtreecommitdiff
path: root/java/java-cup/files
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2020-05-23 11:40:31 +0000
committerRene Ladan <rene@FreeBSD.org>2020-05-23 11:40:31 +0000
commit415c7cb4f852b8f22ec479427ac10100004cb178 (patch)
tree594d5ef133a271d25c13ab50cf695cca6a148aab /java/java-cup/files
parentUpdate to r54166 from the FreeBSD docset (a.k.a. 11.4-R version) (diff)
java/java-cup: update to 11.b.20160615 and unexpire
Further changes: - use a prebuilt binary instead of building from source - change license to SMLNJ in agreement with maintainer PR: 245466 Submitted by: Jashank Jeremy Approved by: maintainer MFH: 2020Q2
Diffstat (limited to 'java/java-cup/files')
-rw-r--r--java/java-cup/files/java-cup.sh.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/java-cup/files/java-cup.sh.in b/java/java-cup/files/java-cup.sh.in
new file mode 100644
index 000000000000..f0f70a1acb5e
--- /dev/null
+++ b/java/java-cup/files/java-cup.sh.in
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Derived from a similar script for ports/java/jflex.
+#
+# $FreeBSD$
+
+# Allow the user to override where java-cup.jar lives
+JAVAJARDIR="${JAVAJARDIR:-"%%JAVAJARDIR%%"}"
+
+exec "%%LOCALBASE%%/bin/java" -jar "${JAVAJARDIR}/java-cup-%%CUP_VERSION%%.jar" "$@"