Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2015 18:28:26 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r385538 - in head/net: . cf cf/files
Message-ID:  <201505061828.t46ISQ41053072@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Wed May  6 18:28:25 2015
New Revision: 385538
URL: https://svnweb.freebsd.org/changeset/ports/385538

Log:
  net/cf: add port
  
  The official command line client for Cloud Foundry.
  
  WWW: http://cloudfoundry.org/

Added:
  head/net/cf/
  head/net/cf/Makefile   (contents, props changed)
  head/net/cf/distinfo   (contents, props changed)
  head/net/cf/files/
  head/net/cf/files/patch-cf_app_app.go   (contents, props changed)
  head/net/cf/pkg-descr   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Wed May  6 18:20:42 2015	(r385537)
+++ head/net/Makefile	Wed May  6 18:28:25 2015	(r385538)
@@ -64,6 +64,7 @@
     SUBDIR += c3270
     SUBDIR += cagibi
     SUBDIR += ccxstream
+    SUBDIR += cf
     SUBDIR += chrony
     SUBDIR += citrix_ica
     SUBDIR += clamz

Added: head/net/cf/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/cf/Makefile	Wed May  6 18:28:25 2015	(r385538)
@@ -0,0 +1,56 @@
+# $FreeBSD$
+
+PORTNAME=	cf
+PORTVERSION=	6.11.2
+DISTVERSIONPREFIX=	v
+CATEGORIES=	net
+
+MAINTAINER=	swills@FreeBSD.org
+COMMENT=	CLI for Cloud Foundry written in Go
+
+BUILD_DEPENDS=	${LOCALBASE}/bin/go:${PORTSDIR}/lang/go \
+		${LOCALBASE}/bin/go-bindata:${PORTSDIR}/devel/go-bindata
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	cloudfoundry
+GH_PROJECT=	cli
+
+PLIST_FILES=	bin/cf
+
+PORTDOCS=	BUILDING.md CHANGELOG.md INSTALL.md LICENSE README.md VERSION
+
+STRIP=		# stripping can break go binaries
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e "s/BUILT_FROM_SOURCE/${PORTVERSION}/g" ${WRKSRC}/cf/app_constants.go
+	@cd ${WRKSRC} ; ${MKDIR} Godeps/_workspace/src/github.com/${GH_ACCOUNT}/${GH_PROJECT} ; \
+		${CP} -R .gitignore .travis.yml BUILDING.md CHANGELOG.md \
+		INSTALL.md LICENSE README.md VERSION bin cf \
+		cf_commands_excluded.json ci excluded.json fileutils fixtures \
+		flags generic glob installers json main makefile plugin \
+		plugin_examples release testhelpers utils words \
+		Godeps/_workspace/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
+
+do-build:
+	cd ${WRKSRC}/Godeps/_workspace/src/github.com/${GH_ACCOUNT}/${GH_PROJECT} ; \
+		${SETENV} GOPATH=${WRKSRC}/Godeps/_workspace go-bindata -pkg \
+		resources -o cf/resources/i18n_resources.go \
+		cf/i18n/resources/...  cf/i18n/test_fixtures/...
+	cd ${WRKSRC} ; \
+		${SETENV} GOPATH=${WRKSRC}/Godeps/_workspace go build -o out/cf ./main
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/out/cf \
+		${STAGEDIR}${PREFIX}/bin/
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for x in ${PORTDOCS}
+	${INSTALL_MAN} ${WRKSRC}/${x} ${STAGEDIR}${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>

Added: head/net/cf/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/cf/distinfo	Wed May  6 18:28:25 2015	(r385538)
@@ -0,0 +1,2 @@
+SHA256 (cloudfoundry-cli-v6.11.2_GH0.tar.gz) = 1c6ad0b18adc631fa4dd1ea3b91bf8103586db7620bc41be1099e9e1c21e0bbb
+SIZE (cloudfoundry-cli-v6.11.2_GH0.tar.gz) = 2228133

Added: head/net/cf/files/patch-cf_app_app.go
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/cf/files/patch-cf_app_app.go	Wed May  6 18:28:25 2015	(r385538)
@@ -0,0 +1,11 @@
+--- cf/app/app.go.orig	2015-04-29 12:36:58.960111000 +0000
++++ cf/app/app.go	2015-04-29 12:37:20.199807000 +0000
+@@ -98,7 +98,7 @@
+    {{.Version}}
+ 
+ {{.Title "` + T("BUILD TIME:") + `"}}
+-   {{.Compiled}}
++   BUILT_AT_UNKNOWN_TIME
+    {{range .Commands}}
+ {{.SubTitle .Name}}{{range .CommandSubGroups}}
+ {{range .}}   {{.Name}} {{.Description}}

Added: head/net/cf/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/cf/pkg-descr	Wed May  6 18:28:25 2015	(r385538)
@@ -0,0 +1,3 @@
+The official command line client for Cloud Foundry.
+
+WWW: http://cloudfoundry.org/



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