Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Mar 2023 06:16:24 GMT
From:      Lewis Cook <lcook@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2ca054695cd3 - main - devel/glab: Update to 1.26.0
Message-ID:  <202303110616.32B6GOsL051631@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by lcook:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2ca054695cd31fc2b73c84800021ddcdc3341ac7

commit 2ca054695cd31fc2b73c84800021ddcdc3341ac7
Author:     Lewis Cook <lcook@FreeBSD.org>
AuthorDate: 2023-03-11 06:01:42 +0000
Commit:     Lewis Cook <lcook@FreeBSD.org>
CommitDate: 2023-03-11 06:15:51 +0000

    devel/glab: Update to 1.26.0
    
    Changes:        https://gitlab.com/gitlab-org/cli/-/releases/v1.26.0
---
 devel/glab/Makefile  |  40 ++++++++++++++------
 devel/glab/distinfo  |  10 ++---
 devel/glab/pkg-descr |  13 +++----
 devel/glab/pkg-plist | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 144 insertions(+), 23 deletions(-)

diff --git a/devel/glab/Makefile b/devel/glab/Makefile
index c74bdaef4561..360fdf5fb569 100644
--- a/devel/glab/Makefile
+++ b/devel/glab/Makefile
@@ -1,12 +1,11 @@
 PORTNAME=	glab
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.22.0
-PORTREVISION=	11
+DISTVERSION=	1.26.0
 CATEGORIES=	devel
 
 MAINTAINER=	lcook@FreeBSD.org
-COMMENT=	Open-source GitLab command line tool
-WWW=		https://glab.readthedocs.io/
+COMMENT=	GitLab CLI tool bringing GitLab to your command line
+WWW=		https://gitlab.com/gitlab-org/cli
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
@@ -15,24 +14,43 @@ RUN_DEPENDS=	git:devel/git
 
 USES=		go:modules,1.19
 
-_BUILD_VERSION=	${DISTVERSION}
-_BUILD_DATE=	$$(date +%d/%m/%Y)
+_BUILD_COMMIT=		ef363646
+_BUILD_VERSION=		${DISTVERSION}-${_BUILD_COMMIT}
+_BUILD_PLATFORM=	${OPSYS:tl}
+_BUILD_DATE=		$$(date +%Y-%m-%d)
 
-GO_MODULE=	github.com/profclems/${PORTNAME}
+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.build=${_BUILD_DATE}"
+		-X main.platform=${_BUILD_PLATFORM}"
 
-PLIST_FILES=	bin/${PORTNAME}
-PORTDOCS=	README.md SECURITY.md
+PORTDOCS=	CONTRIBUTING.md README.md SECURITY.md
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=		COMPLETIONS DOCS MANPAGES
+OPTIONS_DEFAULT=	COMPLETIONS MANPAGES
+OPTIONS_SUB=		yes
+
+COMPLETIONS_DESC=		Build and install bash, fish and zsh shell completions
+COMPLETIONS_PLIST_FILES=	share/bash-completion/completions/${PORTNAME} \
+				share/fish/vendor_completions.d/${PORTNAME}.fish \
+				share/zsh/site-functions/_${PORTNAME}
+
+post-install-COMPLETIONS-on:
+.for _shell in bash fish zsh
+	${GO_WRKDIR_BIN}/${PORTNAME} completion -s ${_shell} \
+		>${STAGEDIR}${PREFIX}/${COMPLETIONS_PLIST_FILES:M*${_shell}*}
+.endfor
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \
 		${STAGEDIR}${DOCSDIR}
 
+post-install-MANPAGES-on:
+	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} run \
+		./cmd/gen-docs --manpage --path ${STAGEDIR}${MAN1PREFIX}/man/man1)
+
 .include <bsd.port.mk>
