pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_regress pkgtools/pkg_regress: use SUBST f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f7974ac213a2
branches: trunk
changeset: 315838:f7974ac213a2
user: rillig <rillig%pkgsrc.org@localhost>
date: Fri Nov 30 18:42:12 2018 +0000
description:
pkgtools/pkg_regress: use SUBST framework for placeholders
diffstat:
pkgtools/pkg_regress/Makefile | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
diffs (38 lines):
diff -r 95f5501db41a -r f7974ac213a2 pkgtools/pkg_regress/Makefile
--- a/pkgtools/pkg_regress/Makefile Fri Nov 30 18:38:19 2018 +0000
+++ b/pkgtools/pkg_regress/Makefile Fri Nov 30 18:42:12 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2016/06/11 09:37:16 rillig Exp $
+# $NetBSD: Makefile,v 1.15 2018/11/30 18:42:12 rillig Exp $
PKGNAME= pkg_regress-0.3
CATEGORIES= pkgtools
@@ -7,18 +7,17 @@
COMMENT= Run pkgsrc infrastructure regression test suite
WRKSRC= ${WRKDIR}
-USE_LANGUAGES= # empty
-
-INSTALLATION_DIRS= sbin
-
-.include "../../mk/bsd.prefs.mk"
+USE_LANGUAGES= # none
+NO_BUILD= yes
+AUTO_MKDIRS= yes
-do-build:
- ${SED} -e 's#@MAKE@#${MAKE}#g' \
- -e 's#@PKGSRCDIR@#${PKGSRCDIR}#g' \
- -e 's#@SH@#${SH}#g' \
- -e 's#@EGREP@#${EGREP}#g' \
- ${FILESDIR}/pkg_regress.sh >${WRKSRC}/pkg_regress.sh
+SUBST_CLASSES+= regress
+SUBST_STAGE.regress= pre-configure
+SUBST_FILES.regress= pkg_regress.sh
+SUBST_VARS.regress= MAKE PKGSRCDIR SH EGREP
+
+do-extract:
+ ${CP} ${FILESDIR}/pkg_regress.sh ${WRKSRC}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pkg_regress.sh \
Home |
Main Index |
Thread Index |
Old Index