net-misc/ddgr: add 2.1, drop unsupported python impl
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
d5d922279c
commit
174d60df81
@ -1,3 +1 @@
|
|||||||
DIST ddgr-1.7.tar.gz 43838 BLAKE2B 5cbddd561b80a1e87e950c83e8ee50a9cc94c0426ed088df40a93054ce1ddd14883c633bb4d568af0f88a050784f0ea7814d9ae959278a075bfd4f7ab0aacf0e SHA512 9b07d045baeee6bbaa0a8213d90860f432687f9a0fbc5e424d9df3422897eb12c2c4d1ac210daa41cbb5fd5113148f01e20f276822157d42058872ab4fc70dae
|
DIST ddgr-2.1.gh.tar.gz 44726 BLAKE2B 534a08a9586feefc4629bfdba0a7a7b5aab5f4da28f13dc1be3c0ec824cece2350d179ca687a7d61534912603480d48142a2aea90bea70b455cbaf9975292cc6 SHA512 8ee2ce4bb5661d7324fe733023f4442a034cc6e247b4ed546ebb188c3218c3aff118b72d697e468d0fbad851497223dafdcd5c24a416e87ab66007ab4be5192d
|
||||||
DIST ddgr-1.8.tar.gz 43632 BLAKE2B d87710ed2ea812f61e714462f490c57871c777cbabffb0979774e369fc6d2c3ba88fd3bff0ccab560ff6a1e01defb97b5c3f6f982351da7f5edb19b060e72bd6 SHA512 9b806226e8590d6f9c59d65892db52d0c7431ed210c641183aeed16092f9e553fc5026cfbe4012dad5298ededffdea8a3204bae27031c1b2092e04eb33b1d923
|
|
||||||
DIST ddgr-1.9.tar.gz 44181 BLAKE2B 5606a862199ec8bf9a0360f00e62d03e858a0574299abde218fb6a1761937b9e9974f8ea9902acab4fbec8e5089f8b7b4c207abc5ec28c252d705ae172d582e6 SHA512 25fb995d32cf19ed1d4493ec463f60db39f4728ffe052dabccb49b721e65250e444bb4cc54f5f41dd1d6365d4e8bd1139277c44a9bd1d39394dec998ccb93b7c
|
|
||||||
|
@ -1,54 +0,0 @@
|
|||||||
# Copyright 1999-2021 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"
|
|
||||||
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
|
|
||||||
|
|
||||||
}
|
|
@ -1,54 +0,0 @@
|
|||||||
# Copyright 1999-2021 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"
|
|
||||||
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
|
|
||||||
|
|
||||||
}
|
|
@ -1,54 +0,0 @@
|
|||||||
# Copyright 1999-2021 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"
|
|
||||||
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
|
|
||||||
|
|
||||||
}
|
|
41
net-misc/ddgr/ddgr-2.1.ebuild
Normal file
41
net-misc/ddgr/ddgr-2.1.ebuild
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# Copyright 1999-2023 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_{9..11} )
|
||||||
|
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}
|
||||||
|
}
|
@ -1,54 +1,41 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=8
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
DISTUTILS_SINGLE_IMPL=1
|
||||||
inherit bash-completion-r1 python-r1
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
inherit distutils-r1 bash-completion-r1
|
||||||
|
|
||||||
DESCRIPTION="DuckDuckGo from the terminal"
|
DESCRIPTION="DuckDuckGo from the terminal"
|
||||||
HOMEPAGE="https://github.com/jarun/ddgr"
|
HOMEPAGE="
|
||||||
|
https://github.com/jarun/ddgr
|
||||||
|
https://pypi.org/project/ddgr/
|
||||||
|
"
|
||||||
|
|
||||||
if [[ "${PV}" == *9999* ]]; then
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/jarun/${PN}.git"
|
EGIT_REPO_URI="https://github.com/jarun/ddgr"
|
||||||
else
|
else
|
||||||
SRC_URI="https://github.com/jarun/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/jarun/ddgr/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="bash-completion fish-completion zsh-completion"
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
"
|
|
||||||
RDEPEND="
|
|
||||||
${DEPEND}
|
|
||||||
"
|
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
exeinto "/usr/bin"
|
distutils-r1_src_install
|
||||||
doexe "${PN}"
|
|
||||||
doman "${PN}.1"
|
|
||||||
dodoc CHANGELOG README.md
|
dodoc CHANGELOG README.md
|
||||||
if use bash-completion
|
doman ddgr.1
|
||||||
then
|
|
||||||
newbashcomp auto-completion/bash/${PN}-completion.bash ${PN}
|
newbashcomp auto-completion/bash/${PN}-completion.bash ${PN}
|
||||||
fi
|
|
||||||
if use fish-completion
|
|
||||||
then
|
|
||||||
insinto /usr/share/fish/vendor_completions.d/
|
insinto /usr/share/fish/vendor_completions.d/
|
||||||
doins auto-completion/fish/${PN}.fish
|
doins auto-completion/fish/${PN}.fish
|
||||||
fi
|
|
||||||
if use zsh-completion
|
|
||||||
then
|
|
||||||
insinto /usr/share/zsh/site-functions
|
insinto /usr/share/zsh/site-functions
|
||||||
doins auto-completion/zsh/_${PN}
|
doins auto-completion/zsh/_${PN}
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<use>
|
|
||||||
<flag name="fish-completion">Enable fish completion support</flag>
|
|
||||||
</use>
|
|
||||||
<upstream>
|
<upstream>
|
||||||
<remote-id type="github">jarun/ddgr</remote-id>
|
<remote-id type="github">jarun/ddgr</remote-id>
|
||||||
</upstream>
|
</upstream>
|
||||||
|
Loading…
Reference in New Issue
Block a user