summaryrefslogtreecommitdiffstats
path: root/java/jlex
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2004-01-19 16:26:22 +0000
committerglewis <glewis@FreeBSD.org>2004-01-19 16:26:22 +0000
commit6f846283dce8327d8ac4568044e4be6b8e0e6c8a (patch)
treeb663dd0c3e6020f8dc4363d90d1b21abe2fd0f41 /java/jlex
parentf9b4c60ac60c5ae5ea51269dade3fa83a5f17948 (diff)
downloadFreeBSD-ports-6f846283dce8327d8ac4568044e4be6b8e0e6c8a.zip
FreeBSD-ports-6f846283dce8327d8ac4568044e4be6b8e0e6c8a.tar.gz
. More standard format for substitution in pkg-message.
. Generate a substituted pkg-message in ${WRKDIR} for packaging rather than just echoing it during the port install and leaving the package with an unsubstituted version.
Diffstat (limited to 'java/jlex')
-rw-r--r--java/jlex/Makefile7
-rw-r--r--java/jlex/pkg-message2
2 files changed, 7 insertions, 2 deletions
diff --git a/java/jlex/Makefile b/java/jlex/Makefile
index bb58bf4..f668e5d 100644
--- a/java/jlex/Makefile
+++ b/java/jlex/Makefile
@@ -21,6 +21,7 @@ NEED_JAVAC= yes
NO_WRKSUBDIR= yes
PLIST_SUB= JAVAJARDIR=${JAVAJARDIR:S|^${PREFIX}/||}
+PKGMESSAGE= ${WRKDIR}/pkg-message
do-extract:
@${RM} -rf ${WRKDIR}
@@ -34,8 +35,12 @@ do-build:
do-install:
@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar ${JAVAJARDIR}
+ @${SED} s:%%JAVAJARDIR%%:${JAVAJARDIR}: < ${PKGDIR}/pkg-message \
+ > ${PKGMESSAGE}
post-install:
- @${SED} s:JAVAJARDIR:${JAVAJARDIR}: < ${PKGMESSAGE}
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
.include <bsd.port.mk>
diff --git a/java/jlex/pkg-message b/java/jlex/pkg-message
index 81856d1..02a60b20 100644
--- a/java/jlex/pkg-message
+++ b/java/jlex/pkg-message
@@ -1,2 +1,2 @@
-JLex is installed into JAVAJARDIR.
+JLex is installed into %%JAVAJARDIR%%.
See http://www.cs.princeton.edu/~appel/modern/java/JLex.
OpenPOWER on IntegriCloud