From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F329E158020 for ; Tue, 1 Nov 2022 02:55:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 74457E0A6D; Tue, 1 Nov 2022 02:55:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 241FEE0A6A for ; Tue, 1 Nov 2022 02:55:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ED7F5340DBE for ; Tue, 1 Nov 2022 02:55:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 85E706FE for ; Tue, 1 Nov 2022 02:55:07 +0000 (UTC) From: "Ronny Gutbrod" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ronny Gutbrod" Message-ID: <1667122526.9bd2388895a6910f732a2c1149601d5fea0abfb9.tastytea@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-misc/cheat/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-misc/cheat/Manifest app-misc/cheat/cheat-4.3.3.ebuild X-VCS-Directories: app-misc/cheat/ X-VCS-Committer: tastytea X-VCS-Committer-Name: Ronny Gutbrod X-VCS-Revision: 9bd2388895a6910f732a2c1149601d5fea0abfb9 X-VCS-Branch: master Date: Tue, 1 Nov 2022 02:55:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dd2dfa0e-dc73-49c7-928c-4efa7e64b8b8 X-Archives-Hash: fac5c497321f656ff6ea23e3002be753 commit: 9bd2388895a6910f732a2c1149601d5fea0abfb9 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Sun Oct 30 09:06:02 2022 +0000 Commit: Ronny Gutbrod tastytea de> CommitDate: Sun Oct 30 09:35:26 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9bd23888 app-misc/cheat: add 4.3.3 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> app-misc/cheat/Manifest | 1 + app-misc/cheat/cheat-4.3.3.ebuild | 51 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/app-misc/cheat/Manifest b/app-misc/cheat/Manifest index d42831bad..eceafc3a3 100644 --- a/app-misc/cheat/Manifest +++ b/app-misc/cheat/Manifest @@ -1 +1,2 @@ DIST cheat-4.2.3.tar.gz 1615016 BLAKE2B c33ec7bd083580d6a8bee955e85dd8cc7b3a0bafe4dec52928862192aaa67832b4972e05ea97328fd7cbfe35c41fd904832a5473aecfa096e4845e488896bb6f SHA512 c523b3bd815d8db397c9ffa28d66c0ef7fd3c9392bd144ab0710dfd3472a47544cb2b8745b0d700099ea844c15e526f89d71ec6b233bf1d371c48cb86b100467 +DIST cheat-4.3.3.tar.gz 2777293 BLAKE2B da29c5d08bf5b4fbcce5e70f3d9f483801e4fac7c397a2be499e2dc3d09b9ad6889f753628fe2631d410a1a3c7cd64029f01112eebed6bb562c155bc11d6614d SHA512 e88de31d4473be440ab025521acdb1313bf16fa4dc984d694ddc4cd776b0ced8f3ff9094881e598152f4cb246586de096cb136639bb2509ff94b4459b315c7be diff --git a/app-misc/cheat/cheat-4.3.3.ebuild b/app-misc/cheat/cheat-4.3.3.ebuild new file mode 100644 index 000000000..d45719a63 --- /dev/null +++ b/app-misc/cheat/cheat-4.3.3.ebuild @@ -0,0 +1,51 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 go-module optfeature + +DESCRIPTION="cheat allows you to create and view interactive cheatsheets on the command-line" +HOMEPAGE="https://github.com/cheat/cheat" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +# licenses present in the final built +# software. Checked with dev-go/golicense +LICENSE="MIT Apache-2.0 BSD BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="man zsh-completion" + +RDEPEND="zsh-completion? ( !app-shells/zsh-completions )" +BDEPEND="man? ( app-text/pandoc )" + +src_compile() { + ego build -o ${PN} ./cmd/${PN} + + if use man; then + pandoc -s -t man doc/${PN}.1.md -o doc/${PN}.1 || die "building manpage failed" + fi +} + +src_test() { + ego test ./cmd/${PN} +} + +src_install() { + dobin ${PN} + + use man && doman doc/${PN}.1 + + newbashcomp scripts/${PN}.bash ${PN} + insinto /usr/share/fish/vendor_completions.d + doins scripts/${PN}.fish + + if use zsh-completion; then + insinto /usr/share/zsh/site-functions + newins scripts/${PN}.zsh _cheat + fi +} + +pkg_postinst() { + optfeature "fzf integration" app-shells/fzf +}