Lines 1-33
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= godep |
3 |
PORTNAME= godep |
4 |
PORTVERSION= 72 |
4 |
PORTVERSION= 74 |
|
|
5 |
DISTVERSIONPREFIX= v |
5 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
6 |
DISTVERSIONPREFIX= v |
|
|
7 |
|
7 |
|
8 |
MAINTAINER= swills@FreeBSD.org |
8 |
MAINTAINER= swills@FreeBSD.org |
9 |
COMMENT= Godep helps build packages reproducibly |
9 |
COMMENT= Godep helps build packages reproducibly |
10 |
|
10 |
|
11 |
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go |
11 |
LICENSE= BSD3CLAUSE |
12 |
|
12 |
|
|
|
13 |
USES= go |
14 |
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} |
15 |
|
13 |
USE_GITHUB= yes |
16 |
USE_GITHUB= yes |
14 |
GH_ACCOUNT= tools |
17 |
GH_ACCOUNT= tools |
15 |
|
18 |
|
16 |
PLIST_FILES= bin/godep |
19 |
PLIST_FILES= bin/godep |
17 |
|
20 |
|
18 |
STRIP= # stripping can break go binaries |
|
|
19 |
|
20 |
post-patch: |
21 |
@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME} |
22 |
.for src in *.go .gitignore .travis.yml Changelog.md Godeps License Readme.md |
23 |
@${MV} ${WRKSRC}/${src} \ |
24 |
${WRKSRC}/src/github.com/tools/${PORTNAME} |
25 |
.endfor |
26 |
|
27 |
do-build: |
28 |
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}; ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build |
29 |
|
30 |
do-install: |
31 |
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
32 |
|
33 |
.include <bsd.port.mk> |
21 |
.include <bsd.port.mk> |