pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/wm/larswm Use SUBST framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9b194537ba5e
branches:  trunk
changeset: 505708:9b194537ba5e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jan 06 16:07:39 2006 +0000

description:
Use SUBST framework.

diffstat:

 wm/larswm/Makefile |  13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diffs (27 lines):

diff -r d7518c92db1a -r 9b194537ba5e wm/larswm/Makefile
--- a/wm/larswm/Makefile        Fri Jan 06 15:19:41 2006 +0000
+++ b/wm/larswm/Makefile        Fri Jan 06 16:07:39 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2005/12/29 06:22:20 jlam Exp $
+# $NetBSD: Makefile,v 1.12 2006/01/06 16:07:39 joerg Exp $
 #
 
 DISTNAME=      larswm-7.5.3
@@ -23,13 +23,10 @@
 
 CPPFLAGS+=     -DPKG_SYSCONFDIR=\"${PKG_SYSCONFDIR:Q}\"
 
-post-patch:
-       @cd ${WRKSRC} &&                                        \
-       (                                                       \
-               ${MV} larswm.man larswm.man.orig;               \
-               ${SED} ${FILES_SUBST_SED} larswm.man.orig >     \
-                       larswm.man;                             \
-       )
+SUBST_CLASSES+=                paths
+SUBST_FILES.paths=     larswm.man
+SUBST_SED.paths+=      -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_STAGE.paths=     post-patch
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/larswm



Home | Main Index | Thread Index | Old Index