View | Details | Raw Unified | Return to bug 249134 | Differences between
and this patch

Collapse All | Expand All

(-)b/textproc/Makefile (+1 lines)
Lines 1815-1820 Link Here
1815
    SUBDIR += website
1815
    SUBDIR += website
1816
    SUBDIR += weka
1816
    SUBDIR += weka
1817
    SUBDIR += wiggle
1817
    SUBDIR += wiggle
1818
    SUBDIR += wikiman
1818
    SUBDIR += word2x
1819
    SUBDIR += word2x
1819
    SUBDIR += wordnet
1820
    SUBDIR += wordnet
1820
    SUBDIR += words
1821
    SUBDIR += words
(-)b/textproc/wikiman/Makefile (+60 lines)
Added Link Here
1
# Created by: Filip Parag <filip@parag.rs>
2
# $FreeBSD$
3
4
PORTNAME=	wikiman
5
DISTVERSION=	2.11.3
6
PORTREVISION=	2
7
CATEGORIES=	textproc
8
9
MAINTAINER=	filip@parag.rs
10
COMMENT=	Offline interactive documentation search
11
12
LICENSE=	MIT
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
15
RUN_DEPENDS=	findutils>4:misc/findutils gawk>5:lang/gawk \
16
		ripgrep>12:textproc/ripgrep fzf>0.2:textproc/fzf \
17
		w3m>0.5:www/w3m
18
19
USE_GITHUB=	YES
20
GH_ACCOUNT=	filiparag
21
22
OPTIONS_DEFINE=	DOCS CONFIG WDGTS COMPLT
23
OPTIONS_DEFAULT=DOCS CONFIG WDGTS COMPLT
24
OPTIONS_SUB=	YES
25
CONFIG_DESC=	Global configuration file
26
WDGTS_DESC=	Shell keybind widgets
27
COMPLT_DESC=	Shell completions for fish and zsh
28
29
do-install:
30
	${MKDIR} ${STAGEDIR}${BINDIR} ${STAGEDIR}${PREFIX}/share/wikiman/sources \
31
		 ${STAGEDIR}${MANPREFIX}/man/man1
32
33
	${INSTALL_SCRIPT} ${WRKSRC}/wikiman.sh ${STAGEDIR}${PREFIX}/bin/wikiman
34
	(cd ${WRKSRC}/sources && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/share/wikiman/sources)
35
36
	${GZIP_CMD} ${WRKSRC}/wikiman.1.man
37
	${INSTALL_MAN} ${WRKSRC}/wikiman.1.man.gz ${STAGEDIR}${MANPREFIX}/man/man1/wikiman.1.gz
38
39
do-install-DOCS-on:
40
	${MKDIR} ${STAGEDIR}${DOCSDIR}
41
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
42
43
do-install-CONFIG-on:
44
	${MKDIR} ${STAGEDIR}${PREFIX}/etc
45
	${INSTALL_DATA} ${WRKSRC}/wikiman.conf ${STAGEDIR}${PREFIX}/etc
46
47
do-install-WDGTS-on:
48
	${MKDIR} ${STAGEDIR}${PREFIX}/share/wikiman/widgets
49
	(cd ${WRKSRC}/widgets && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/share/wikiman/widgets)
50
51
do-install-COMPLT-on:
52
	${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions \
53
		 ${STAGEDIR}${PREFIX}/share/zsh/site-functions
54
55
	${INSTALL_DATA} ${WRKSRC}/completions/completions.fish \
56
			${STAGEDIR}${PREFIX}/share/fish/completions/wikiman.fish
57
	${INSTALL_DATA} ${WRKSRC}/completions/completions.zsh \
58
			${STAGEDIR}${PREFIX}/share/zsh/site-functions/_wikiman
59
60
.include <bsd.port.mk>
(-)b/textproc/wikiman/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1599335476
2
SHA256 (filiparag-wikiman-2.11.3_GH0.tar.gz) = e04731753d3c34fa7ba68559c39eb8b6e42c9d84c3c37492b52cafa18da495b3
3
SIZE (filiparag-wikiman-2.11.3_GH0.tar.gz) = 1372012
(-)b/textproc/wikiman/pkg-descr (+9 lines)
Added Link Here
1
Wikiman is an offline search engine for manual pages, Arch Wiki, Gentoo Wiki and
2
other documentation.
3
4
Wikiman provides an easy interface for browsing documentation without the need
5
to be exact and connected to the internet. This is achieved by utilizing full
6
text search for wikis, partial name and description matching for man pages,
7
and fuzzy filtering for search results.
8
9
WWW: https://github.com/filiparag/wikiman
(-)b/textproc/wikiman/pkg-plist (+14 lines)
Added Link Here
1
bin/wikiman
2
man/man1/wikiman.1.gz
3
%%DATADIR%%/sources/arch.sh
4
%%DATADIR%%/sources/fbsd.sh
5
%%DATADIR%%/sources/gentoo.sh
6
%%DATADIR%%/sources/man.sh
7
%%DATADIR%%/sources/tldr.sh
8
%%CONFIG%%%%ETCDIR%%.conf
9
%%DOCS%%%%PORTDOCS%%%%DOCSDIR%%/README.md
10
%%WDGTS%%%%DATADIR%%/widgets/widget.bash
11
%%WDGTS%%%%DATADIR%%/widgets/widget.fish
12
%%WDGTS%%%%DATADIR%%/widgets/widget.zsh
13
%%COMPLT%%share/fish/completions/wikiman.fish
14
%%COMPLT%%share/zsh/site-functions/_wikiman

Return to bug 249134