net-misc/ddgr: add version 1.7 and live 9999
Package-Manager: Portage-2.3.84, Repoman-2.3.20
This commit is contained in:
parent
947d49bc79
commit
74223c8269
1
net-misc/ddgr/Manifest
Normal file
1
net-misc/ddgr/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST v1.7.tar.gz 43838 BLAKE2B 5cbddd561b80a1e87e950c83e8ee50a9cc94c0426ed088df40a93054ce1ddd14883c633bb4d568af0f88a050784f0ea7814d9ae959278a075bfd4f7ab0aacf0e SHA512 9b07d045baeee6bbaa0a8213d90860f432687f9a0fbc5e424d9df3422897eb12c2c4d1ac210daa41cbb5fd5113148f01e20f276822157d42058872ab4fc70dae
|
55
net-misc/ddgr/ddgr-1.7.ebuild
Normal file
55
net-misc/ddgr/ddgr-1.7.ebuild
Normal file
@ -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="${HOMEPAGE}.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="${HOMEPAGE}/archive/v${PV}.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
|
||||
|
||||
}
|
55
net-misc/ddgr/ddgr-9999.ebuild
Normal file
55
net-misc/ddgr/ddgr-9999.ebuild
Normal file
@ -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="${HOMEPAGE}.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="${HOMEPAGE}/archive/v${PV}.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
|
||||
|
||||
}
|
10
net-misc/ddgr/metadata.xml
Normal file
10
net-misc/ddgr/metadata.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<use>
|
||||
<flag name="fish-completion">Enable fish completion support</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">jarun/ddgr</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user