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