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 DCB93158094 for ; Sat, 30 Jul 2022 22:55:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E76E6E0DA5; Sat, 30 Jul 2022 22:55:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BBFE7E0DA5 for ; Sat, 30 Jul 2022 22:55:01 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9185B340F9F for ; Sat, 30 Jul 2022 22:55:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DAF45543 for ; Sat, 30 Jul 2022 22:54:58 +0000 (UTC) From: "Randall Vasquez" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Randall Vasquez" Message-ID: <1659221595.996f3f5b52bb35bbff7b3be4f9cd2b9627646043.ran.dall@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-apps/bat-extras/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-apps/bat-extras/Manifest sys-apps/bat-extras/bat-extras-2022.07.27.ebuild sys-apps/bat-extras/bat-extras-9999.ebuild sys-apps/bat-extras/metadata.xml X-VCS-Directories: sys-apps/bat-extras/ X-VCS-Committer: ran.dall X-VCS-Committer-Name: Randall Vasquez X-VCS-Revision: 996f3f5b52bb35bbff7b3be4f9cd2b9627646043 X-VCS-Branch: dev Date: Sat, 30 Jul 2022 22:54:58 +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: 997ce284-70cd-481d-91c5-cef377c9d8a7 X-Archives-Hash: 913b9da1e152a3066d1c67ff70e4523d commit: 996f3f5b52bb35bbff7b3be4f9cd2b9627646043 Author: Randall T. Vasquez icloud com> AuthorDate: Sat Jul 30 22:42:30 2022 +0000 Commit: Randall Vasquez icloud com> CommitDate: Sat Jul 30 22:53:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=996f3f5b sys-apps/bat-extras: add ebuilds Signed-off-by: Randall T. Vasquez icloud.com> sys-apps/bat-extras/Manifest | 1 + sys-apps/bat-extras/bat-extras-2022.07.27.ebuild | 82 ++++++++++++++++++++++++ sys-apps/bat-extras/bat-extras-9999.ebuild | 82 ++++++++++++++++++++++++ sys-apps/bat-extras/metadata.xml | 14 ++++ 4 files changed, 179 insertions(+) diff --git a/sys-apps/bat-extras/Manifest b/sys-apps/bat-extras/Manifest new file mode 100644 index 000000000..27c2a072c --- /dev/null +++ b/sys-apps/bat-extras/Manifest @@ -0,0 +1 @@ +DIST bat-extras-2022.07.27.tar.gz 41647 BLAKE2B aa481520c49675c249b47b9b6a1f06c24928ccf6eb96a0b1b17d87364f43063d718cea61a8edaebca097a27c239e528bf8c10f93b7d09d92b374cbf720fc6481 SHA512 352edf8f5879239894a8defbac466e908f6235bf4a9c7a64622418f2bdbae9b364343fca54769f792025d2a87aeca52a356ee36c5733eee7fd641d8d5c8d995b diff --git a/sys-apps/bat-extras/bat-extras-2022.07.27.ebuild b/sys-apps/bat-extras/bat-extras-2022.07.27.ebuild new file mode 100644 index 000000000..682f571b7 --- /dev/null +++ b/sys-apps/bat-extras/bat-extras-2022.07.27.ebuild @@ -0,0 +1,82 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Bash scripts that integrate bat with various command line tools." +HOMEPAGE="https://github.com/eth-p/bat-extras" +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/eth-p/bat-extras.git" + RESTRICT="mirror fetch" +else + SRC_URI="https://github.com/eth-p/bat-extras/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + RESTRICT="mirror test" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="+man" + +DEPEND=" + app-shells/bash + sys-apps/bat + dev-util/sh +" +RDEPEND=" + ${DEPEND} + dev-vcs/git + sys-apps/ripgrep + app-admin/entr + dev-util/git-delta + sys-devel/clang + sys-apps/exa + app-shells/fzf + sys-libs/ncurses + dev-python/black + virtual/rust[rustfmt(+)] +" + +S="${WORKDIR}/${P}" + +src_unpack() { + default + if [[ ${PV} == *9999 ]]; then + git-r3_checkout + fi +} + +src_prepare() { + # remove license + rm LICENSE.md || die + # remove contribution document + rm CONTRIBUTING.md || die + default +} + +src_compile() { + if use man; then + ./build.sh --compress --minify=all --manuals --no-verify || die "build failed" + else + ./build.sh --compress --minify=all --no-verify || die "build failed" + fi +} + +src_test() { + ./test.sh || die "test failed" +} + +src_install() { + dobin bin/* + if use man; then + doman man/* + fi +} + +pkg_postinst() { + einfo "To enable additional code formatting for 'prettybat' script, ensure" + einfo "'net-libs/nodejs' is installed in your system, and use 'npm' to install" + einfo "'prettier' (npm i -g prettier). Once 'prettier' is properly installed in" + einfo "your system, remerge this pacakge." +} diff --git a/sys-apps/bat-extras/bat-extras-9999.ebuild b/sys-apps/bat-extras/bat-extras-9999.ebuild new file mode 100644 index 000000000..682f571b7 --- /dev/null +++ b/sys-apps/bat-extras/bat-extras-9999.ebuild @@ -0,0 +1,82 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Bash scripts that integrate bat with various command line tools." +HOMEPAGE="https://github.com/eth-p/bat-extras" +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/eth-p/bat-extras.git" + RESTRICT="mirror fetch" +else + SRC_URI="https://github.com/eth-p/bat-extras/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + RESTRICT="mirror test" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="+man" + +DEPEND=" + app-shells/bash + sys-apps/bat + dev-util/sh +" +RDEPEND=" + ${DEPEND} + dev-vcs/git + sys-apps/ripgrep + app-admin/entr + dev-util/git-delta + sys-devel/clang + sys-apps/exa + app-shells/fzf + sys-libs/ncurses + dev-python/black + virtual/rust[rustfmt(+)] +" + +S="${WORKDIR}/${P}" + +src_unpack() { + default + if [[ ${PV} == *9999 ]]; then + git-r3_checkout + fi +} + +src_prepare() { + # remove license + rm LICENSE.md || die + # remove contribution document + rm CONTRIBUTING.md || die + default +} + +src_compile() { + if use man; then + ./build.sh --compress --minify=all --manuals --no-verify || die "build failed" + else + ./build.sh --compress --minify=all --no-verify || die "build failed" + fi +} + +src_test() { + ./test.sh || die "test failed" +} + +src_install() { + dobin bin/* + if use man; then + doman man/* + fi +} + +pkg_postinst() { + einfo "To enable additional code formatting for 'prettybat' script, ensure" + einfo "'net-libs/nodejs' is installed in your system, and use 'npm' to install" + einfo "'prettier' (npm i -g prettier). Once 'prettier' is properly installed in" + einfo "your system, remerge this pacakge." +} diff --git a/sys-apps/bat-extras/metadata.xml b/sys-apps/bat-extras/metadata.xml new file mode 100644 index 000000000..590860096 --- /dev/null +++ b/sys-apps/bat-extras/metadata.xml @@ -0,0 +1,14 @@ + + + + + ran.dall@icloud.com + Randall Vasquez + + + Bash scripts that integrate bat with various command line tools. + + + eth-p/bat-extras + +