Index: head/net/concourse-fly/Makefile =================================================================== --- head/net/concourse-fly/Makefile (revision 503575) +++ head/net/concourse-fly/Makefile (revision 503576) @@ -1,79 +1,79 @@ # $FreeBSD$ PORTNAME= concourse -PORTVERSION= 5.1.0 +PORTVERSION= 5.2.0 CATEGORIES= net sysutils MASTER_SITES= LOCAL/dumbbell/concourse/ PKGNAMESUFFIX= -fly MAINTAINER= dumbbell@FreeBSD.org COMMENT= CLI for Concourse LICENSE= APACHE20 GO_PKGNAME= github.com/concourse/fly GO_BUILDFLAGS+= -mod=vendor \ -ldflags="-X github.com/concourse/concourse.Version=${PORTVERSION}" USES= go tar:xz CONFLICTS_INSTALL= fly PLIST_FILES= bin/fly # The build instructions for `fly` suggest to clone the global Concourse # repository, which contains many Git submodules, including fly, and # build from there. So basically: # # git clone --recursive https://github.com/concourse/concourse.git # cd concourse/fly # go build # # Unfortunately, this is difficult to integrate as is with the Ports framework: # * Some submodules are hosted on services other than GitHub # * Third-party Go dependencies are not Git submodules # # We created the `create-src-archive` to create a self-contained # source archive because the Concourse does not provide one. This # source archive contains the Git submodules and the third-party Go # dependencies, fetched using `go mod vendor`. # # It is created using the `create-src-archive` target below: # # make create-src-archive # # Because it doesn't match the project layout USES=go expects, we # override the post-extract and do-build targets to adapt the commands. # # In particular, we must pass `-mod=vendor` to go-install to be able to # use the third-party dependencies fetched with `go mod vendor`. # `fly` version is set by default to "0.0.0-dev" in version/Version.go. # Instead of patching the file, we use a linker flag to set the variable # to the port's version. post-extract: @: do-build: (cd ${WRKSRC}/fly; \ ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} 'install' ${GO_BUILDFLAGS}) .PHONY: create-src-archive ARCHIVE_DIR= ${DISTDIR}/concourse-${PORTVERSION} create-src-archive: ${RM} -rf ${ARCHIVE_DIR} git clone --recursive -b v${PORTVERSION} \ https://github.com/concourse/concourse.git \ ${ARCHIVE_DIR} GOPATH=$$(mktemp concourse-gopath.XXXX) && \ (cd ${ARCHIVE_DIR} && \ ${GO_CMD} mod vendor) && \ ${FIND} "$$GOPATH" -exec ${CHMOD} u+w {} \; && \ ${RM} -rf "$$GOPATH" ${FIND} ${ARCHIVE_DIR} \( -name ".git*" -o -name "testdata" \) -depth -exec ${RM} -rf {} \; ${TAR} -cf - -C ${ARCHIVE_DIR:H} ${ARCHIVE_DIR:T} | ${XZ_CMD} > ${ARCHIVE_DIR}.tar.xz ${RM} -rf ${ARCHIVE_DIR} ${MAKE} makesum .include Index: head/net/concourse-fly/distinfo =================================================================== --- head/net/concourse-fly/distinfo (revision 503575) +++ head/net/concourse-fly/distinfo (revision 503576) @@ -1,3 +1,3 @@ -TIMESTAMP = 1556121268 -SHA256 (concourse-5.1.0.tar.xz) = 2d796b621b8d7000a6e84c7c7dd441ee702e0730c09b390cf79319ec217dc885 -SIZE (concourse-5.1.0.tar.xz) = 6738124 +TIMESTAMP = 1559739976 +SHA256 (concourse-5.2.0.tar.xz) = a602e2ed70175d9e7b77f31b02b77e4dcc516381161896b37e187a11f3fc620a +SIZE (concourse-5.2.0.tar.xz) = 6762024