pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/rtf-tools Converted to the SUBST framework an...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/93e938c0ac3a
branches:  trunk
changeset: 509577:93e938c0ac3a
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Mar 11 19:42:25 2006 +0000

description:
Converted to the SUBST framework and fixed pkglint warnings.

diffstat:

 textproc/rtf-tools/Makefile |  19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diffs (33 lines):

diff -r 4e54066c2c4d -r 93e938c0ac3a textproc/rtf-tools/Makefile
--- a/textproc/rtf-tools/Makefile       Sat Mar 11 18:43:18 2006 +0000
+++ b/textproc/rtf-tools/Makefile       Sat Mar 11 19:42:25 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2005/06/17 03:50:37 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2006/03/11 19:42:25 rillig Exp $
 #
 
 DISTNAME=              RTF-1.10
@@ -16,15 +16,14 @@
 INSTALL_TARGET=                install install.man
 INSTALLATION_DIRS=     bin man/manl
 
-post-patch:
-       for i in `${FIND} ${WRKSRC} -name Makefile -print`; do \
-               ${MV} $$i $$i.bak;\
-               ${SED} <$$i.bak >$$i \
-                       -e "s|-DVARARGS|-DSTDARGS|g" \
-                       -e "s|/usr/local|${PREFIX}|g" \
-                       -e "s|/usr/man|${PREFIX}/man|" \
-                       -e "s|\(LOCALBINDIR =.*\)|\1/bin|" ;\
-       done
+SUBST_CLASSES+=                rtf
+SUBST_STAGE.rtf=       pre-configure
+SUBST_MESSAGE.rtf=     Fixing absolute paths in Makefiles.
+SUBST_FILES.rtf=       Makefile */Makefile
+SUBST_SED.rtf+=                -e 's|-DVARARGS|-DSTDARGS|g'
+SUBST_SED.rtf+=                -e 's|/usr/local|${PREFIX}|g'
+SUBST_SED.rtf+=                -e 's|/usr/man|${PREFIX}/man|'
+SUBST_SED.rtf+=                -e 's|\(LOCALBINDIR =.*\)|\1/bin|'
 
 do-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/lib/rtf-tools



Home | Main Index | Thread Index | Old Index