mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
54e279cd72
Ports: benchmarks/hey benchmarks/vegeta databases/influxdb devel/arduino-builder devel/arduinoOTA devel/awless devel/git-codereview devel/git-town devel/gitlab-runner devel/grv devel/hub devel/jfrog-cli editors/micro finance/fixc misc/exercism net-mgmt/intel-snap net-mgmt/kapacitor net-mgmt/telegraf net/goreplay net/syncthing net/syncthing-cli net/syncthing-discosrv net/syncthing-inotify print/cups-connector security/sops security/vault sysutils/amazon-ssm-agent sysutils/circonus-agent sysutils/consul sysutils/consul_exporter sysutils/envconsul sysutils/serf textproc/consul-template textproc/spiff www/gobuffalo www/grafana2 www/grafana3 www/mattermost-server www/minio www/minio-client www/uchiwa Approved by: tcberner (mentor, implicit) Approved by: portmgr (port compliance, infrastructure)
48 lines
1.4 KiB
Makefile
48 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= spiff
|
|
PORTVERSION= 1.0.8
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= textproc
|
|
|
|
MAINTAINER= swills@FreeBSD.org
|
|
COMMENT= Declarative YAML templating system tuned for BOSH deployment manifests
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= cloudfoundry-incubator
|
|
|
|
PLIST_FILES= bin/spiff
|
|
|
|
PORTDOCS= LICENSE README.md examples/cf-aws.yml \
|
|
examples/multi-az-cf-aws.yml examples/tutorial.md
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@cd ${WRKSRC} ; ${MV} ${WRKSRC}/vendor ${WRKSRC}/src
|
|
@cd ${WRKSRC} ; ${MKDIR} src/github.com/${GH_ACCOUNT}/${GH_PROJECT} ; \
|
|
${MV} .gitignore LICENSE Makefile README.md \
|
|
compare dynaml examples flow init_test.go scripts spiff.go \
|
|
spiff_test.go yaml \
|
|
src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
|
|
|
|
do-build:
|
|
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT} ; \
|
|
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build spiff.go
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/${PORTNAME} \
|
|
${STAGEDIR}${PREFIX}/bin/
|
|
|
|
do-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/LICENSE \
|
|
${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/README.md \
|
|
${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT} && ${COPYTREE_SHARE} examples ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|