Thursday, November 28, 2019

[update] sysutils/fzf to 0.19.0

Hi,

Here is an update of fzf.

Port changes:
- Include shell completion / key-bindings.
- Update pledge to the "newer" PLedgePromises call.

FZF changes:
- https://github.com/junegunn/fzf/blob/master/CHANGELOG.md#0190

OK?

diff --git a/sysutils/fzf/Makefile b/sysutils/fzf/Makefile
index ab4142b5d6b..049ed1e5f58 100644
--- a/sysutils/fzf/Makefile
+++ b/sysutils/fzf/Makefile
@@ -2,7 +2,7 @@

COMMENT = command-line fuzzy finder

-DISTNAME = fzf-0.17.5
+DISTNAME = fzf-0.19.0

CATEGORIES = sysutils

@@ -16,7 +16,7 @@ PERMIT_PACKAGE = Yes
# uses pledge()
WANTLIB += c pthread

-MASTER_SITES = https://deftly.net/
+MASTER_SITES = https://deftly.net/dist/

MODULES = lang/go
MODGO_TYPE = bin
@@ -30,5 +30,8 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin
${INSTALL_MAN_DIR} ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/man1/*.1 ${PREFIX}/man/man1
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/fzf
+ ${INSTALL_DATA} ${WRKSRC}/shell/* ${PREFIX}/share/fzf
+

.include <bsd.port.mk>
diff --git a/sysutils/fzf/distinfo b/sysutils/fzf/distinfo
index 5f0ecbdddce..4faae15bb64 100644
--- a/sysutils/fzf/distinfo
+++ b/sysutils/fzf/distinfo
@@ -1,2 +1,2 @@
-SHA256 (fzf-0.17.5.tar.gz) = HKKM5mvQ38zuoo71g5/dAS0riCu5/Rs7bQ1miui52EM=
-SIZE (fzf-0.17.5.tar.gz) = 6413887
+SHA256 (fzf-0.19.0.tar.gz) = i0J6FbKUN3Yfy0REV8o1Q4xeb3jA9nA+JhpGfReD9f0=
+SIZE (fzf-0.19.0.tar.gz) = 2316589
diff --git a/sysutils/fzf/patches/patch-vendor_github_com_junegunn_fzf_src_protector_protector_openbsd_go b/sysutils/fzf/patches/patch-vendor_github_com_junegunn_fzf_src_protector_protector_openbsd_go
index 0dc61392f85..3c29980ae48 100644
--- a/sysutils/fzf/patches/patch-vendor_github_com_junegunn_fzf_src_protector_protector_openbsd_go
+++ b/sysutils/fzf/patches/patch-vendor_github_com_junegunn_fzf_src_protector_protector_openbsd_go
@@ -12,5 +12,5 @@ Index: vendor/github.com/junegunn/fzf/src/protector/protector_openbsd.go
+
+// Protect calls OS specific protections like pledge on OpenBSD
+func Protect(s string) {
-+ unix.Pledge(s, nil)
++ unix.PledgePromises(s)
+}
diff --git a/sysutils/fzf/pkg/PLIST b/sysutils/fzf/pkg/PLIST
index 931641a1d69..40e0908f3d3 100644
--- a/sysutils/fzf/pkg/PLIST
+++ b/sysutils/fzf/pkg/PLIST
@@ -3,3 +3,9 @@
bin/fzf-tmux
@man man/man1/fzf-tmux.1
@man man/man1/fzf.1
+share/fzf/
+share/fzf/completion.bash
+share/fzf/completion.zsh
+share/fzf/key-bindings.bash
+share/fzf/key-bindings.fish
+share/fzf/key-bindings.zsh

--
PGP: 0x1F81112D62A9ADCE / 3586 3350 BFEA C101 DB1A 4AF0 1F81 112D 62A9 ADCE

No comments:

Post a Comment