e0e0e1bb0b
OK sthen --- GLab is an open source GitLab CLI tool bringing GitLab to your terminal next to where you are already working with git and your code without switching between windows and browser tabs. Work with issues, merge requests, watch running pipelines directly from your CLI among other features. glab(1) is available for repositories hosted on GitLab.com and self-managed GitLab instances. glab supports multiple authenticated GitLab instances and automatically detects the authenticated hostname from the remotes available in the working Git directory.
30 lines
560 B
Makefile
30 lines
560 B
Makefile
COMMENT = GitLab CLI tool
|
|
|
|
V = 1.24.1
|
|
MODGO_MODNAME = gitlab.com/gitlab-org/cli
|
|
MODGO_VERSION = v${V}
|
|
|
|
DISTNAME = cli-${MODGO_VERSION}
|
|
PKGNAME = gitlab-cli-${V}
|
|
|
|
CATEGORIES = sysutils
|
|
HOMEPAGE = https://docs.gitlab.com/ee/integration/glab/
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB = c pthread
|
|
|
|
MODULES = lang/go
|
|
MODGO_LDFLAGS = -X main.version=${V}
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${MODGO_TEST_CMD} ./...
|
|
|
|
post-install:
|
|
${WRKDIR}/go/bin/gen-docs --path ${PREFIX}/man/man1 --manpage
|
|
rm ${PREFIX}/bin/gen-docs
|
|
|
|
.include "modules.inc"
|
|
.include <bsd.port.mk>
|