From 22c63efa4a782bcdc8c7d6d0a0e74b1c311790a7 Mon Sep 17 00:00:00 2001 From: XGQT Date: Thu, 9 Apr 2020 02:28:15 +0200 Subject: [PATCH] net-misc/ddgr: bump to 1.8 Package-Manager: Portage-2.3.89, Repoman-2.3.20 --- net-misc/ddgr/Manifest | 1 + net-misc/ddgr/ddgr-1.8.ebuild | 55 +++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 net-misc/ddgr/ddgr-1.8.ebuild diff --git a/net-misc/ddgr/Manifest b/net-misc/ddgr/Manifest index 8432c6a..4a549cf 100644 --- a/net-misc/ddgr/Manifest +++ b/net-misc/ddgr/Manifest @@ -1 +1,2 @@ DIST ddgr-1.7.tar.gz 43838 BLAKE2B 5cbddd561b80a1e87e950c83e8ee50a9cc94c0426ed088df40a93054ce1ddd14883c633bb4d568af0f88a050784f0ea7814d9ae959278a075bfd4f7ab0aacf0e SHA512 9b07d045baeee6bbaa0a8213d90860f432687f9a0fbc5e424d9df3422897eb12c2c4d1ac210daa41cbb5fd5113148f01e20f276822157d42058872ab4fc70dae +DIST ddgr-1.8.tar.gz 43632 BLAKE2B d87710ed2ea812f61e714462f490c57871c777cbabffb0979774e369fc6d2c3ba88fd3bff0ccab560ff6a1e01defb97b5c3f6f982351da7f5edb19b060e72bd6 SHA512 9b806226e8590d6f9c59d65892db52d0c7431ed210c641183aeed16092f9e553fc5026cfbe4012dad5298ededffdea8a3204bae27031c1b2092e04eb33b1d923 diff --git a/net-misc/ddgr/ddgr-1.8.ebuild b/net-misc/ddgr/ddgr-1.8.ebuild new file mode 100644 index 0000000..4b87a74 --- /dev/null +++ b/net-misc/ddgr/ddgr-1.8.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit bash-completion-r1 python-r1 + +DESCRIPTION="DuckDuckGo from the terminal" +HOMEPAGE="https://github.com/jarun/ddgr" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/jarun/${PN}.git" + KEYWORDS="" +else + SRC_URI="https://github.com/jarun/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +RESTRICT="mirror" +LICENSE="GPL-3" +SLOT="0" +IUSE="bash-completion fish-completion zsh-completion" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} +" +RDEPEND=" + ${DEPEND} +" + +src_install() { + exeinto "/usr/bin" + doexe "${PN}" + doman "${PN}.1" + dodoc CHANGELOG README.md + if use bash-completion + then + newbashcomp auto-completion/bash/${PN}-completion.bash ${PN} + fi + if use fish-completion + then + insinto /usr/share/fish/vendor_completions.d/ + doins auto-completion/fish/${PN}.fish + fi + if use zsh-completion + then + insinto /usr/share/zsh/site-functions + doins auto-completion/zsh/_${PN} + fi + +}