1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

- Use GH_SUBDIR instead of post-patch

This commit is contained in:
Danilo Egea Gondolfo 2018-08-20 03:33:07 +00:00
parent b72db4dee5
commit db139c2577
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=477623

View File

@ -19,23 +19,20 @@ USES= go
USE_GITHUB= yes
GH_ACCOUNT= weaveworks
GH_SUBDIR= src/github.com/weaveworks/${PORTNAME}
PLIST_FILES= bin/${PORTNAME}
post-patch:
${LN} -s ${WRKSRC}/vendor ${WRKSRC}/src
${MKDIR} ${WRKSRC}/src/github.com/weaveworks/eksctl
${LN} -s ${WRKSRC}/pkg ${WRKSRC}/src/github.com/weaveworks/eksctl/pkg
do-build:
cd ${WRKSRC}/cmd/${PORTNAME} && \
cd ${WRKSRC}/${GH_SUBDIR} && \
GOPATH=${WRKSRC} go build \
-ldflags="-X main.gitCommit=${PORTVERSION} \
-X main.builtAt=$$(date +'%s')"
-X main.builtAt=$$(date +'%s')" \
./cmd/${PORTNAME}
do-install:
${INSTALL_PROGRAM} \
${WRKSRC}/cmd/${PORTNAME}/${PORTNAME} \
${WRKSRC}/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>