aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authornemoliu <nemoliu@FreeBSD.org>2010-01-16 13:00:17 +0800
committernemoliu <nemoliu@FreeBSD.org>2010-01-16 13:00:17 +0800
commite7df23826bc375f7b3e90d11ce422840c214adca (patch)
tree47b9f8f0297e30bc7b2f8f5532b789d49684ddeb /java
parenta889c3137f7b56e30f4e7ee64f2c17d02375cf4f (diff)
downloadfreebsd-ports-gnome-e7df23826bc375f7b3e90d11ce422840c214adca.tar.gz
freebsd-ports-gnome-e7df23826bc375f7b3e90d11ce422840c214adca.tar.zst
freebsd-ports-gnome-e7df23826bc375f7b3e90d11ce422840c214adca.zip
- Use $SUB_FILES to dynamically adjust pkg-message
PR: ports/142705 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>
Diffstat (limited to 'java')
-rw-r--r--java/jlex/Makefile6
-rw-r--r--java/jlex/files/pkg-message.in5
-rw-r--r--java/jlex/pkg-message5
3 files changed, 7 insertions, 9 deletions
diff --git a/java/jlex/Makefile b/java/jlex/Makefile
index 0d26f943d71a..4445b09830c8 100644
--- a/java/jlex/Makefile
+++ b/java/jlex/Makefile
@@ -21,8 +21,8 @@ PLIST_FILES= %%JAVAJARDIR%%/jlex.jar bin/jlex
USE_JAVA= yes
NO_WRKSUBDIR= yes
-PKGMESSAGE= ${WRKDIR}/pkg-message
-SUB_FILES= jlex.sh
+SUB_FILES= jlex.sh pkg-message
+SUB_LIST= JAVAJARDIR=${JAVAJARDIR}
do-extract:
@${RM} -rf ${WRKDIR}
@@ -37,8 +37,6 @@ do-build:
do-install:
@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar ${JAVAJARDIR}
@${INSTALL_SCRIPT} ${WRKDIR}/jlex.sh ${PREFIX}/bin/jlex
- @${SED} s:%%JAVAJARDIR%%:${JAVAJARDIR}: < ${PKGDIR}/pkg-message \
- > ${PKGMESSAGE}
post-install:
@${ECHO_MSG}
diff --git a/java/jlex/files/pkg-message.in b/java/jlex/files/pkg-message.in
new file mode 100644
index 000000000000..4f883c6413e3
--- /dev/null
+++ b/java/jlex/files/pkg-message.in
@@ -0,0 +1,5 @@
+JLex is installed into %%JAVAJARDIR%%.
+
+Run with 'jlex'
+
+See http://www.cs.princeton.edu/~appel/modern/java/JLex.
diff --git a/java/jlex/pkg-message b/java/jlex/pkg-message
index 4f883c6413e3..e69de29bb2d1 100644
--- a/java/jlex/pkg-message
+++ b/java/jlex/pkg-message
@@ -1,5 +0,0 @@
-JLex is installed into %%JAVAJARDIR%%.
-
-Run with 'jlex'
-
-See http://www.cs.princeton.edu/~appel/modern/java/JLex.