pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/vault security/vault: Simplify Makefile, enab...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4082c88b3da2
branches:  trunk
changeset: 376238:4082c88b3da2
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Tue Feb 27 12:32:35 2018 +0000

description:
security/vault: Simplify Makefile, enable a basic test target.

diffstat:

 security/vault/Makefile |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (29 lines):

diff -r 6b9788495b9c -r 4082c88b3da2 security/vault/Makefile
--- a/security/vault/Makefile   Tue Feb 27 12:17:30 2018 +0000
+++ b/security/vault/Makefile   Tue Feb 27 12:32:35 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2018/02/27 11:20:42 fhajny Exp $
+# $NetBSD: Makefile,v 1.23 2018/02/27 12:32:35 fhajny Exp $
 
 DISTNAME=      vault-0.9.5
 CATEGORIES=    security
@@ -16,15 +16,13 @@
 
 USE_TOOLS+=            bash gmake
 
-MAKE_ENV+=             GOPATH=${WRKDIR}:${PREFIX}/gopkg
-
 INSTALLATION_DIRS+=    bin
 
-do-build:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} go build -o bin/vault
+do-install:
+       ${INSTALL_PROGRAM} ${WRKDIR}/bin/vault ${DESTDIR}${PREFIX}/bin
 
-do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/bin/vault ${DESTDIR}${PREFIX}/bin
+do-test:
+       cd ${WRKSRC} && ${SETENV} GOPATH=${WRKDIR}:${BUILDLINK_DIR}/gopkg go test -v ./vault
 
 .include "../../lang/go/go-package.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index