Index: textproc/Makefile =================================================================== --- textproc/Makefile +++ textproc/Makefile @@ -208,6 +208,7 @@ SUBDIR += freexl SUBDIR += fy-aspell SUBDIR += fzf + SUBDIR += fzy SUBDIR += ga-aspell SUBDIR += gastex SUBDIR += gd-aspell Index: textproc/fzy/Makefile =================================================================== --- /dev/null +++ textproc/fzy/Makefile @@ -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 Index: textproc/fzy/distinfo =================================================================== --- /dev/null +++ textproc/fzy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1509430593 +SHA256 (jhawthorn-fzy-0.9_GH0.tar.gz) = 72182686806ddce7807d85c27efc321a1b01087643ce8006b1225e3617eecff5 +SIZE (jhawthorn-fzy-0.9_GH0.tar.gz) = 42992 Index: textproc/fzy/pkg-descr =================================================================== --- /dev/null +++ textproc/fzy/pkg-descr @@ -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