summaryrefslogtreecommitdiff
path: root/devel/glab/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/glab/Makefile')
-rw-r--r--devel/glab/Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/devel/glab/Makefile b/devel/glab/Makefile
index 6dbbde828b51..47f4d9542aec 100644
--- a/devel/glab/Makefile
+++ b/devel/glab/Makefile
@@ -1,31 +1,32 @@
PORTNAME= glab
DISTVERSIONPREFIX= v
-DISTVERSION= 1.38.0
-PORTREVISION= 7
+DISTVERSION= 1.67.0
CATEGORIES= devel
-MAINTAINER= lcook@FreeBSD.org
+MAINTAINER= mfechner@FreeBSD.org
COMMENT= GitLab CLI tool bringing GitLab to your command line
WWW= https://gitlab.com/gitlab-org/cli
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= git:devel/git
RUN_DEPENDS= git:devel/git
-USES= go:1.21,modules
+USES= go:1.24,modules
_BUILD_VERSION= ${DISTVERSION}
_BUILD_PLATFORM= ${OPSYS:tl}
_BUILD_DATE= $$(date +%Y-%m-%d)
+_TAG= fe60bcf75bfb58801f5a429a52a3461ef62b0f6e
GO_MODULE= gitlab.com/gitlab-org/cli
GO_TARGET= ./cmd/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
- -X main.buildDate=${_BUILD_DATE} \
- -X main.version=${_BUILD_VERSION} \
- -X main.platform=${_BUILD_PLATFORM}"
+ -X 'main.commit=${_TAG}' \
+ -X 'main.version=${_BUILD_VERSION}' \
+ -X 'main.platform=${_BUILD_PLATFORM}'"
PORTDOCS= CONTRIBUTING.md README.md SECURITY.md
@@ -38,6 +39,16 @@ COMPLETIONS_PLIST_FILES= share/bash-completion/completions/${PORTNAME} \
share/fish/vendor_completions.d/${PORTNAME}.fish \
share/zsh/site-functions/_${PORTNAME}
+# add a git tag, as that is required to build the manpages
+pre-build:
+ cd ${WRKSRC} && \
+ git init && \
+ git config user.email "${MAINTAINER}" && \
+ git config user.name "FreeBSD Port" && \
+ git add . && \
+ git commit -m "tag" && \
+ git tag v${PORTVERSION}
+
post-install-COMPLETIONS-on:
.for _shell in bash fish zsh
${GO_WRKDIR_BIN}/${PORTNAME} completion -s ${_shell} \