1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

New port: textproc/fzy: Interactive fuzzy text selector for the terminal

Committed with minor changes.

PR:		223337
Submitted by:	Oleh Hushchenkov <gor@clogic.com.ua>
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D12971
This commit is contained in:
Yuri Victorovich 2017-11-06 18:51:08 +00:00
parent 4681c15597
commit 27c2cc3cc9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=453639
4 changed files with 60 additions and 0 deletions

View File

@ -208,6 +208,7 @@
SUBDIR += freexl
SUBDIR += fy-aspell
SUBDIR += fzf
SUBDIR += fzy
SUBDIR += ga-aspell
SUBDIR += gastex
SUBDIR += gd-aspell

46
textproc/fzy/Makefile Normal file
View File

@ -0,0 +1,46 @@
# $FreeBSD$
PORTNAME= fzy
DISTVERSION= 0.9
CATEGORIES= textproc
MAINTAINER= gor@clogic.com.ua
COMMENT= Interactive fuzzy text selector for the terminal
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= jhawthorn
PLIST_FILES= bin/fzy man/man1/fzy.1.gz
OPTIONS_DEFINE= TMUX DVTM
OPTIONS_DEFAULT= TMUX
TMUX_DESC= Install fzy-tmux
DVTM_DESC= Install fzy-dvtm
TMUX_PLIST_FILES= bin/fzy-tmux
DVTM_PLIST_FILES= bin/fzy-dvtm
post-extract:
${CP} ${WRKSRC}/src/config.def.h ${WRKSRC}/config.h
post-patch:
@${REINPLACE_CMD} \
-e 's, -g,,g' \
-e 's, -O3,,g' \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fzy ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/fzy.1 ${STAGEDIR}${MANPREFIX}/man/man1/
do-install-TMUX-on:
${INSTALL_SCRIPT} ${WRKSRC}/contrib/fzy-tmux ${STAGEDIR}${PREFIX}/bin
do-install-DVTM-on:
${INSTALL_SCRIPT} ${WRKSRC}/contrib/fzy-dvtm ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>

3
textproc/fzy/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1509430593
SHA256 (jhawthorn-fzy-0.9_GH0.tar.gz) = 72182686806ddce7807d85c27efc321a1b01087643ce8006b1225e3617eecff5
SIZE (jhawthorn-fzy-0.9_GH0.tar.gz) = 42992

10
textproc/fzy/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
Fuzzy finder written on C. fzy is faster and shows better results than other
fuzzy finders. Most other fuzzy matchers sort based on the length of a match.
fzy tries to find the result the user intended. It does this by favouring
matches on consecutive letters and starts of words. This allows matching using
acronyms or different parts of the path. fzy is designed to be used both as an
editor plugin and on the command line. Rather than clearing the screen, fzy
displays its interface directly below the current cursor position, scrolling
the screen if necessary.
WWW: https://github.com/jhawthorn/fzy