pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/inputmethod/skk Use SUBST_*.
details: https://anonhg.NetBSD.org/pkgsrc/rev/6c0fd8fde6d3
branches: trunk
changeset: 482725:6c0fd8fde6d3
user: uebayasi <uebayasi%pkgsrc.org@localhost>
date: Tue Nov 02 00:41:30 2004 +0000
description:
Use SUBST_*.
diffstat:
inputmethod/skk/Makefile | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r 794f6e69257c -r 6c0fd8fde6d3 inputmethod/skk/Makefile
--- a/inputmethod/skk/Makefile Tue Nov 02 00:23:53 2004 +0000
+++ b/inputmethod/skk/Makefile Tue Nov 02 00:41:30 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2003/09/13 08:30:38 minoura Exp $
+# $NetBSD: Makefile,v 1.5 2004/11/02 00:41:30 uebayasi Exp $
#
DISTNAME= ddskk-12.2.0
@@ -31,11 +31,16 @@
INFO_FILES= skk.info
-do-configure:
+# SKK-CFG was copied from ${FILESDIR} during post-extract.
+SUBST_CLASSES= cfg
+SUBST_STAGE.cfg= do-configure
+SUBST_FILES.cfg= SKK-CFG
+SUBST_SED.cfg= -e 's|@PREFIX@|${PREFIX}|g' \
+ -e 's|@EMACS_LISPPREFIX@|${EMACS_LISPPREFIX}|g'
+
+# Substitute directory definitions during do-configure.
+post-extract:
@${MV} ${WRKSRC}/SKK-CFG ${WRKSRC}/SKK-CFG.orig
- @${SED} \
- -e 's|@PREFIX@|${PREFIX}|g' \
- -e 's|@EMACS_LISPPREFIX@|${EMACS_LISPPREFIX}|g' \
- ${FILESDIR}/SKK-CFG >${WRKSRC}/SKK-CFG
+ @${CP} ${FILESDIR}/SKK-CFG ${WRKSRC}
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index