pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/editors/uemacs Use SUBST to insert PREFIX instead of a...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f6076172d2d6
branches: trunk
changeset: 603688:f6076172d2d6
user: dholland <dholland%pkgsrc.org@localhost>
date: Thu May 10 20:59:41 2012 +0000
description:
Use SUBST to insert PREFIX instead of a handrolled sed, and be (much) less
indiscriminate about it.
diffstat:
editors/uemacs/Makefile | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (28 lines):
diff -r 653f70fb8d97 -r f6076172d2d6 editors/uemacs/Makefile
--- a/editors/uemacs/Makefile Thu May 10 20:54:54 2012 +0000
+++ b/editors/uemacs/Makefile Thu May 10 20:59:41 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2012/05/10 20:53:30 dholland Exp $
+# $NetBSD: Makefile,v 1.14 2012/05/10 20:59:41 dholland Exp $
DISTNAME= ue400dev
PKGNAME= uemacs-4.0
@@ -17,13 +17,12 @@
WRKSRC= ${WRKDIR}
EXTRACT_OPTS_ZIP= -Laqo
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= src/bind.c h/epath.h
+SUBST_SED.paths= -e s,%%PREFIX%%,${PREFIX},g
+
post-extract:
${CP} -r ${WRKSRC}/freebsd ${WRKSRC}/netbsd
-post-patch:
- for FILE in ${WRKSRC}/src/*.c ${WRKSRC}/h/*.h; do \
- ${MV} $${FILE} $${FILE}.old; \
- ${SED} -e "s|%%PREFIX%%|${PREFIX}|g" <$${FILE}.old >$${FILE}; \
- done
-
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index