blob: 8140f93738dca296fb1ed979bb9322001878b408 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Created by: Sascha Holzleiter <sascha@root-login.org>
# $FreeBSD$
PORTNAME= fzf
PORTVERSION= 0.15.8
CATEGORIES= textproc
MAINTAINER= sascha@root-login.org
COMMENT= Blazing fast command-line fuzzy finder
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler go ncurses
USE_GITHUB= yes
GH_ACCOUNT= junegunn
GH_SUBDIR:= src/github.com/${GH_ACCOUNT}/${PORTNAME}
GH_TUPLE= junegunn:go-runewidth:63c378b:runwidth/src/github.com/junegunn/go-runewidth \
junegunn:go-shellwords:35d512a:shellwords/src/github.com/junegunn/go-shellwords \
junegunn:go-isatty:66b8e73:isatty/src/github.com/junegunn/go-isatty
PLIST_FILES= bin/fzf man/man1/fzf.1.gz
STRIP= # do not strip go binaries
OPTIONS_DEFINE= TMUX
TMUX_DESC= Install fzf-tmux (depends on BASH)
OPTIONS_DEFAULT= TMUX
TMUX_RUN_DEPENDS= bash:shells/bash
TMUX_PLIST_FILES= bin/fzf-tmux man/man1/fzf-tmux.1.gz
do-build:
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/src/fzf; \
${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} \
go build -o bin/${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/src/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
post-install:
${INSTALL_MAN} ${WRKSRC}/man/man1/fzf.1 ${STAGEDIR}${MANPREFIX}/man/man1
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.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>
|