git: 3003914d0101 - main - devel/git-bug: Update to 0.8.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Mar 2023 05:23:10 UTC
The branch main has been updated by lcook: URL: https://cgit.FreeBSD.org/ports/commit/?id=3003914d010161e27be2406debdd3b4408f02821 commit 3003914d010161e27be2406debdd3b4408f02821 Author: Lewis Cook <lcook@FreeBSD.org> AuthorDate: 2023-03-18 04:25:14 +0000 Commit: Lewis Cook <lcook@FreeBSD.org> CommitDate: 2023-03-18 05:22:49 +0000 devel/git-bug: Update to 0.8.0 Changes: https://github.com/MichaelMure/git-bug/releases/tag/v0.8.0 --- devel/git-bug/Makefile | 29 ++++---- devel/git-bug/distinfo | 10 +-- ...ndor_github.com_awesome-gocui_termbox-go_api.go | 14 ---- devel/git-bug/pkg-plist | 77 +++++++++++----------- 4 files changed, 60 insertions(+), 70 deletions(-) diff --git a/devel/git-bug/Makefile b/devel/git-bug/Makefile index c57bbf5d0d4e..6ad6b98fdf4d 100644 --- a/devel/git-bug/Makefile +++ b/devel/git-bug/Makefile @@ -1,7 +1,6 @@ PORTNAME= git-bug DISTVERSIONPREFIX= v -DISTVERSION= 0.7.2 -PORTREVISION= 12 +DISTVERSION= 0.8.0 CATEGORIES= devel MAINTAINER= lcook@FreeBSD.org @@ -15,7 +14,7 @@ RUN_DEPENDS= git:devel/git USES= go:modules -_BUILD_COMMIT= cc4a93c8ce931b1390c61035b888ad17110b7bd6 +_BUILD_COMMIT= a3fa445 GO_MODULE= github.com/MichaelMure/${PORTNAME} GO_BUILDFLAGS= -ldflags "\ @@ -24,16 +23,22 @@ GO_BUILDFLAGS= -ldflags "\ -X ${GO_MODULE}/commands.GitLastTag=${DISTVERSION} \ -X ${GO_MODULE}/commands.GitExactTag=${DISTVERSION}" -post-install: - ${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 \ - ${STAGEDIR}${MAN1PREFIX}/man/man1 +OPTIONS_DEFINE= COMPLETIONS MANPAGES +OPTIONS_DEFAULT= COMPLETIONS MANPAGES +OPTIONS_SUB= yes - @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d \ - ${STAGEDIR}${PREFIX}/share/zsh/site-functions +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} - ${INSTALL_DATA} ${WRKSRC}/misc/bash_completion/${PORTNAME} \ - ${STAGEDIR}${PREFIX}/etc/bash_completion.d - ${INSTALL_DATA} ${WRKSRC}/misc/zsh_completion/${PORTNAME} \ - ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME} +post-install-COMPLETIONS-on: +.for _shell in bash fish zsh + ${GO_WRKDIR_BIN}/${PORTNAME} completion ${_shell} \ + >${STAGEDIR}${PREFIX}/${COMPLETIONS_PLIST_FILES:M*${_shell}*} +.endfor + +post-install-MANPAGES-on: + ${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 .include <bsd.port.mk> diff --git a/devel/git-bug/distinfo b/devel/git-bug/distinfo index 18ceef0fefac..cc3982b9e5a3 100644 --- a/devel/git-bug/distinfo +++ b/devel/git-bug/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1620926667 -SHA256 (go/devel_git-bug/git-bug-v0.7.2/v0.7.2.mod) = b5a70b8cadecb68dadcdd196bc9dbeca6d0c56ddfbed6830db710b3c4b094930 -SIZE (go/devel_git-bug/git-bug-v0.7.2/v0.7.2.mod) = 1482 -SHA256 (go/devel_git-bug/git-bug-v0.7.2/v0.7.2.zip) = 2bc31dbf19bebd4d4f6d24496ef2b05a94df0485aec49f830a4239bf08454fba -SIZE (go/devel_git-bug/git-bug-v0.7.2/v0.7.2.zip) = 2088123 +TIMESTAMP = 1679112317 +SHA256 (go/devel_git-bug/git-bug-v0.8.0/v0.8.0.mod) = d8df1effd620aef664daa371b0285d2a901b8214bf609c04f53957f17ef6db6b +SIZE (go/devel_git-bug/git-bug-v0.8.0/v0.8.0.mod) = 5579 +SHA256 (go/devel_git-bug/git-bug-v0.8.0/v0.8.0.zip) = e8b9646fd3e8ccf60b06c571e2535c7699b87fc238b8b4cdf7a1fa9ef99254f9 +SIZE (go/devel_git-bug/git-bug-v0.8.0/v0.8.0.zip) = 2759478 diff --git a/devel/git-bug/files/patch-vendor_github.com_awesome-gocui_termbox-go_api.go b/devel/git-bug/files/patch-vendor_github.com_awesome-gocui_termbox-go_api.go deleted file mode 100644 index 664956f91615..000000000000 --- a/devel/git-bug/files/patch-vendor_github.com_awesome-gocui_termbox-go_api.go +++ /dev/null @@ -1,14 +0,0 @@ -Import https://github.com/nsf/termbox-go/commit/58d4fcbce2a7e6a3a48afbc6b7ec2a916ac33ee0 -from upstream, this fixes an issue where it would hang in termui on FreeBSD. - ---- vendor/github.com/awesome-gocui/termbox-go/api.go.orig 2020-05-15 14:00:27 UTC -+++ vendor/github.com/awesome-gocui/termbox-go/api.go -@@ -24,7 +24,7 @@ import "time" - func Init() error { - var err error - -- if runtime.GOOS == "openbsd" { -+ if runtime.GOOS == "openbsd" || runtime.GOOS == "freebsd" { - out, err = os.OpenFile("/dev/tty", os.O_RDWR, 0) - if err != nil { - return err diff --git a/devel/git-bug/pkg-plist b/devel/git-bug/pkg-plist index 649b2415d7ad..4fd906259686 100644 --- a/devel/git-bug/pkg-plist +++ b/devel/git-bug/pkg-plist @@ -1,40 +1,39 @@ +%%MANPAGES%%man/man1/git-bug-add.1.gz +%%MANPAGES%%man/man1/git-bug-bridge-auth-add-token.1.gz +%%MANPAGES%%man/man1/git-bug-bridge-auth-rm.1.gz +%%MANPAGES%%man/man1/git-bug-bridge-auth-show.1.gz +%%MANPAGES%%man/man1/git-bug-bridge-auth.1.gz +%%MANPAGES%%man/man1/git-bug-bridge-configure.1.gz +%%MANPAGES%%man/man1/git-bug-bridge-pull.1.gz +%%MANPAGES%%man/man1/git-bug-bridge-push.1.gz +%%MANPAGES%%man/man1/git-bug-bridge-rm.1.gz +%%MANPAGES%%man/man1/git-bug-bridge.1.gz +%%MANPAGES%%man/man1/git-bug-commands.1.gz +%%MANPAGES%%man/man1/git-bug-comment-add.1.gz +%%MANPAGES%%man/man1/git-bug-comment-edit.1.gz +%%MANPAGES%%man/man1/git-bug-comment.1.gz +%%MANPAGES%%man/man1/git-bug-deselect.1.gz +%%MANPAGES%%man/man1/git-bug-label-add.1.gz +%%MANPAGES%%man/man1/git-bug-label-ls.1.gz +%%MANPAGES%%man/man1/git-bug-label-rm.1.gz +%%MANPAGES%%man/man1/git-bug-label.1.gz +%%MANPAGES%%man/man1/git-bug-ls.1.gz +%%MANPAGES%%man/man1/git-bug-pull.1.gz +%%MANPAGES%%man/man1/git-bug-push.1.gz +%%MANPAGES%%man/man1/git-bug-rm.1.gz +%%MANPAGES%%man/man1/git-bug-select.1.gz +%%MANPAGES%%man/man1/git-bug-show.1.gz +%%MANPAGES%%man/man1/git-bug-status-close.1.gz +%%MANPAGES%%man/man1/git-bug-status-open.1.gz +%%MANPAGES%%man/man1/git-bug-status.1.gz +%%MANPAGES%%man/man1/git-bug-termui.1.gz +%%MANPAGES%%man/man1/git-bug-title-edit.1.gz +%%MANPAGES%%man/man1/git-bug-title.1.gz +%%MANPAGES%%man/man1/git-bug-user-adopt.1.gz +%%MANPAGES%%man/man1/git-bug-user-create.1.gz +%%MANPAGES%%man/man1/git-bug-user-ls.1.gz +%%MANPAGES%%man/man1/git-bug-user.1.gz +%%MANPAGES%%man/man1/git-bug-version.1.gz +%%MANPAGES%%man/man1/git-bug-webui.1.gz +%%MANPAGES%%man/man1/git-bug.1.gz bin/git-bug -etc/bash_completion.d/git-bug -man/man1/git-bug-add.1.gz -man/man1/git-bug-bridge-auth-add-token.1.gz -man/man1/git-bug-bridge-auth-rm.1.gz -man/man1/git-bug-bridge-auth-show.1.gz -man/man1/git-bug-bridge-auth.1.gz -man/man1/git-bug-bridge-configure.1.gz -man/man1/git-bug-bridge-pull.1.gz -man/man1/git-bug-bridge-push.1.gz -man/man1/git-bug-bridge-rm.1.gz -man/man1/git-bug-bridge.1.gz -man/man1/git-bug-commands.1.gz -man/man1/git-bug-comment-add.1.gz -man/man1/git-bug-comment.1.gz -man/man1/git-bug-deselect.1.gz -man/man1/git-bug-label-add.1.gz -man/man1/git-bug-label-rm.1.gz -man/man1/git-bug-label.1.gz -man/man1/git-bug-ls-id.1.gz -man/man1/git-bug-ls-label.1.gz -man/man1/git-bug-ls.1.gz -man/man1/git-bug-pull.1.gz -man/man1/git-bug-push.1.gz -man/man1/git-bug-select.1.gz -man/man1/git-bug-show.1.gz -man/man1/git-bug-status-close.1.gz -man/man1/git-bug-status-open.1.gz -man/man1/git-bug-status.1.gz -man/man1/git-bug-termui.1.gz -man/man1/git-bug-title-edit.1.gz -man/man1/git-bug-title.1.gz -man/man1/git-bug-user-adopt.1.gz -man/man1/git-bug-user-create.1.gz -man/man1/git-bug-user-ls.1.gz -man/man1/git-bug-user.1.gz -man/man1/git-bug-version.1.gz -man/man1/git-bug-webui.1.gz -man/man1/git-bug.1.gz -share/zsh/site-functions/_git-bug