pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/mozilla-bin Use SUBST.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/08d93f453068
branches:  trunk
changeset: 505670:08d93f453068
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jan 05 23:58:23 2006 +0000

description:
Use SUBST.

diffstat:

 www/mozilla-bin/Makefile.common |  15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 9d7ad816940f -r 08d93f453068 www/mozilla-bin/Makefile.common
--- a/www/mozilla-bin/Makefile.common   Thu Jan 05 23:54:44 2006 +0000
+++ b/www/mozilla-bin/Makefile.common   Thu Jan 05 23:58:23 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.32 2005/12/29 06:22:23 jlam Exp $
+# $NetBSD: Makefile.common,v 1.33 2006/01/05 23:58:23 joerg Exp $
 
 DISTNAME=              # see Makefile.${OPSYS}.${ARCH}
 PKGNAME=               ${MOZILLA}${MOZ_EXTRA}-bin-${MOZ_VER}
@@ -95,15 +95,22 @@
 
 INSTALLATION_DIRS=     bin
 
+SUBST_CLASSES+=                paths
+SUBST_FILES.paths=     ${WRKDIR}/${MOZILLA}.sh
+SUBST_SED.paths+=      -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+=      -e 's,@SH@,${SH},g'
+SUBST_SED.paths+=      -e 's,@MOZILLA@,${MOZILLA},g'
+SUBST_SED.paths+=      -e 's,@MOZ_EXTRA@,${MOZ_EXTRA},g'
+SUBST_SED.paths+=      -e 's,@MOZ_PLATFORM@,${MOZ_PLATFORM},g'
+SUBST_STAGE.paths=     post-patch
+
 # we don't want libnullplugin.
 post-extract:
        @${RM} -f ${WRKSRC}/plugins/libnullplugin.so
+       ${CP} ${MOZILLA_SCRIPT} ${WRKDIR}/${MOZILLA}.sh
 
 do-build:
 
-post-build:
-       @${SED} ${FILES_SUBST_SED} ${MOZILLA_SCRIPT} > ${WRKDIR}/${MOZILLA}.sh
-
 do-install:
        ${INSTALL_DATA_DIR} ${MOZILLA_LIB}
        cd ${WRKSRC} && ${PAX} -rw -pm . ${MOZILLA_LIB}



Home | Main Index | Thread Index | Old Index