databases/cayley: Merge pre-build into do-build

Reported by:	mat
This commit is contained in:
Yuri Victorovich 2018-06-04 15:37:23 +00:00
parent a7f0cdea95
commit bdd54b9424
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=471559

View file

@ -70,10 +70,8 @@ post-patch:
s|github.com/olivere/elastic|gopkg.in/olivere/elastic.v5|; \
s|gopkg.in/mgo.v2-unstable|gopkg.in/mgo.v2|'
pre-build:
@cd ${WRKSRC} && [ -e ${PORTNAME} ] || ${LN} -s . ${PORTNAME}
do-build:
@cd ${WRKSRC} && [ -e ${PORTNAME} ] || ${LN} -s . ${PORTNAME}
@cd ${WRKSRC}/${GH_SUBDIR} && \
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build \
-ldflags="-X github.com/${GH_ACCOUNT}graph/${GH_PROJECT}/version.GitHash=${PORTVERSION}" \