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
This commit is contained in:
parent
2c1311e413
commit
cfdc877432
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=455122
4 changed files with 78 additions and 1 deletions
|
@ -103,6 +103,7 @@
|
|||
SUBDIR += dalbum
|
||||
SUBDIR += davical
|
||||
SUBDIR += dddbl
|
||||
SUBDIR += ddgr
|
||||
SUBDIR += decss
|
||||
SUBDIR += deforaos-surfer
|
||||
SUBDIR += demoroniser
|
||||
|
@ -2097,7 +2098,6 @@
|
|||
SUBDIR += rubygem-pusher-client
|
||||
SUBDIR += rubygem-rabbirack
|
||||
SUBDIR += rubygem-rack
|
||||
SUBDIR += rubygem-rack_csrf
|
||||
SUBDIR += rubygem-rack-accept
|
||||
SUBDIR += rubygem-rack-attack
|
||||
SUBDIR += rubygem-rack-cache
|
||||
|
@ -2114,6 +2114,7 @@
|
|||
SUBDIR += rubygem-rack-timeout
|
||||
SUBDIR += rubygem-rack15
|
||||
SUBDIR += rubygem-rack16
|
||||
SUBDIR += rubygem-rack_csrf
|
||||
SUBDIR += rubygem-rails-settings-cached
|
||||
SUBDIR += rubygem-rails-settings-cached-rails5
|
||||
SUBDIR += rubygem-rails-settings-cached-rails50
|
||||
|
|
62
www/ddgr/Makefile
Normal file
62
www/ddgr/Makefile
Normal file
|
@ -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>
|
3
www/ddgr/distinfo
Normal file
3
www/ddgr/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1511964879
|
||||
SHA256 (jarun-ddgr-v1.1_GH0.tar.gz) = 6fbf7a638e3e4c0db57ef4a86f253b5810e5755b88727444b17d4528e3a4f5d8
|
||||
SIZE (jarun-ddgr-v1.1_GH0.tar.gz) = 38553
|
11
www/ddgr/pkg-descr
Normal file
11
www/ddgr/pkg-descr
Normal file
|
@ -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
|
Loading…
Reference in a new issue