add ddgr-1.5:wq

This commit is contained in:
layman 2018-11-11 20:22:16 -08:00
parent 9d49d94bb6
commit cbce0814e1
2 changed files with 44 additions and 0 deletions

View File

@ -1,5 +1,7 @@
DIST ddgr-1.2.tar.gz 39115 BLAKE2B 19dee4075d7b681fe448b510bb0355cf8a29f78b8c2b2a2d2f21d210c31c1e98832432dee6b97366df7f40b6cab75b5b9e95a9965e782a51a1be4ba04fe44b98 SHA512 7e760f8e523f7ce2b5932756480440f5fb09419da832ef33141e7619a2216c470116e48dcfb33286c44d5c2ca0773b4030834d1d4946aaf9b9e48a67cd17d77f
DIST ddgr-1.4.tar.gz 40983 BLAKE2B 68b2e529765480d34a8d1a097b87e02253c832c7199ac1abe2fd7f2f9fdfd8b25dae621ebd3df76f68e044855b5b2d0226cb6c74ba32394140458bf9a6cb9e76 SHA512 ef51a1a8634cc2417cf036cea1748fcfe0572861e3e0ea9625f7ce4b47c3d0e966a670e26912ab5aee2946d29fa8d4ac5e5bd7249719845f9107dcf02de710ed
DIST ddgr-1.5.tar.gz 41411 BLAKE2B 19e901fcd638a6e1078ea472498a7c3cc5162e7a67734753991422a13a1462abe5dd0f0d0ada7b02c3c4456ff85f5d24d102790904add0cc2b80153604248091 SHA512 fd601dc00459fa86433e0029d6751eb7fda4b1681a1a47ec02fe42ea708db6c0e94941f76f67ac25e80d42199db534229fd2d8a2ddb67adbc04a918587e156e6
EBUILD ddgr-1.2-r1.ebuild 1396 BLAKE2B 398a6ad6acc1f08d7b77fa888c3d463ac982e4464aef5620e8cdef562fd1f1b70b1ec84f73952e44585be137953ded8282543d87b7d9ef24d084da32e39461ca SHA512 5a4d80a54bfb69ca22ab70a7f1c69f37bf54c5a0f49b39dceca7ddfbf450722c682c09b8cbbaef5ab13672814b0d19de256162d2b90f72a083b5df4ab37cacb3
EBUILD ddgr-1.4-r1.ebuild 1401 BLAKE2B a46d8496668d2449f69cc0bc1fea52e82d192596bcbd3982ecc81ea42367e9b858a34fbd8585221db1f30aa24cc7add4f1466d667cf91a929b498e1a7eb91076 SHA512 d613994528123da7a8c85026d0df4086cddf78467cc31ea6f53115663f7319297db9dc705cda9b695e42478298fbef54a69537b58cb1a55dc4cb1ed7398c0b07
EBUILD ddgr-1.5.ebuild 1401 BLAKE2B a46d8496668d2449f69cc0bc1fea52e82d192596bcbd3982ecc81ea42367e9b858a34fbd8585221db1f30aa24cc7add4f1466d667cf91a929b498e1a7eb91076 SHA512 d613994528123da7a8c85026d0df4086cddf78467cc31ea6f53115663f7319297db9dc705cda9b695e42478298fbef54a69537b58cb1a55dc4cb1ed7398c0b07
MISC metadata.xml 222 BLAKE2B f0ecd2d956de9c731b8a6b6860f8756cb8dba0591f73463ce32d2747a1aa21296886faea89feee2b208286bbcdfe8e2e0a64263a92e954615fa94e2852d933d5 SHA512 dad470f0096a4fb3af9eeb60dab3216ece032790f6c49a3b014799ee0c02dee96a67317a672344e32f5614c5e05419727cc99113c6ecc37ae594931dd6441eef

View File

@ -0,0 +1,42 @@
# 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 ~arm"
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}"
}