diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2017-11-29 16:17:57 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2017-11-29 16:17:57 +0000 |
commit | cfdc87743276439c7c6d9d8e9d622533bb6ff828 (patch) | |
tree | 39fd3f08d6afe893c840213a0df6e91913f0ff61 /www/ddgr | |
parent | 2c1311e413bbda07fe4fa299edf052ae23593f2d (diff) | |
download | ports-cfdc87743276439c7c6d9d8e9d622533bb6ff828.tar.gz ports-cfdc87743276439c7c6d9d8e9d622533bb6ff828.zip |
Notes
Diffstat (limited to 'www/ddgr')
-rw-r--r-- | www/ddgr/Makefile | 62 | ||||
-rw-r--r-- | www/ddgr/distinfo | 3 | ||||
-rw-r--r-- | www/ddgr/pkg-descr | 11 |
3 files changed, 76 insertions, 0 deletions
diff --git a/www/ddgr/Makefile b/www/ddgr/Makefile new file mode 100644 index 000000000000..c742cdaabb31 --- /dev/null +++ b/www/ddgr/Makefile @@ -0,0 +1,62 @@ +# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= ddgr +PORTVERSION= 1.1 +DISTVERSIONPREFIX= v +CATEGORIES= www + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= DuckDuckGo from the terminal + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py3-requests \ + ${PYTHON_PKGNAMEPREFIX}urllib3>=0:net/py3-urllib3 + +USE_GITHUB= yes +GH_ACCOUNT= jarun + +USES= python:3 +NO_ARCH= yes +NO_BUILD= yes + +PORTDOCS= README.md CHANGELOG +PLIST_FILES= bin/ddgr \ + man/man1/ddgr.1.gz + +OPTIONS_DEFINE= BASH ZSH FISH DOCS +OPTIONS_DEFAULT=BASH ZSH FISH + +BASH_PLIST_FILES= etc/bash_completion.d/ddgr-completion.bash +ZSH_PLIST_FILES= share/zsh/site-functions/_ddgr +FISH_PLIST_FILES= share/fish/completions/ddgr.fish + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/ddgr ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/ddgr.1 ${STAGEDIR}${MANPREFIX}/man/man1 + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ + +do-install-BASH-on: + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/ + ${INSTALL_DATA} ${WRKSRC}/auto-completion/bash/ddgr-completion.bash \ + ${STAGEDIR}${PREFIX}/etc/bash_completion.d/ + +do-install-ZSH-on: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/ + ${INSTALL_DATA} ${WRKSRC}/auto-completion/zsh/_ddgr \ + ${STAGEDIR}${PREFIX}/share/zsh/site-functions/ + +do-install-FISH-on: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions/ + ${INSTALL_DATA} ${WRKSRC}/auto-completion/fish/ddgr.fish \ + ${STAGEDIR}${PREFIX}/share/fish/completions/ + +do-test: + cd ${WRKSRC} && ./ddgr --help + +.include <bsd.port.mk> diff --git a/www/ddgr/distinfo b/www/ddgr/distinfo new file mode 100644 index 000000000000..469cccb44bc5 --- /dev/null +++ b/www/ddgr/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1511964879 +SHA256 (jarun-ddgr-v1.1_GH0.tar.gz) = 6fbf7a638e3e4c0db57ef4a86f253b5810e5755b88727444b17d4528e3a4f5d8 +SIZE (jarun-ddgr-v1.1_GH0.tar.gz) = 38553 diff --git a/www/ddgr/pkg-descr b/www/ddgr/pkg-descr new file mode 100644 index 000000000000..f6d75b3cc232 --- /dev/null +++ b/www/ddgr/pkg-descr @@ -0,0 +1,11 @@ +ddgr is a cmdline utility to search DuckDuckGo from the terminal. + +Unlike the web interface, you can specify the number of search +results you would like to see per page. It's more convenient than +skimming through 30-odd search results per page. The default interface +is carefully designed to use minimum space without sacrificing +readability. + +ddgr isn't affiliated to DuckDuckGo in any way. + +WWW: https://github.com/jarun/ddgr |