Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Nov 2016 20:21:22 +0000 (UTC)
From:      =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= <dumbbell@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r426621 - in head/net/cf: . files
Message-ID:  <201611202021.uAKKLM2t049974@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell (src committer)
Date: Sun Nov 20 20:21:22 2016
New Revision: 426621
URL: https://svnweb.freebsd.org/changeset/ports/426621

Log:
  net/cf: Update to 6.22.2
  
  The port is also converted to USES=go, which greatly simplifies it.
  
  Approved by:	ci
  Differential Revision:	https://reviews.freebsd.org/D7740

Deleted:
  head/net/cf/files/
Modified:
  head/net/cf/Makefile
  head/net/cf/distinfo

Modified: head/net/cf/Makefile
==============================================================================
--- head/net/cf/Makefile	Sun Nov 20 20:19:51 2016	(r426620)
+++ head/net/cf/Makefile	Sun Nov 20 20:21:22 2016	(r426621)
@@ -1,49 +1,37 @@
 # $FreeBSD$
 
 PORTNAME=	cf
-PORTVERSION=	6.12.2
+PORTVERSION=	6.22.2
 DISTVERSIONPREFIX=	v
 CATEGORIES=	net
 
 MAINTAINER=	swills@FreeBSD.org
 COMMENT=	CLI for Cloud Foundry written in Go
 
-BUILD_DEPENDS=	${LOCALBASE}/bin/go:lang/go \
-		${LOCALBASE}/bin/go-bindata:devel/go-bindata
+LICENSE=	APACHE20
+
+BUILD_DEPENDS=	${LOCALBASE}/bin/go-bindata:devel/go-bindata
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	cloudfoundry
 GH_PROJECT=	cli
 
+USES=		go
+GO_PKGNAME=	code.cloudfoundry.org/cli
+
 PLIST_FILES=	bin/cf
 
-PORTDOCS=	BUILDING.md CHANGELOG.md INSTALL.md LICENSE README.md VERSION
+PORTDOCS=	CHANGELOG.md LICENSE NOTICE README.md
 
 STRIP=		# stripping can break go binaries
 
 OPTIONS_DEFINE=	DOCS
 
 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/
+	@${REINPLACE_CMD} \
+		-e "s/BUILT_FROM_SOURCE/${PORTVERSION}/g" \
+		${WRKSRC}/cf/app_constants.go
+	@: ${LN} -s ../.. ${WRKSRC}/vendor/code.cloudfoundry.org/cli
 
 do-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
@@ -51,4 +39,7 @@ do-install-DOCS-on:
 	${INSTALL_MAN} ${WRKSRC}/${x} ${STAGEDIR}${DOCSDIR}
 .endfor
 
+post-install:
+	${MV} ${STAGEDIR}${PREFIX}/bin/cli ${STAGEDIR}${PREFIX}/bin/cf
+
 .include <bsd.port.mk>

Modified: head/net/cf/distinfo
==============================================================================
--- head/net/cf/distinfo	Sun Nov 20 20:19:51 2016	(r426620)
+++ head/net/cf/distinfo	Sun Nov 20 20:21:22 2016	(r426621)
@@ -1,2 +1,3 @@
-SHA256 (cloudfoundry-cli-v6.12.2_GH0.tar.gz) = caa601410ff8b98b15e59171e042c88c09835d668b48560dde19c7a0e0ebc3fb
-SIZE (cloudfoundry-cli-v6.12.2_GH0.tar.gz) = 2292064
+TIMESTAMP = 1479575472
+SHA256 (cloudfoundry-cli-v6.22.2_GH0.tar.gz) = fa5254a6e7197d9de86f3f9e1084d1f51f04cfa201b27c85b467a3320dbecda6
+SIZE (cloudfoundry-cli-v6.22.2_GH0.tar.gz) = 5399810



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