pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/xfstt Use the SUBST framework on the right files. ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/86776c017a30
branches:  trunk
changeset: 505641:86776c017a30
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jan 05 20:26:48 2006 +0000

description:
Use the SUBST framework on the right files. FAQ now has the correct
entries. Bump revision due to this.

diffstat:

 x11/xfstt/Makefile |  18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diffs (35 lines):

diff -r 345c48f7d9a4 -r 86776c017a30 x11/xfstt/Makefile
--- a/x11/xfstt/Makefile        Thu Jan 05 20:25:16 2006 +0000
+++ b/x11/xfstt/Makefile        Thu Jan 05 20:26:48 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2005/12/29 06:22:26 jlam Exp $
+# $NetBSD: Makefile,v 1.25 2006/01/05 20:26:48 joerg Exp $
 #
 
 DISTNAME=              xfstt-1.6
-PKGREVISION=           2
+PKGREVISION=           3
 CATEGORIES=            x11 net fonts
 MASTER_SITES=          http://download.berlios.de/xfstt/
 
@@ -24,15 +24,11 @@
 
 .include "../../mk/x11.buildlink3.mk"
 
-post-patch:
-       @( \
-       cd ${WRKSRC} ; \
-       for f in src/perftest.cc src/xfstt.cc doc/xfstt.1x; \
-       do \
-           ${MV} $$f $$f.orig ; \
-           ${SED} ${FILES_SUBST_SED} $$f.orig > $$f ; \
-       done ; \
-       )
+SUBST_CLASSES+=                paths
+SUBST_FILES.paths=     doc/FAQ doc/xfstt.1x
+SUBST_SED.paths=       -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+=      -e 's,@LOCALBASE@,${LOCALBASE},g'
+SUBST_STAGE.paths=     post-patch
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/src/xfstt ${PREFIX}/bin



Home | Main Index | Thread Index | Old Index