mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
102086eb37
PR: 246739 Submitted by: olgeni Approved by: maintainer
58 lines
2.0 KiB
Makefile
58 lines
2.0 KiB
Makefile
# Created by: Sascha Holzleiter <sascha@root-login.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fzf
|
|
PORTVERSION= 0.21.1
|
|
CATEGORIES= textproc
|
|
|
|
MAINTAINER= sascha@root-login.org
|
|
COMMENT= Blazing fast command-line fuzzy finder
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= compiler go:modules
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= junegunn
|
|
GH_TUPLE= \
|
|
gdamore:encoding:v1.0.0:gdamore_encoding/vendor/github.com/gdamore/encoding \
|
|
gdamore:tcell:v1.3.0:gdamore_tcell/vendor/github.com/gdamore/tcell \
|
|
golang:crypto:69ecbb4d6d5d:golang_crypto/vendor/golang.org/x/crypto \
|
|
golang:sync:cd5d95a43a6e:golang_sync/vendor/golang.org/x/sync \
|
|
golang:sys:d101bd2416d5:golang_sys/vendor/golang.org/x/sys \
|
|
golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
|
|
lucasb-eyer:go-colorful:v1.0.3:lucasb_eyer_go_colorful/vendor/github.com/lucasb-eyer/go-colorful \
|
|
mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
|
|
mattn:go-runewidth:v0.0.8:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
|
|
mattn:go-shellwords:v1.0.9:mattn_go_shellwords/vendor/github.com/mattn/go-shellwords \
|
|
saracen:walker:324a081bae7e:saracen_walker/vendor/github.com/saracen/walker
|
|
|
|
GO_BUILDFLAGS= -ldflags="-X main.revision=334a4fa -w"
|
|
|
|
SUB_FILES= pkg-message
|
|
PLIST_FILES= bin/fzf man/man1/fzf.1.gz
|
|
PORTEXAMPLES= shell/completion.bash shell/completion.zsh \
|
|
shell/key-bindings.bash shell/key-bindings.fish \
|
|
shell/key-bindings.zsh
|
|
|
|
OPTIONS_DEFINE= EXAMPLES TMUX
|
|
OPTIONS_DEFAULT= TMUX
|
|
|
|
TMUX_DESC= Install fzf-tmux (depends on BASH)
|
|
|
|
TMUX_RUN_DEPENDS= bash:shells/bash
|
|
TMUX_PLIST_FILES= bin/fzf-tmux man/man1/fzf-tmux.1.gz
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/fzf.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
(cd ${WRKSRC} && \
|
|
${COPYTREE_SHARE} shell ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
post-install-TMUX-on:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME}-tmux ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/fzf-tmux.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|