add ebuild for www-client/ddgr/ddgr-1.2.ebuild

This commit is contained in:
Trent Palmer 2018-02-22 07:13:09 -08:00
parent 8b7b784493
commit b42367b5a4
2 changed files with 45 additions and 0 deletions

2
www-client/ddgr/Manifest Normal file
View File

@ -0,0 +1,2 @@
DIST ddgr-1.2.tar.gz 39115 SHA256 a9828b8863949dc93dd574a15b6779d9390b6f5e277e35c157064d7c06423758 SHA512 7e760f8e523f7ce2b5932756480440f5fb09419da832ef33141e7619a2216c470116e48dcfb33286c44d5c2ca0773b4030834d1d4946aaf9b9e48a67cd17d77f WHIRLPOOL 58b02a8d5a2c26181934800716fb11736238de3f9f5732a71944e2cc90f3a48d446e21de233f469a6aaa85660d1d18b560c1247ace3e4c52ad795587b4bc6d1c
EBUILD ddgr-1.2.ebuild 1387 SHA256 b81dfe6c9ed04d1b3bf20a4f662d477aeee50be5221b6b30aaaa9845151ac5fc SHA512 85a3e007cdbdf581981c5950a4ba3c70dd88c2e9b777f3dbdbd90460ea88f1638e0f4c8f5af89742f1611dcad69e64505bb5158a1d30d30aade676c1912fe387 WHIRLPOOL 736c06b3949022ef99769a7e28e19bb3d7be64cc6d33f25f77f0f700fff62e4139c78046ee03cc1f3853354fdc6cfd959fcbdbbbde91da07edd0af1ae9c1ed6b

View File

@ -0,0 +1,43 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit readme.gentoo-r1
DESCRIPTION="DuckDuckGo from the terminal"
HOMEPAGE="https://github.com/jarun/ddgr"
SRC_URI="https://github.com/jarun/ddgr/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE=GPL-3
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+doc"
DEPEND=""
# RDEPEND="${DEPEND}"
RDEPEND="dev-lang/python"
DISABLE_AUTOFORMATTING="true"
DOC_CONTENTS=" ********************************
All configuration is from the environment, so i.e.
\`export BROWSER=w3m\` or \`export BROWSER=firefox\`
in your bashrc or whatever, and also \`ddgr -h\`
as well as \`man ddgr\` do what you expect
man page requires USE="doc"
*************************************************"
src_install() {
install -Dm755 ${S}/ddgr "${D}/usr/bin/ddgr"
use doc && install -Dm644 ${S}/ddgr.1 "${D}/usr/share/man/man1/ddgr.1"
install -Dm644 ${S}/auto-completion/fish/ddgr.fish "${D}/usr/share/fish/vendor_completions.d/ddgr.fish"
install -Dm644 ${S}/auto-completion/bash/ddgr-completion.bash "${D}/usr/share/bash-completion/completions/ddgr"
install -Dm644 ${S}/auto-completion/zsh/_ddgr "${D}/usr/share/zsh/site-functions/_ddgr"
use doc && readme.gentoo_create_doc
use doc && dodoc CHANGELOG LICENSE README.md
}
pkg_postinst() {
use doc && readme.gentoo_print_elog
elog "${DOC_CONTENTS}"
}