freebsd-ports/textproc/gh-grep/Makefile
2022-12-11 06:17:27 -05:00

30 lines
660 B
Makefile

PORTNAME= gh-grep
DISTVERSIONPREFIX= v
DISTVERSION= 0.11.0
PORTREVISION= 6
CATEGORIES= textproc
MAINTAINER= lcook@FreeBSD.org
COMMENT= Find lines matching a pattern within GitHub repositories
WWW= https://github.com/k1LoW/gh-grep
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
GO_MODULE= github.com/k1LoW/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X ${GO_MODULE}/version.Version=${DISTVERSION}"
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= CHANGELOG.md README.md
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>