pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/swiftsurf Use SUBST.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f97cb7ad464e
branches:  trunk
changeset: 377225:f97cb7ad464e
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Wed Mar 14 09:03:24 2018 +0000

description:
Use SUBST.

diffstat:

 www/swiftsurf/Makefile |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r ef0435c1790a -r f97cb7ad464e www/swiftsurf/Makefile
--- a/www/swiftsurf/Makefile    Wed Mar 14 09:00:17 2018 +0000
+++ b/www/swiftsurf/Makefile    Wed Mar 14 09:03:24 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2018/01/10 16:53:14 jaapb Exp $
+# $NetBSD: Makefile,v 1.30 2018/03/14 09:03:24 dholland Exp $
 
 DISTNAME=              swiftsurf-1.2.5
 PKGREVISION=           15
@@ -21,11 +21,10 @@
 
 INSTALLATION_DIRS=     bin share/doc/swiftsurf share/examples/swiftsurf
 
-do-configure:
-       for f in ${WRKSRC}/src/conf.ml; do \
-               ${SED} -e 's:@PKG_SYSCONFDIR@:${PKG_SYSCONFDIR}:g' \
-               $$f > $$f.tmp && ${MV} $$f.tmp $$f; \
-       done
+SUBST_CLASSES+=                conf
+SUBST_FILES.conf=      src/conf.ml
+SUBST_VARS.conf=       PKG_SYSCONFDIR
+SUBST_STAGE.conf=      pre-configure
 
 do-build:
        cd ${WRKSRC}/src && ${GMAKE} ${BUILD_TARGET}



Home | Main Index | Thread Index | Old Index