aboutsummaryrefslogtreecommitdiffstats
path: root/net/cf
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2017-02-26 23:01:41 +0800
committerdumbbell <dumbbell@FreeBSD.org>2017-02-26 23:01:41 +0800
commitc686a3819644dce86d4b9bde6d5d50be65767e81 (patch)
tree9c44a55049a05d91b9eb629136bce29c8acc7d8b /net/cf
parent9125b18c2f9823ad9cc2dd250a4e6dc9b8475fc5 (diff)
downloadfreebsd-ports-gnome-c686a3819644dce86d4b9bde6d5d50be65767e81.tar.gz
freebsd-ports-gnome-c686a3819644dce86d4b9bde6d5d50be65767e81.tar.zst
freebsd-ports-gnome-c686a3819644dce86d4b9bde6d5d50be65767e81.zip
net/cf: Update to 6.24.0
The port now uses a `go build` link flag to set the version (as returned by `cf --version`) of the produced executable. This gets rid of the previous patching; it didn't work anymore with the new source code anyway. Approved by: swills, antoine (mentor) Differential Revision: https://reviews.freebsd.org/D9650
Diffstat (limited to 'net/cf')
-rw-r--r--net/cf/Makefile11
-rw-r--r--net/cf/distinfo6
2 files changed, 8 insertions, 9 deletions
diff --git a/net/cf/Makefile b/net/cf/Makefile
index 3b1480d61e96..bc6d960c3a59 100644
--- a/net/cf/Makefile
+++ b/net/cf/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= cf
-PORTVERSION= 6.22.2
+PORTVERSION= 6.24.0
DISTVERSIONPREFIX= v
CATEGORIES= net
@@ -27,11 +27,10 @@ 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
- @: ${LN} -s ../.. ${WRKSRC}/vendor/code.cloudfoundry.org/cli
+do-build:
+ (cd ${WRKDIR}; \
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} \
+ install -v -ldflags="-X code.cloudfoundry.org/cli/version.binaryVersion=${PORTVERSION}" ${GO_TARGET})
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/net/cf/distinfo b/net/cf/distinfo
index 4b61fb130ca4..0b55a4835d0a 100644
--- a/net/cf/distinfo
+++ b/net/cf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1479575472
-SHA256 (cloudfoundry-cli-v6.22.2_GH0.tar.gz) = fa5254a6e7197d9de86f3f9e1084d1f51f04cfa201b27c85b467a3320dbecda6
-SIZE (cloudfoundry-cli-v6.22.2_GH0.tar.gz) = 5399810
+TIMESTAMP = 1487333583
+SHA256 (cloudfoundry-cli-v6.24.0_GH0.tar.gz) = bb62e9bed4b95b0042426dab9fd40890de48ed04a9ff654193cf803d35422f75
+SIZE (cloudfoundry-cli-v6.24.0_GH0.tar.gz) = 5632074