diff --git a/devel/glab/distinfo b/devel/glab/distinfo
index 98ec73188497..507139a86481 100644
--- a/devel/glab/distinfo
+++ b/devel/glab/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1643917248
-SHA256 (go/devel_glab/glab-v1.22.0/v1.22.0.mod) = 04e40d15d57951ff4b9dca2e16a693eda23383276e89ddde072cf3f68b439a41
-SIZE (go/devel_glab/glab-v1.22.0/v1.22.0.mod) = 3269
-SHA256 (go/devel_glab/glab-v1.22.0/v1.22.0.zip) = 0c1a886e25d76f2815eec048f82b4ac0df9b3b6fe4ee9ab7cc2776b5b110d632
-SIZE (go/devel_glab/glab-v1.22.0/v1.22.0.zip) = 16698655
+TIMESTAMP = 1678509970
+SHA256 (go/devel_glab/glab-v1.26.0/v1.26.0.mod) = ff1ae739eb14b10168dd7e5e31393bf38157d184149a78f81508b9d2b0792811
+SIZE (go/devel_glab/glab-v1.26.0/v1.26.0.mod) = 3728
+SHA256 (go/devel_glab/glab-v1.26.0/v1.26.0.zip) = 958b80614432cc35ef2ed45d7827274f922e20331163f298a910a7b1e85bbc15
+SIZE (go/devel_glab/glab-v1.26.0/v1.26.0.zip) = 17001561
diff --git a/devel/glab/pkg-descr b/devel/glab/pkg-descr
index 80c1535c3768..c4ccbdcc1290 100644
--- a/devel/glab/pkg-descr
+++ b/devel/glab/pkg-descr
@@ -4,11 +4,10 @@ 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. Inspired by gh,
-the official GitHub CLI tool.
+directly from your CLI among other features.
 
