pkgsrc-Changes archive

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

CVS commit: pkgsrc/pkgtools/pkg_regress



Module Name:    pkgsrc
Committed By:   rillig
Date:           Fri Nov 30 18:42:12 UTC 2018

Modified Files:
        pkgsrc/pkgtools/pkg_regress: Makefile

Log Message:
pkgtools/pkg_regress: use SUBST framework for placeholders


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/pkgtools/pkg_regress/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/pkg_regress/Makefile
diff -u pkgsrc/pkgtools/pkg_regress/Makefile:1.14 pkgsrc/pkgtools/pkg_regress/Makefile:1.15
--- pkgsrc/pkgtools/pkg_regress/Makefile:1.14   Sat Jun 11 09:37:16 2016
+++ pkgsrc/pkgtools/pkg_regress/Makefile        Fri Nov 30 18:42:12 2018
@@ -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 @@ MAINTAINER=   pkgsrc-users%NetBSD.org@localhost
 COMMENT=       Run pkgsrc infrastructure regression test suite
 
 WRKSRC=                ${WRKDIR}
-USE_LANGUAGES= # empty
+USE_LANGUAGES= # none
+NO_BUILD=      yes
+AUTO_MKDIRS=   yes
+
+SUBST_CLASSES+=                regress
+SUBST_STAGE.regress=   pre-configure
+SUBST_FILES.regress=   pkg_regress.sh
+SUBST_VARS.regress=    MAKE PKGSRCDIR SH EGREP
 
-INSTALLATION_DIRS=     sbin
-
-.include "../../mk/bsd.prefs.mk"
-
-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
+do-extract:
+       ${CP} ${FILESDIR}/pkg_regress.sh ${WRKSRC}
 
 do-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/pkg_regress.sh \



Home | Main Index | Thread Index | Old Index