@@ -, +, @@ textproc/wikiman 2.11.3 --- b/textproc/Makefile +++ b/textproc/Makefile @@ -1815,6 +1815,7 @@ SUBDIR += website SUBDIR += weka SUBDIR += wiggle + SUBDIR += wikiman SUBDIR += word2x SUBDIR += wordnet SUBDIR += words --- /dev/null +++ b/textproc/wikiman/Makefile @@ -0,0 +1,60 @@ +# Created by: Filip Parag +# $FreeBSD$ + +PORTNAME= wikiman +DISTVERSION= 2.11.3 +PORTREVISION= 2 +CATEGORIES= textproc + +MAINTAINER= filip@parag.rs +COMMENT= Offline interactive documentation search + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= findutils>4:misc/findutils gawk>5:lang/gawk \ + ripgrep>12:textproc/ripgrep fzf>0.2:textproc/fzf \ + w3m>0.5:www/w3m + +USE_GITHUB= YES +GH_ACCOUNT= filiparag + +OPTIONS_DEFINE= DOCS CONFIG WDGTS COMPLT +OPTIONS_DEFAULT=DOCS CONFIG WDGTS COMPLT +OPTIONS_SUB= YES +CONFIG_DESC= Global configuration file +WDGTS_DESC= Shell keybind widgets +COMPLT_DESC= Shell completions for fish and zsh + +do-install: + ${MKDIR} ${STAGEDIR}${BINDIR} ${STAGEDIR}${PREFIX}/share/wikiman/sources \ + ${STAGEDIR}${MANPREFIX}/man/man1 + + ${INSTALL_SCRIPT} ${WRKSRC}/wikiman.sh ${STAGEDIR}${PREFIX}/bin/wikiman + (cd ${WRKSRC}/sources && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/share/wikiman/sources) + + ${GZIP_CMD} ${WRKSRC}/wikiman.1.man + ${INSTALL_MAN} ${WRKSRC}/wikiman.1.man.gz ${STAGEDIR}${MANPREFIX}/man/man1/wikiman.1.gz + +do-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +do-install-CONFIG-on: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc + ${INSTALL_DATA} ${WRKSRC}/wikiman.conf ${STAGEDIR}${PREFIX}/etc + +do-install-WDGTS-on: + ${MKDIR} ${STAGEDIR}${PREFIX}/share/wikiman/widgets + (cd ${WRKSRC}/widgets && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/share/wikiman/widgets) + +do-install-COMPLT-on: + ${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions \ + ${STAGEDIR}${PREFIX}/share/zsh/site-functions + + ${INSTALL_DATA} ${WRKSRC}/completions/completions.fish \ + ${STAGEDIR}${PREFIX}/share/fish/completions/wikiman.fish + ${INSTALL_DATA} ${WRKSRC}/completions/completions.zsh \ + ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_wikiman + +.include --- /dev/null +++ b/textproc/wikiman/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1599335476 +SHA256 (filiparag-wikiman-2.11.3_GH0.tar.gz) = e04731753d3c34fa7ba68559c39eb8b6e42c9d84c3c37492b52cafa18da495b3 +SIZE (filiparag-wikiman-2.11.3_GH0.tar.gz) = 1372012 --- /dev/null +++ b/textproc/wikiman/pkg-descr @@ -0,0 +1,9 @@ +Wikiman is an offline search engine for manual pages, Arch Wiki, Gentoo Wiki and +other documentation. + +Wikiman provides an easy interface for browsing documentation without the need +to be exact and connected to the internet. This is achieved by utilizing full +text search for wikis, partial name and description matching for man pages, +and fuzzy filtering for search results. + +WWW: https://github.com/filiparag/wikiman --- /dev/null +++ b/textproc/wikiman/pkg-plist @@ -0,0 +1,14 @@ +bin/wikiman +man/man1/wikiman.1.gz +%%DATADIR%%/sources/arch.sh +%%DATADIR%%/sources/fbsd.sh +%%DATADIR%%/sources/gentoo.sh +%%DATADIR%%/sources/man.sh +%%DATADIR%%/sources/tldr.sh +%%CONFIG%%%%ETCDIR%%.conf +%%DOCS%%%%PORTDOCS%%%%DOCSDIR%%/README.md +%%WDGTS%%%%DATADIR%%/widgets/widget.bash +%%WDGTS%%%%DATADIR%%/widgets/widget.fish +%%WDGTS%%%%DATADIR%%/widgets/widget.zsh +%%COMPLT%%share/fish/completions/wikiman.fish +%%COMPLT%%share/zsh/site-functions/_wikiman