forked from Lainports/freebsd-ports
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= dasel
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.12.2
|
|
CATEGORIES= textproc
|
|
|
|
MAINTAINER= lcook@FreeBSD.org
|
|
COMMENT= Query and update data structures from the command line
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= go:modules
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= tomwright
|
|
GH_TUPLE= clbanning:mxj:e937bdee5a3e:clbanning_mxj_v2/vendor/github.com/clbanning/mxj/v2 \
|
|
go-yaml:yaml:v2.2.2:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
|
|
inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \
|
|
pelletier:go-toml:v1.8.1:pelletier_go_toml/vendor/github.com/pelletier/go-toml \
|
|
spf13:cobra:v1.0.0:spf13_cobra/vendor/github.com/spf13/cobra \
|
|
spf13:pflag:v1.0.3:spf13_pflag/vendor/github.com/spf13/pflag
|
|
|
|
_BUILD_VERSION= ${DISTVERSION}
|
|
|
|
GO_TARGET= ./cmd/${PORTNAME}
|
|
GO_BUILDFLAGS= -ldflags "\
|
|
-s -w \
|
|
-X github.com/${GH_ACCOUNT}/${GH_PROJECT}/internal.Version=${_BUILD_VERSION}"
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
PORTDOCS= CODE_OF_CONDUCT.md README.md
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|