[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / gcloud-golang-metadata

File: [cvs.NetBSD.org] / pkgsrc / net / gcloud-golang-metadata / Makefile (download)

Revision 1.21, Tue Apr 16 18:41:08 2019 UTC (4 months, 1 week ago) by bsiegert
Branch: MAIN
Changes since 1.20: +2 -2 lines

Revbump all Go packages after go112 update

# $NetBSD: Makefile,v 1.21 2019/04/16 18:41:08 bsiegert Exp $
#

DISTNAME=		gcloud-golang
PKGNAME=		gcloud-golang-metadata-20150310
PKGREVISION=		18
GITHUB_PROJECT=		${DISTNAME}
CATEGORIES=		net
MASTER_SITES=		${MASTER_SITE_GITHUB:=GoogleCloudPlatform/}
GITHUB_TAG=		9e1852f597

MAINTAINER=		bsiegert@NetBSD.org
HOMEPAGE=		http://golang.org/
COMMENT=		Google Compute Engine metadata package
LICENSE=		modified-bsd

GO_SRCPATH=		google.golang.org/cloud
GO_BUILD_PATTERN=	${GO_SRCPATH}/compute/metadata
GO_DIST_BASE=		${DISTNAME}-${GITHUB_TAG}*

# Remove all code except compute/metadata and internal
pre-patch:
	cd ${WRKSRC} && for i in *; do \
		case $$i in \
		c*|i*) ;; \
		*) ${RM} -fr $$i ;; \
		esac; \
		done
	${RM} -fr ${WRKSRC}/cloud*go
	${RM} -fr ${WRKSRC}/internal/datastore
	${RM} -fr ${WRKSRC}/internal/testutil

pre-install:
	${RM} -f ${WRKDIR}/pkg/${GO_PLATFORM}/google.golang.org/cloud/internal.a

.include "../../net/go-net/buildlink3.mk"
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"