1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/devel/glab/Makefile

37 lines
705 B
Makefile

PORTNAME= glab
DISTVERSIONPREFIX= v
DISTVERSION= 1.18.1
CATEGORIES= devel
MAINTAINER= lcook@FreeBSD.org
COMMENT= Open-source GitLab command line tool
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= git:devel/git
USES= go:modules
_BUILD_VERSION= ${DISTVERSION}
_BUILD_DATE= $$(date +%d/%m/%Y)
GO_MODULE= github.com/profclems/${PORTNAME}
GO_TARGET= ./cmd/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X main.version=${_BUILD_VERSION} \
-X main.build=${_BUILD_DATE}"
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>