summaryrefslogtreecommitdiff
path: root/math/abacus
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-01-29 11:34:21 +0000
committerwiz <wiz@pkgsrc.org>2001-01-29 11:34:21 +0000
commitb979f7222ad9bade13f010cd27e5bc6afab1681c (patch)
tree86f14acd24842161759a420487862022044c2b4b /math/abacus
parent6a13219ca89e5dae86f27159ff86006058c06859 (diff)
downloadpkgsrc-b979f7222ad9bade13f010cd27e5bc6afab1681c.tar.gz
Add automatic ${VARIABLE} handling for MESSAGE files.
Convert most MESSAGE files to new syntax (${VARIABLE} gets replaced, not @VARIABLE@, nor @@VARIABLE@@). By default, substitutions are done for LOCALBASE, PKGNAME, PREFIX, X11BASE, X11PREFIX; additional patterns can be added via MESSAGE_SUBST. Clean up some packages while I'm there; add RCS tags to most MESSAGEs. Remove some uninteresting MESSAGEs.
Diffstat (limited to 'math/abacus')
-rw-r--r--math/abacus/Makefile7
-rw-r--r--math/abacus/pkg/MESSAGE7
2 files changed, 6 insertions, 8 deletions
diff --git a/math/abacus/Makefile b/math/abacus/Makefile
index 91b8ecdf7e2..955d68a949f 100644
--- a/math/abacus/Makefile
+++ b/math/abacus/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2001/01/24 18:44:59 he Exp $
+# $NetBSD: Makefile,v 1.9 2001/01/29 11:34:33 wiz Exp $
# FreeBSD Id: Makefile,v 1.3 1998/09/25 10:07:44 asami Exp
#
@@ -18,8 +18,6 @@ BROKEN= This package has been updated to compile with tcl-8.3.2, but dumps core
USE_GMAKE= yes
USE_X11BASE= yes
-MESSAGE_FILE= ${WRKDIR}/MESSAGE
-
pre-patch:
@for d in `${FIND} ${WRKSRC} -name RCS -type d -print`; do \
${MV} $$d $$d-dist; \
@@ -30,9 +28,6 @@ pre-patch:
# @ ${RM} -f ${WRKSRC}/canvas
# @ ${LN} -fs ${WRKSRC}/canvas-tcl8.0.0 ${WRKSRC}/canvas
-pre-install:
- ${SED} -e "s_@PREFIX@_${PREFIX}_" < ${PKGDIR}/MESSAGE > ${MESSAGE_FILE}
-
do-install:
@ ${SED} s!@PREFIX@!${PREFIX}!g ${WRKSRC}/abacus >${WRKSRC}/abacus.sh
@ ${INSTALL_SCRIPT} ${WRKSRC}/abacus.sh ${PREFIX}/bin/abacus
diff --git a/math/abacus/pkg/MESSAGE b/math/abacus/pkg/MESSAGE
index 65d07e0bd42..9e1c7b20ee7 100644
--- a/math/abacus/pkg/MESSAGE
+++ b/math/abacus/pkg/MESSAGE
@@ -1,4 +1,5 @@
-$NetBSD: MESSAGE,v 1.2 2000/09/03 23:08:34 wiz Exp $
+======================================================================
+$NetBSD: MESSAGE,v 1.3 2001/01/29 11:34:33 wiz Exp $
Define the following environment variables:
@@ -7,6 +8,8 @@ Define the following environment variables:
ABACUS_BROWSER - web browser to view WWW pages and info.
e.g.:
- setenv ABACUS_HOME @PREFIX@/share/abacus
+ setenv ABACUS_HOME ${PREFIX}/share/abacus
setenv ABACUS_EDITOR emacs
setenv ABACUS_BROWSER netscape
+
+======================================================================