2015-05-06 20:28:25 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cf
|
2016-11-20 21:21:22 +01:00
|
|
|
PORTVERSION= 6.22.2
|
2015-05-06 20:28:25 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
MAINTAINER= swills@FreeBSD.org
|
|
|
|
COMMENT= CLI for Cloud Foundry written in Go
|
|
|
|
|
2016-11-20 21:21:22 +01:00
|
|
|
LICENSE= APACHE20
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/go-bindata:devel/go-bindata
|
2015-05-06 20:28:25 +02:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= cloudfoundry
|
|
|
|
GH_PROJECT= cli
|
|
|
|
|
2016-11-20 21:21:22 +01:00
|
|
|
USES= go
|
|
|
|
GO_PKGNAME= code.cloudfoundry.org/cli
|
|
|
|
|
2015-05-06 20:28:25 +02:00
|
|
|
PLIST_FILES= bin/cf
|
|
|
|
|
2016-11-20 21:21:22 +01:00
|
|
|
PORTDOCS= CHANGELOG.md LICENSE NOTICE README.md
|
2015-05-06 20:28:25 +02:00
|
|
|
|
|
|
|
STRIP= # stripping can break go binaries
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
post-patch:
|
2016-11-20 21:21:22 +01:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e "s/BUILT_FROM_SOURCE/${PORTVERSION}/g" \
|
|
|
|
${WRKSRC}/cf/app_constants.go
|
|
|
|
@: ${LN} -s ../.. ${WRKSRC}/vendor/code.cloudfoundry.org/cli
|
2015-08-28 15:39:56 +02:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2015-05-06 20:28:25 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for x in ${PORTDOCS}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${x} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
|
2016-11-20 21:21:22 +01:00
|
|
|
post-install:
|
|
|
|
${MV} ${STAGEDIR}${PREFIX}/bin/cli ${STAGEDIR}${PREFIX}/bin/cf
|
|
|
|
|
2015-05-06 20:28:25 +02:00
|
|
|
.include <bsd.port.mk>
|