Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Oct 2019 08:59:30 +0000 (UTC)
From:      Luca Pizzamiglio <pizzamig@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r513466 - head/sysutils/nomad-pot-driver
Message-ID:  <201910010859.x918xUpC027334@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pizzamig
Date: Tue Oct  1 08:59:29 2019
New Revision: 513466
URL: https://svnweb.freebsd.org/changeset/ports/513466

Log:
  sysutils/nomad-pot-driver: simplify Makefile
  
  No functional changes introduced
  
  PR:		240948
  Submitted by:	dmgk@
  MFH:		2019Q4
  Sponsored by:	trivago N.V.

Modified:
  head/sysutils/nomad-pot-driver/Makefile

Modified: head/sysutils/nomad-pot-driver/Makefile
==============================================================================
--- head/sysutils/nomad-pot-driver/Makefile	Tue Oct  1 08:56:30 2019	(r513465)
+++ head/sysutils/nomad-pot-driver/Makefile	Tue Oct  1 08:59:29 2019	(r513466)
@@ -16,27 +16,14 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 RUN_DEPENDS=	pot:sysutils/pot \
 		nomad:sysutils/nomad
 
-USES=		compiler go
+USES=		go
 USE_GITHUB=	yes
 GH_ACCOUNT=	trivago
 GH_SUBDIR=	src/github.com/trivago/nomad-pot-driver
 
+GO_TARGET=	:${PREFIX}/libexec/nomad/plugins/nomad-pot-driver
+
 PLIST_FILES=	libexec/nomad/plugins/nomad-pot-driver
 SUB_FILES=	pkg-message
 
-do-build:
-	@cd ${WRKSRC}/src/github.com/trivago/nomad-pot-driver && \
-		${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x \
-		-o bin/nomad-pot-driver
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nomad/plugins
-	${INSTALL_SCRIPT} ${WRKSRC}/src/github.com/trivago/nomad-pot-driver/bin/nomad-pot-driver ${STAGEDIR}${PREFIX}/libexec/nomad/plugins
-
-.include <bsd.port.pre.mk>
-
-.if ${COMPILER_TYPE} == clang
-BUILD_ENV=	CC=clang
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910010859.x918xUpC027334>