- Remove custom build/install targets left in place after r505321 - Switch to the new GO_TARGET tuple syntax introduced in r512001 - Switch to go:modules when upstream already uses them Reviewed by: tobik Approved by: araujo (mentor), portmgr (adamw) Differential Revision: https://reviews.freebsd.org/D21743
38 lines
721 B
Makefile
38 lines
721 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cf
|
|
PORTVERSION= 6.44.0
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER= dumbbell@FreeBSD.org
|
|
COMMENT= CLI for Cloud Foundry written in Go
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/go-bindata:devel/go-bindata
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= cloudfoundry
|
|
GH_PROJECT= cli
|
|
|
|
USES= go
|
|
|
|
GO_BUILDFLAGS= -ldflags="-X code.cloudfoundry.org/cli/version.binaryVersion=${PORTVERSION}"
|
|
GO_PKGNAME= code.cloudfoundry.org/cli
|
|
GO_TARGET= :cf
|
|
|
|
PLIST_FILES= bin/cf
|
|
|
|
PORTDOCS= NOTICE README.md
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for x in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${x} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|