Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/mongo-tools Honor pkgsrc environment to not ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f4501cb5afc4
branches:  trunk
changeset: 431569:f4501cb5afc4
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu May 14 19:09:40 2020 +0000

description:
Honor pkgsrc environment to not write to real HOME

diffstat:

 databases/mongo-tools/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 8de54f58ac98 -r f4501cb5afc4 databases/mongo-tools/Makefile
--- a/databases/mongo-tools/Makefile    Thu May 14 19:09:09 2020 +0000
+++ b/databases/mongo-tools/Makefile    Thu May 14 19:09:40 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2020/01/18 21:48:56 jperkin Exp $
+# $NetBSD: Makefile,v 1.19 2020/05/14 19:09:40 joerg Exp $
 
 DISTNAME=      mongo-tools-3.4.23
 PKGREVISION=   1
@@ -37,10 +37,12 @@
        ${LN} -s ${WRKSRC}/vendor/${site} ${WRKSRC}/vendor/src/${site}
 .endfor
 
+MAKE_ENV+=     GOPATH=${WRKSRC}:${WRKSRC}/vendor:${PREFIX}/gopkg
+
 do-build:
 .for tool in ${MONGO_TOOLS}
        cd ${WRKSRC} && \
-         ${SETENV} GOPATH=${WRKSRC}:${WRKSRC}/vendor:${PREFIX}/gopkg \
+         ${PKGSRC_SETENV} ${MAKE_ENV} \
          ${GO} build -tags "${MONGO_TAGS}" -o bin/${tool} ${tool}/main/${tool}.go
 .endfor
 



Home | Main Index | Thread Index | Old Index