summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/fzf/Makefile43
-rw-r--r--textproc/fzf/distinfo3
-rw-r--r--textproc/fzf/files/patch-src_options.go11
-rw-r--r--textproc/fzf/files/patch-src_terminal.go11
-rw-r--r--textproc/fzf/pkg-descr3
6 files changed, 72 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 230ab23a9198..b9a11eb3d08f 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -204,6 +204,7 @@
SUBDIR += fpc-libxml2
SUBDIR += freexl
SUBDIR += fy-aspell
+ SUBDIR += fzf
SUBDIR += ga-aspell
SUBDIR += gastex
SUBDIR += gd-aspell
diff --git a/textproc/fzf/Makefile b/textproc/fzf/Makefile
new file mode 100644
index 000000000000..6c69aac11177
--- /dev/null
+++ b/textproc/fzf/Makefile
@@ -0,0 +1,43 @@
+# Created by: Sascha Holzleiter <sascha@root-login.org>
+# $FreeBSD$
+
+PORTNAME= fzf
+PORTVERSION= 0.13.3
+CATEGORIES= textproc
+
+MAINTAINER= sascha@root-login.org
+COMMENT= Blazing fast command-line fuzzy finder
+
+LICENSE= MIT
+
+BUILD_DEPENDS= go-runewidth>0:devel/go-runewidth \
+ go-shellwords>0:devel/go-shellwords
+
+USES= compiler go
+
+USE_GITHUB= yes
+GH_ACCOUNT= junegunn
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
+
+GO_TARGET= ${GO_PKGNAME}/src/fzf
+
+PLIST_FILES= bin/fzf bin/fzf-tmux \
+ man/man1/fzf.1.gz \
+ man/man1/fzf-tmux.1.gz
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME}-tmux ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/fzf.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/fzf-tmux.1 ${STAGEDIR}${MANPREFIX}/man/man1
+
+.include <bsd.port.pre.mk>
+
+# If cc is clang, change it to clang to help Go identify the compiler,
+# else we get -pthread warnings
+.if ${COMPILER_TYPE} == "clang" && ${CC} == "cc"
+CC=clang
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/fzf/distinfo b/textproc/fzf/distinfo
new file mode 100644
index 000000000000..d83899373d1b
--- /dev/null
+++ b/textproc/fzf/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1470655672
+SHA256 (junegunn-fzf-0.13.3_GH0.tar.gz) = 04bb6901959fb9d4a3193662ef27b6a9bac106630b9a4d2921d6af3512de8d2f
+SIZE (junegunn-fzf-0.13.3_GH0.tar.gz) = 105465
diff --git a/textproc/fzf/files/patch-src_options.go b/textproc/fzf/files/patch-src_options.go
new file mode 100644
index 000000000000..4c3480a65689
--- /dev/null
+++ b/textproc/fzf/files/patch-src_options.go
@@ -0,0 +1,11 @@
+--- src/options.go.orig 2016-08-08 11:09:38 UTC
++++ src/options.go
+@@ -10,7 +10,7 @@ import (
+
+ "github.com/junegunn/fzf/src/curses"
+
+- "github.com/junegunn/go-shellwords"
++ "github.com/mattn/go-shellwords"
+ )
+
+ const usage = `usage: fzf [options]
diff --git a/textproc/fzf/files/patch-src_terminal.go b/textproc/fzf/files/patch-src_terminal.go
new file mode 100644
index 000000000000..ac065109724e
--- /dev/null
+++ b/textproc/fzf/files/patch-src_terminal.go
@@ -0,0 +1,11 @@
+--- src/terminal.go.orig 2016-07-15 16:06:53 UTC
++++ src/terminal.go
+@@ -15,7 +15,7 @@ import (
+ C "github.com/junegunn/fzf/src/curses"
+ "github.com/junegunn/fzf/src/util"
+
+- "github.com/junegunn/go-runewidth"
++ "github.com/mattn/go-runewidth"
+ )
+
+ type jumpMode int
diff --git a/textproc/fzf/pkg-descr b/textproc/fzf/pkg-descr
new file mode 100644
index 000000000000..db4bdd09a0c1
--- /dev/null
+++ b/textproc/fzf/pkg-descr
@@ -0,0 +1,3 @@
+FZF is a general-purpose command-line fuzzy finder.
+
+WWW: https://github.com/junegunn/fzf/