pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/freeze Replaced explicit sed(1) replacement ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4571bcc63848
branches: trunk
changeset: 494318:4571bcc63848
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon May 23 06:56:53 2005 +0000
description:
Replaced explicit sed(1) replacement with the subst.mk framework.
diffstat:
archivers/freeze/Makefile | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (25 lines):
diff -r e195f0fe4de9 -r 4571bcc63848 archivers/freeze/Makefile
--- a/archivers/freeze/Makefile Mon May 23 06:52:35 2005 +0000
+++ b/archivers/freeze/Makefile Mon May 23 06:56:53 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2005/04/11 21:44:48 tv Exp $
+# $NetBSD: Makefile,v 1.18 2005/05/23 06:56:53 rillig Exp $
DISTNAME= freeze-2.5
PKGREVISION= 2
@@ -18,11 +18,9 @@
INSTALLATION_DIRS= bin man/man1
-post-patch:
- cd ${WRKSRC}; for file in *.1; do \
- ${SED} -e "s|@PREFIX@|${PREFIX}|g" \
- $${file} > $${file}.fixed; \
- ${MV} -f $${file}.fixed $${file}; \
- done
+SUBST_CLASSES+= freeze
+SUBST_STAGE.freeze= post-patch
+SUBST_FILES.freeze= *.1
+SUBST_SED.freeze= -e 's|@PREFIX@|${PREFIX}|g'
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index