summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryouri <youri@pkgsrc.org>2015-06-04 21:56:48 +0000
committeryouri <youri@pkgsrc.org>2015-06-04 21:56:48 +0000
commitd44ccd605928b51f58f3e6adfdeb0ae29022d137 (patch)
treec3509e373c8f4fbca456068d873e814093878285
parent1b0bca0e8c4c64a97edb90759b3d78b66d066509 (diff)
downloadpkgsrc-d44ccd605928b51f58f3e6adfdeb0ae29022d137.tar.gz
Replace ambiguous MESSAGE by simple sed substitution. ok @agc
-rw-r--r--misc/cw/MESSAGE10
-rw-r--r--misc/cw/Makefile8
2 files changed, 6 insertions, 12 deletions
diff --git a/misc/cw/MESSAGE b/misc/cw/MESSAGE
deleted file mode 100644
index 52e6a41c407..00000000000
--- a/misc/cw/MESSAGE
+++ /dev/null
@@ -1,10 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE,v 1.1 2015/06/04 20:27:53 youri Exp $
-
-Please update the interpreter in cw scripts before using cw.
-
- # cwu ${PREFIX}/lib/cw ${PREFIX}/bin/cw
-
-And add ${PREFIX}/lib/cw to your $PATH.
-
-===========================================================================
diff --git a/misc/cw/Makefile b/misc/cw/Makefile
index 1408d241933..88f51355658 100644
--- a/misc/cw/Makefile
+++ b/misc/cw/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2015/06/04 20:27:53 youri Exp $
+# $NetBSD: Makefile,v 1.2 2015/06/04 21:56:48 youri Exp $
DISTNAME= cw-1.0.16
CATEGORIES= misc
@@ -12,6 +12,10 @@ LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
-CHECK_INTERPRETER_SKIP= lib/cw/*
+SUBST_CLASSES+= path
+SUBST_STAGE.path= pre-build
+SUBST_MESSAGE.path= Updating intepreter path
+SUBST_FILES.path= def/*
+SUBST_SED.path= -e 's,/cw,${PREFIX}/bin/cw,1'
.include "../../mk/bsd.pkg.mk"