blob: 983532f3c1199d84e2967ae043b3399a067d9994 (
plain)
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
60
61
62
63
|
PORTNAME= nnn
DISTVERSIONPREFIX= v
DISTVERSION= 3.6
CATEGORIES= misc shells
MAINTAINER= dmgk@FreeBSD.org
COMMENT= Missing terminal file browser for X
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c11 gmake localbase ncurses readline
USE_GITHUB= yes
GH_ACCOUNT= jarun
MAKE_ARGS= CFLAGS_OPTIMIZATION= \
LDLIBS_CURSES=-lncursesw \
MANPREFIX=${PREFIX}/share/man \
PKG_CONFIG=/usr/bin/true
PLIST_FILES= bin/nnn \
etc/bash_completion.d/nnn-completion.bash \
share/fish/completions/nnn.fish \
share/man/man1/nnn.1.gz \
share/zsh/site-functions/_nnn
PORTDOCS= README.md
PORTEXAMPLES= *
OPTIONS_DEFINE= ATOOL DOCS EXAMPLES MEDIAINFO XDG
OPTIONS_DEFAULT= ATOOL MEDIAINFO XDG
ATOOL_DESC= List and extract archives
MEDIAINFO_DESC= Show media information
XDG_DESC= Open files with xdg-open
ATOOL_RUN_DEPENDS= atool:archivers/atool
MEDIAINFO_RUN_DEPENDS= mediainfo:multimedia/mediainfo
XDG_RUN_DEPENDS= xdg-open:devel/xdg-utils
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nnn
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/misc/auto-completion/bash/nnn-completion.bash \
${STAGEDIR}${PREFIX}/etc/bash_completion.d
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
${INSTALL_DATA} ${WRKSRC}/misc/auto-completion/fish/nnn.fish \
${STAGEDIR}${PREFIX}/share/fish/completions
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/misc/auto-completion/zsh/_nnn \
${STAGEDIR}${PREFIX}/share/zsh/site-functions
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts
cd ${WRKSRC}/misc && ${COPYTREE_SHARE} "natool quitcd" \
${STAGEDIR}${EXAMPLESDIR}/scripts
cd ${WRKSRC} && ${COPYTREE_SHARE} plugins ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|