mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ddgr
|
|
PORTVERSION= 1.7
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= www
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= DuckDuckGo from the terminal
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}urllib3>=0:net/py-urllib3@${PY_FLAVOR}
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= jarun
|
|
|
|
USES= python:3.5+ shebangfix
|
|
SHEBANG_FILES= ${PORTNAME}
|
|
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>
|