pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/pconsole Fix path to ksh, depend on it & use subst...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/88cce8feb8c7
branches:  trunk
changeset: 531535:88cce8feb8c7
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Aug 01 20:13:41 2007 +0000

description:
Fix path to ksh, depend on it & use subst framework. Bump revision.

diffstat:

 net/pconsole/Makefile |  19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diffs (39 lines):

diff -r 67cca8bb3af7 -r 88cce8feb8c7 net/pconsole/Makefile
--- a/net/pconsole/Makefile     Wed Aug 01 19:50:29 2007 +0000
+++ b/net/pconsole/Makefile     Wed Aug 01 20:13:41 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2006/10/04 21:53:17 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2007/08/01 20:13:41 joerg Exp $
 #
 
 DISTNAME=      pconsole-1.0
+PKGREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  http://www.ka.sara.nl/home/walter/pconsole/
 
@@ -11,16 +12,18 @@
 
 GNU_CONFIGURE= yes
 
+USE_TOOLS+=    ksh:run
+
+REPLACE_KSH=   pconsole.sh.in
+
+SUBST_CLASSES=         path
+SUBST_STAGE.path=      post-patch
+SUBST_FILES.path=      pconsole.sh.in
+SUBST_VARS.path=       PREFIX X11PREFIX
+
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pconsole
        cd ${WRKSRC} && ${INSTALL_DATA} \
                README.pconsole ${PREFIX}/share/doc/pconsole
 
-post-patch:
-       ${MV} ${WRKSRC}/pconsole.sh.in ${WRKSRC}/pconsole.sh.in.pre
-       ${SED} -e 's|@PREFIX@|${PREFIX}|g'              \
-               -e 's|@X11PREFIX@|${X11PREFIX}|g'       \
-               < ${WRKSRC}/pconsole.sh.in.pre          \
-               > ${WRKSRC}/pconsole.sh.in
-
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index