pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/shells/etsh shells/etsh: Makefile revision.
details: https://anonhg.NetBSD.org/pkgsrc/rev/ddbc0789183d
branches: trunk
changeset: 389606:ddbc0789183d
user: vins <vins%pkgsrc.org@localhost>
date: Tue Dec 06 19:27:30 2022 +0000
description:
shells/etsh: Makefile revision.
* Replace the SUBST routine with REPLACE_INTERPRETER.
* Replace MAKEFLAGS with MAKE_FLAGS.
* Corrently set INSTALL_ENV in the post-install target.
diffstat:
shells/etsh/Makefile | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 deletions(-)
diffs (48 lines):
diff -r 1e398ea99a26 -r ddbc0789183d shells/etsh/Makefile
--- a/shells/etsh/Makefile Tue Dec 06 16:28:03 2022 +0000
+++ b/shells/etsh/Makefile Tue Dec 06 19:27:30 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2022/12/06 14:41:38 vins Exp $
+# $NetBSD: Makefile,v 1.3 2022/12/06 19:27:30 vins Exp $
DISTNAME= etsh-5.4.0
CATEGORIES= shells
@@ -17,23 +17,25 @@
EXPDIR:= ${PREFIX}/share/examples/etsh
DOCDIR:= ${PREFIX}/share/doc/etsh
-MAKEFLAGS+= PREFIX=${PREFIX}
-MAKEFLAGS+= DESTDOCDIR=${DESTDIR}${DOCDIR}
-MAKEFLAGS+= DESTEXPDIR=${DESTDIR}${EXPDIR}
-MAKEFLAGS+= MANGRP:='' BINGRP:=''
+REPLACE_INTERPRETER+= tsh
+REPLACE.tsh.old= .*/bin/env etsh
+REPLACE.tsh.new= ${PREFIX}/bin/etsh
+REPLACE_FILES.tsh+= libexec.etsh/etshdir
+REPLACE_FILES.tsh+= libexec.etsh/history
+REPLACE_FILES.tsh+= libexec.etsh/pev
-SUBST_CLASSES+= paths
-SUBST_STAGE.paths= pre-configure
-SUBST_FILES.paths+= libexec.etsh/etshdir
-SUBST_FILES.paths+= libexec.etsh/history
-SUBST_FILES.paths+= libexec.etsh/pev
-SUBST_SED.paths= -e 's|/usr/bin/env |${PREFIX}/bin/|'
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= DESTDOCDIR=${DESTDIR}${DOCDIR}
+MAKE_FLAGS+= DESTEXPDIR=${DESTDIR}${EXPDIR}
+
+INSTALL_ENV+= MANGRP=''
+INSTALL_ENV+= BINGRP=''
post-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} exp
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM:Q} exp
post-install:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} install-exp \
- install-doc
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} \
+ ${MAKE_PROGRAM:Q} install-exp install-doc
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index