net-misc/ddgr: add 2.2

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2024-04-25 00:39:19 +03:00
parent 18178cddc3
commit f0daa8a880
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
2 changed files with 42 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST ddgr-2.1.gh.tar.gz 44726 BLAKE2B 534a08a9586feefc4629bfdba0a7a7b5aab5f4da28f13dc1be3c0ec824cece2350d179ca687a7d61534912603480d48142a2aea90bea70b455cbaf9975292cc6 SHA512 8ee2ce4bb5661d7324fe733023f4442a034cc6e247b4ed546ebb188c3218c3aff118b72d697e468d0fbad851497223dafdcd5c24a416e87ab66007ab4be5192d
DIST ddgr-2.2.gh.tar.gz 44731 BLAKE2B d44ad9827d7ae16fb339553c523f3e74a9b228080e931cc91eb1b93480c063d0b78f5e9e53d8c0c320c1b1c42da8e05fbb5d7d2996cb0f7938f21e9cc9e215aa SHA512 a61860fe0866b76f89b263bd9d3b3a2b3be52ed6af4885ec9dd076ae192fcdf9e412d9516cb9c3405792ee3d98745b70e059fd41cfb61d835241153d4b63db0e

View File

@ -0,0 +1,41 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_SINGLE_IMPL=1
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 bash-completion-r1
DESCRIPTION="DuckDuckGo from the terminal"
HOMEPAGE="
https://github.com/jarun/ddgr
https://pypi.org/project/ddgr/
"
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/jarun/ddgr"
else
SRC_URI="https://github.com/jarun/ddgr/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
SLOT="0"
src_install() {
distutils-r1_src_install
dodoc CHANGELOG README.md
doman ddgr.1
newbashcomp auto-completion/bash/${PN}-completion.bash ${PN}
insinto /usr/share/fish/vendor_completions.d/
doins auto-completion/fish/${PN}.fish
insinto /usr/share/zsh/site-functions
doins auto-completion/zsh/_${PN}
}