From owner-svn-ports-all@freebsd.org Fri Sep 14 00:23:33 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51E6B109EF56; Fri, 14 Sep 2018 00:23:33 +0000 (UTC) (envelope-from danilo@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E97598D52C; Fri, 14 Sep 2018 00:23:32 +0000 (UTC) (envelope-from danilo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C46851CEC2; Fri, 14 Sep 2018 00:23:32 +0000 (UTC) (envelope-from danilo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8E0NWY1063735; Fri, 14 Sep 2018 00:23:32 GMT (envelope-from danilo@FreeBSD.org) Received: (from danilo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8E0NW33063734; Fri, 14 Sep 2018 00:23:32 GMT (envelope-from danilo@FreeBSD.org) Message-Id: <201809140023.w8E0NW33063734@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danilo set sender to danilo@FreeBSD.org using -f From: Danilo Egea Gondolfo Date: Fri, 14 Sep 2018 00:23:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r479751 - head/sysutils/minikube X-SVN-Group: ports-head X-SVN-Commit-Author: danilo X-SVN-Commit-Paths: head/sysutils/minikube X-SVN-Commit-Revision: 479751 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2018 00:23:33 -0000 Author: danilo Date: Fri Sep 14 00:23:32 2018 New Revision: 479751 URL: https://svnweb.freebsd.org/changeset/ports/479751 Log: - Use GO_* variables to simplify the Makefile Modified: head/sysutils/minikube/Makefile Modified: head/sysutils/minikube/Makefile ============================================================================== --- head/sysutils/minikube/Makefile Thu Sep 13 23:58:35 2018 (r479750) +++ head/sysutils/minikube/Makefile Fri Sep 14 00:23:32 2018 (r479751) @@ -18,36 +18,32 @@ 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="-X k8s.io/minikube/pkg/version.version=v${PORTVERSION} \ + -X k8s.io/minikube/pkg/version.isoVersion=v0.28.1 \ + -X k8s.io/minikube/pkg/version.isoPath=minikube/iso \ + -X k8s.io/kubernetes/pkg/version.gitCommit=fc32d2f3698e36b93322a3465f63a14e9f0eaead \ + -X k8s.io/kubernetes/pkg/version.gitTreeState=clean \ + -X k8s.io/kubernetes/pkg/version.gitVersion=v1.10.0 \ + -X k8s.io/kubernetes/pkg/version.gitMajor=1 \ + -X k8s.io/kubernetes/pkg/version.gitMinor=10 \ + -X k8s.io/kubernetes/pkg/version.buildDate=$$(date +'%Y-%m-%dT%H:%M:%SZ') \ + -X k8s.io/client-go/pkg/version.gitCommit=fc32d2f3698e36b93322a3465f63a14e9f0eaead \ + -X k8s.io/client-go/pkg/version.gitTreeState=clean \ + -X k8s.io/client-go/pkg/version.gitVersion=v1.10.0 \ + -X k8s.io/client-go/pkg/version.gitMajor=1 \ + -X k8s.io/client-go/pkg/version.gitMinor=10 \ + -X k8s.io/client-go/pkg/version.buildDate=$$(date +'%Y-%m-%dT%H:%M:%SZ')" + PLIST_FILES= bin/${PORTNAME} SUB_FILES= pkg-message -do-build: - (cd ${WRKSRC}; ${LOCALBASE}/bin/go-bindata -nomemcopy -o pkg/minikube/assets/assets.go -pkg assets deploy/addons/...) - cd ${WRKSRC}/${GH_SUBDIR} && \ - GOPATH=${WRKSRC} go build \ - -ldflags="-X k8s.io/minikube/pkg/version.version=v${PORTVERSION} \ - -X k8s.io/minikube/pkg/version.isoVersion=v0.28.1 \ - -X k8s.io/minikube/pkg/version.isoPath=minikube/iso \ - -X k8s.io/kubernetes/pkg/version.gitCommit=fc32d2f3698e36b93322a3465f63a14e9f0eaead \ - -X k8s.io/kubernetes/pkg/version.gitTreeState=clean \ - -X k8s.io/kubernetes/pkg/version.gitVersion=v1.10.0 \ - -X k8s.io/kubernetes/pkg/version.gitMajor=1 \ - -X k8s.io/kubernetes/pkg/version.gitMinor=10 \ - -X k8s.io/kubernetes/pkg/version.buildDate=$$(date +'%Y-%m-%dT%H:%M:%SZ') \ - -X k8s.io/client-go/pkg/version.gitCommit=fc32d2f3698e36b93322a3465f63a14e9f0eaead \ - -X k8s.io/client-go/pkg/version.gitTreeState=clean \ - -X k8s.io/client-go/pkg/version.gitVersion=v1.10.0 \ - -X k8s.io/client-go/pkg/version.gitMajor=1 \ - -X k8s.io/client-go/pkg/version.gitMinor=10 \ - -X k8s.io/client-go/pkg/version.buildDate=$$(date +'%Y-%m-%dT%H:%M:%SZ')" \ - ./cmd/${PORTNAME} - -do-install: - ${INSTALL_PROGRAM} \ - ${WRKSRC}/${PORTNAME} \ - ${STAGEDIR}${PREFIX}/bin/${PORTNAME} +pre-build: + cd ${WRKSRC} && \ + ${LOCALBASE}/bin/go-bindata -nomemcopy \ + -o pkg/minikube/assets/assets.go -pkg assets deploy/addons/... .include