Commit f4ed5ad2 authored by swills's avatar swills
Browse files

devel/godep: create port

godep helps build packages reproducibly by fixing their dependencies.

WWW: https://github.com/tools/godep
parent 051e3cf8
......@@ -625,6 +625,7 @@
SUBDIR += go-uuid
SUBDIR += gob2
SUBDIR += gobject-introspection
SUBDIR += godep
SUBDIR += godot
SUBDIR += goffice
SUBDIR += goffice010
......
# $FreeBSD$
PORTNAME= godep
PORTVERSION= 0.0.0.2015061101
CATEGORIES= devel
MAINTAINER= swills@FreeBSD.org
COMMENT= Godep helps build packages reproducibly
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
USE_GITHUB= yes
GH_ACCOUNT= tools:DEFAULT kr:fs golang:tools
GH_PROJECT= godep:DEFAULT fs:fs tools:tools
GH_TAGNAME= e28aafa:DEFAULT 2788f0d:fs a6d2a42:tools
PLIST_FILES= bin/godep
STRIP= # stripping can break go binaries
post-patch:
@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}
.for src in .gitignore License Readme.md dep.go doc.go get.go go.go main.go \
match_test.go path.go pkg.go restore.go rewrite.go rewrite_test.go \
save.go save_test.go update.go update_test.go util.go vcs.go
@${MV} ${WRKSRC}/${src} \
${WRKSRC}/src/github.com/tools/${PORTNAME}
.endfor
@${MKDIR} ${WRKSRC}/src/github.com/kr
@${MKDIR} ${WRKSRC}/src/golang.org/x
@${MV} ${WRKSRC_fs} ${WRKSRC}/src/github.com/kr/fs
@${MV} ${WRKSRC_tools} ${WRKSRC}/src/golang.org/x/tools
do-build:
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}; ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
SHA256 (tools-godep-0.0.0.2015061101-e28aafa_GH0.tar.gz) = a7dcdd7d7381e79e5c48f1abb44edabeed184c9c0aea3c1d58e8cafc57943fde
SIZE (tools-godep-0.0.0.2015061101-e28aafa_GH0.tar.gz) = 20441
SHA256 (kr-fs-2788f0d_GH0.tar.gz) = 51899cf8a55f8feefcdd33c04cf5e74937319d45ce0f04aa175188573f3284c9
SIZE (kr-fs-2788f0d_GH0.tar.gz) = 4361
SHA256 (golang-tools-a6d2a42_GH0.tar.gz) = f46a91af2efc4ad3bbb4c8196183e1d396fefe2b33d8720c4198a5585f06780e
SIZE (golang-tools-a6d2a42_GH0.tar.gz) = 1625666
Godep helps build packages reproducibly by fixing their dependencies.
WWW: https://github.com/tools/godep
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment