pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/cw Replace ambiguous MESSAGE by simple sed substi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32085202b097
branches:  trunk
changeset: 652597:32085202b097
user:      youri <youri%pkgsrc.org@localhost>
date:      Thu Jun 04 21:56:48 2015 +0000

description:
Replace ambiguous MESSAGE by simple sed substitution. ok @agc

diffstat:

 misc/cw/MESSAGE  |  10 ----------
 misc/cw/Makefile |   8 ++++++--
 2 files changed, 6 insertions(+), 12 deletions(-)

diffs (35 lines):

diff -r 80eecd42e713 -r 32085202b097 misc/cw/MESSAGE
--- a/misc/cw/MESSAGE   Thu Jun 04 21:33:18 2015 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 80eecd42e713 -r 32085202b097 misc/cw/Makefile
--- a/misc/cw/Makefile  Thu Jun 04 21:33:18 2015 +0000
+++ b/misc/cw/Makefile  Thu Jun 04 21:56:48 2015 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index