pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/et Use SUBST framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/11afc0748868
branches:  trunk
changeset: 506029:11afc0748868
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jan 10 20:51:08 2006 +0000

description:
Use SUBST framework.

diffstat:

 games/et/Makefile       |  14 +++++++++++---
 games/et/files/et.sh    |   4 ++--
 games/et/files/etded.sh |   4 ++--
 3 files changed, 15 insertions(+), 7 deletions(-)

diffs (61 lines):

diff -r 414bd5cf16d4 -r 11afc0748868 games/et/Makefile
--- a/games/et/Makefile Tue Jan 10 20:47:06 2006 +0000
+++ b/games/et/Makefile Tue Jan 10 20:51:08 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2005/12/29 06:21:41 jlam Exp $
+# $NetBSD: Makefile,v 1.9 2006/01/10 20:51:08 joerg Exp $
 #
 
 DISTNAME=       et-linux-2.56-2.x86
@@ -27,9 +27,19 @@
 
 INSTALLATION_DIRS=     bin
 
+SUBST_CLASSES+=                paths
+SUBST_FILES.paths=     ${WRKDIR}/et ${WRKDIR}/etded
+SUBST_SED.paths+=      -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+=      -e 's,@SH@,${SH},g'
+SUBST_STAGE.paths=     post-patch
+
 pre-extract:
        ${MKDIR} ${WRKSRC}
 
+post-extract:
+       ${CP} ${FILESDIR}/et.sh ${WRKDIR}/et
+       ${CP} ${FILESDIR}/etded.sh ${WRKDIR}/etded
+
 do-install:
        ${INSTALL_DATA_DIR} ${ETDIR}
        ${INSTALL_DATA} ${WRKSRC}/CHANGES ${ETDIR}/
@@ -45,9 +55,7 @@
        cd ${WRKSRC}/pb && ${PAX} -rw -p am . ${ETDIR}/pb
        ${INSTALL_SCRIPT} ${WRKSRC}/bin/Linux/x86/et.x86 ${ETDIR}/
        ${INSTALL_SCRIPT} ${WRKSRC}/bin/Linux/x86/etded.x86 ${ETDIR}/
-       @${SED} ${FILES_SUBST_SED} ${FILESDIR}/et.sh >${WRKDIR}/et
        ${INSTALL_SCRIPT} ${WRKDIR}/et ${PREFIX}/bin
-       @${SED} ${FILES_SUBST_SED} ${FILESDIR}/etded.sh >${WRKDIR}/etded
        ${INSTALL_SCRIPT} ${WRKDIR}/etded ${PREFIX}/bin
 
 .include "../../mk/bsd.pkg.mk"
diff -r 414bd5cf16d4 -r 11afc0748868 games/et/files/et.sh
--- a/games/et/files/et.sh      Tue Jan 10 20:47:06 2006 +0000
+++ b/games/et/files/et.sh      Tue Jan 10 20:51:08 2006 +0000
@@ -1,5 +1,5 @@
-#!/bin/sh
-# $NetBSD: et.sh,v 1.1.1.1 2004/07/08 14:28:37 xtraeme Exp $
+#!@SH@
+# $NetBSD: et.sh,v 1.2 2006/01/10 20:51:08 joerg Exp $
 
 cd @PREFIX@/lib/lokigames/et
 exec ./et.x86 "$@"
diff -r 414bd5cf16d4 -r 11afc0748868 games/et/files/etded.sh
--- a/games/et/files/etded.sh   Tue Jan 10 20:47:06 2006 +0000
+++ b/games/et/files/etded.sh   Tue Jan 10 20:51:08 2006 +0000
@@ -1,5 +1,5 @@
-#!/bin/sh
-# $NetBSD: etded.sh,v 1.1.1.1 2004/07/08 14:28:37 xtraeme Exp $
+#!@SH@
+# $NetBSD: etded.sh,v 1.2 2006/01/10 20:51:08 joerg Exp $
 
 cd @PREFIX@/lib/lokigames/et
 exec ./etded.x86 "$@"



Home | Main Index | Thread Index | Old Index