1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/sysutils/epazote/Makefile
William Grzybowski 487b06f9c5 sysutils/epazote: update to 2.0.0
PR:		212896
Submitted by:	maintainer
2016-09-22 12:45:10 +00:00

54 lines
1.6 KiB
Makefile

# $FreeBSD$
PORTNAME= epazote
PORTVERSION= 2.0.0
CATEGORIES= sysutils
MAINTAINER= nbari@tequila.io
COMMENT= Automated HTTP (microservices) supervisor
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go>=1.7:lang/go
USES= compiler
USE_GITHUB= yes
GH_ACCOUNT= epazote:DEFAULT \
epazote:scheduler \
go-yaml:yaml
GH_PROJECT= epazote scheduler:scheduler yaml:yaml
GH_TAGNAME= 0.1.0:scheduler v2:yaml
STRIP= # stripping can break go binaries
PLIST_FILES= bin/epazote
post-patch:
@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
.for src in a_test.go block.go block_test.go changelog.md cmd color.go \
color_test.go config.go config_test.go epazote.go examples \
mail.go mail_test.go mailman.go mailman_test.go report.go \
report_test.go request.go request_test.go scandir.go \
scandir_test.go singleton.go singleton_test.go start.go \
start_test.go supervice.go supervice_test.go test try.go try_test.go
@${MV} ${WRKSRC}/${src} \
${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
.endfor
@${MV} ${WRKSRC_scheduler}/${src} \
${WRKSRC}/src/github.com/${GH_ACCOUNT}/scheduler
@${MKDIR} ${WRKSRC}/src/gopkg.in
@${MV} ${WRKSRC_yaml}/ \
${WRKSRC}/src/gopkg.in/yaml.v2
do-build:
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \
${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \
"-X main.version=${PORTVERSION}" -o epazote cmd/epazote/main.go;
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/epazote ${STAGEDIR}${PREFIX}/bin/epazote
.include <bsd.port.mk>