blob: a8c881410364996bb42a43249be1e31e6c554a8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $FreeBSD$
PORTNAME= godep
PORTVERSION= 0.0.0.2015080301
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
GH_TAGNAME= d8799f1
PLIST_FILES= bin/godep
STRIP= # stripping can break go binaries
post-patch:
@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}
.for src in .gitignore .travis.yml Godeps License Readme.md dep.go diff.go \
diff_test.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
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>
|