Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2018 23:58:35 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r479750 - head/sysutils/kops
Message-ID:  <201809132358.w8DNwZCo048497@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Thu Sep 13 23:58:35 2018
New Revision: 479750
URL: https://svnweb.freebsd.org/changeset/ports/479750

Log:
  - Use GO_* variables to simplify the Makefile

Modified:
  head/sysutils/kops/Makefile

Modified: head/sysutils/kops/Makefile
==============================================================================
--- head/sysutils/kops/Makefile	Thu Sep 13 22:36:19 2018	(r479749)
+++ head/sysutils/kops/Makefile	Thu Sep 13 23:58:35 2018	(r479750)
@@ -16,21 +16,16 @@ USES=		go
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	kubernetes
-GH_SUBDIR=	src/k8s.io/${PORTNAME}
 
+GO_PKGNAME=	k8s.io/${PORTNAME}
+GO_TARGET=	${GO_PKGNAME}/cmd/${PORTNAME}
+GO_BUILDFLAGS=	-ldflags=all="-X k8s.io/kops.Version=${PORTVERSION}"
+
 PLIST_FILES=	bin/${PORTNAME}
 
-do-build:
+pre-build:
 	cd ${WRKSRC} && \
 		${LOCALBASE}/bin/go-bindata -o upup/models/bindata.go -pkg models \
-		-prefix upup/models/ upup/models/... && \
-		GOPATH=${WRKSRC} go build \
-		-ldflags=all="-X k8s.io/kops.Version=${PORTVERSION}" \
-		k8s.io/kops/cmd/kops
-
-do-install:
-	${INSTALL_PROGRAM} \
-		${WRKSRC}/${PORTNAME} \
-		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+		-prefix upup/models/ upup/models/...
 
 .include <bsd.port.mk>



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