-GLab is available for repositories hosted on GitLab.com and
-self-hosted GitLab Instances. glab supports multiple
-authenticated GitLab instances and automatically detects the
-authenticated hostname from the remotes available in
-the working git directory.
+glab 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.
diff --git a/devel/glab/pkg-plist b/devel/glab/pkg-plist
new file mode 100644
index 000000000000..ae15a7cfa4e1
--- /dev/null
+++ b/devel/glab/pkg-plist
@@ -0,0 +1,104 @@
+%%MANPAGES%%man/man1/glab-alias-delete.1.gz
+%%MANPAGES%%man/man1/glab-alias-list.1.gz
+%%MANPAGES%%man/man1/glab-alias-set.1.gz
+%%MANPAGES%%man/man1/glab-alias.1.gz
+%%MANPAGES%%man/man1/glab-api.1.gz
+%%MANPAGES%%man/man1/glab-auth-login.1.gz
+%%MANPAGES%%man/man1/glab-auth-status.1.gz
+%%MANPAGES%%man/man1/glab-auth.1.gz
+%%MANPAGES%%man/man1/glab-check-update.1.gz
+%%MANPAGES%%man/man1/glab-ci-artifact.1.gz
+%%MANPAGES%%man/man1/glab-ci-delete.1.gz
+%%MANPAGES%%man/man1/glab-ci-get.1.gz
+%%MANPAGES%%man/man1/glab-ci-lint.1.gz
+%%MANPAGES%%man/man1/glab-ci-list.1.gz
+%%MANPAGES%%man/man1/glab-ci-retry.1.gz
+%%MANPAGES%%man/man1/glab-ci-run.1.gz
+%%MANPAGES%%man/man1/glab-ci-status.1.gz
+%%MANPAGES%%man/man1/glab-ci-trace.1.gz
+%%MANPAGES%%man/man1/glab-ci-view.1.gz
+%%MANPAGES%%man/man1/glab-ci.1.gz
+%%MANPAGES%%man/man1/glab-completion.1.gz
+%%MANPAGES%%man/man1/glab-config-get.1.gz
+%%MANPAGES%%man/man1/glab-config-set.1.gz
+%%MANPAGES%%man/man1/glab-config.1.gz
+%%MANPAGES%%man/man1/glab-incident-list.1.gz
+%%MANPAGES%%man/man1/glab-incident-view.1.gz
+%%MANPAGES%%man/man1/glab-incident.1.gz
+%%MANPAGES%%man/man1/glab-issue-board-create.1.gz
+%%MANPAGES%%man/man1/glab-issue-board-view.1.gz
+%%MANPAGES%%man/man1/glab-issue-board.1.gz
+%%MANPAGES%%man/man1/glab-issue-close.1.gz
+%%MANPAGES%%man/man1/glab-issue-create.1.gz
+%%MANPAGES%%man/man1/glab-issue-delete.1.gz
+%%MANPAGES%%man/man1/glab-issue-list.1.gz
+%%MANPAGES%%man/man1/glab-issue-note.1.gz
+%%MANPAGES%%man/man1/glab-issue-reopen.1.gz
+%%MANPAGES%%man/man1/glab-issue-subscribe.1.gz
+%%MANPAGES%%man/man1/glab-issue-unsubscribe.1.gz
+%%MANPAGES%%man/man1/glab-issue-update.1.gz
+%%MANPAGES%%man/man1/glab-issue-view.1.gz
+%%MANPAGES%%man/man1/glab-issue.1.gz
+%%MANPAGES%%man/man1/glab-label-create.1.gz
+%%MANPAGES%%man/man1/glab-label-list.1.gz
+%%MANPAGES%%man/man1/glab-label.1.gz
+%%MANPAGES%%man/man1/glab-mr-approve.1.gz
+%%MANPAGES%%man/man1/glab-mr-approvers.1.gz
+%%MANPAGES%%man/man1/glab-mr-checkout.1.gz
+%%MANPAGES%%man/man1/glab-mr-close.1.gz
+%%MANPAGES%%man/man1/glab-mr-create.1.gz
+%%MANPAGES%%man/man1/glab-mr-delete.1.gz
+%%MANPAGES%%man/man1/glab-mr-diff.1.gz
+%%MANPAGES%%man/man1/glab-mr-issues.1.gz
+%%MANPAGES%%man/man1/glab-mr-list.1.gz
+%%MANPAGES%%man/man1/glab-mr-merge.1.gz
+%%MANPAGES%%man/man1/glab-mr-note.1.gz
+%%MANPAGES%%man/man1/glab-mr-rebase.1.gz
+%%MANPAGES%%man/man1/glab-mr-reopen.1.gz
+%%MANPAGES%%man/man1/glab-mr-revoke.1.gz
+%%MANPAGES%%man/man1/glab-mr-subscribe.1.gz
+%%MANPAGES%%man/man1/glab-mr-todo.1.gz
+%%MANPAGES%%man/man1/glab-mr-unsubscribe.1.gz
+%%MANPAGES%%man/man1/glab-mr-update.1.gz
+%%MANPAGES%%man/man1/glab-mr-view.1.gz
+%%MANPAGES%%man/man1/glab-mr.1.gz
+%%MANPAGES%%man/man1/glab-release-create.1.gz
+%%MANPAGES%%man/man1/glab-release-delete.1.gz
+%%MANPAGES%%man/man1/glab-release-download.1.gz
+%%MANPAGES%%man/man1/glab-release-list.1.gz
+%%MANPAGES%%man/man1/glab-release-upload.1.gz
+%%MANPAGES%%man/man1/glab-release-view.1.gz
+%%MANPAGES%%man/man1/glab-release.1.gz
+%%MANPAGES%%man/man1/glab-repo-archive.1.gz
+%%MANPAGES%%man/man1/glab-repo-clone.1.gz
+%%MANPAGES%%man/man1/glab-repo-contributors.1.gz
+%%MANPAGES%%man/man1/glab-repo-create.1.gz
+%%MANPAGES%%man/man1/glab-repo-delete.1.gz
+%%MANPAGES%%man/man1/glab-repo-fork.1.gz
+%%MANPAGES%%man/man1/glab-repo-list.1.gz
+%%MANPAGES%%man/man1/glab-repo-mirror.1.gz
+%%MANPAGES%%man/man1/glab-repo-search.1.gz
+%%MANPAGES%%man/man1/glab-repo-transfer.1.gz
+%%MANPAGES%%man/man1/glab-repo-view.1.gz
+%%MANPAGES%%man/man1/glab-repo.1.gz
+%%MANPAGES%%man/man1/glab-schedule-list.1.gz
+%%MANPAGES%%man/man1/glab-schedule-run.1.gz
+%%MANPAGES%%man/man1/glab-schedule.1.gz
+%%MANPAGES%%man/man1/glab-snippet-create.1.gz
+%%MANPAGES%%man/man1/glab-snippet.1.gz
+%%MANPAGES%%man/man1/glab-ssh-key-add.1.gz
+%%MANPAGES%%man/man1/glab-ssh-key-get.1.gz
+%%MANPAGES%%man/man1/glab-ssh-key-list.1.gz
+%%MANPAGES%%man/man1/glab-ssh-key.1.gz
+%%MANPAGES%%man/man1/glab-user-events.1.gz
+%%MANPAGES%%man/man1/glab-user.1.gz
+%%MANPAGES%%man/man1/glab-variable-delete.1.gz
+%%MANPAGES%%man/man1/glab-variable-export.1.gz
+%%MANPAGES%%man/man1/glab-variable-get.1.gz
+%%MANPAGES%%man/man1/glab-variable-list.1.gz
+%%MANPAGES%%man/man1/glab-variable-set.1.gz
+%%MANPAGES%%man/man1/glab-variable-update.1.gz
+%%MANPAGES%%man/man1/glab-variable.1.gz
+%%MANPAGES%%man/man1/glab-version.1.gz
+%%MANPAGES%%man/man1/glab.1.gz
+bin/glab



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303110616.32B6GOsL051631>