mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
sys-apps/bat-extras: drop 2023.09.19-r2
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST bat-extras-2023.09.19.tar.gz 49416 BLAKE2B f67cee8793951921b92b802b57fb96e50ac8bf6db3ebdf852d56dbaf818a3fc3d3439481f5fa9cbe834334119b368bb90f1020cd708a5b1540de2c6007fae6d2 SHA512 021dd25c77476d2059ee80659a870db214da25cd2683ac7a15748f356dd416c257a98595188df9c76aea37233c5b67cef82d8d829f5ecc185ecad0dc47105ddd
|
||||
DIST bat-extras-2024.08.24.tar.gz 50671 BLAKE2B 7021ffb71246223ca7105f59f69ab4bce77228038809d359a3f43dfc749ca403fd4000fd4bc145e7044cbce81ad89a7484020352f03a0e7ecb3189b301a949e5 SHA512 476297600af9d00f15e75c91ce88f829af298677e03cc9c07ccc387047d68903076e1d0a357523bfeaedfaed5bcd64abbb1c19591bb11f3e34bae1476d3de0ec
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit optfeature
|
||||
|
||||
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"
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://github.com/eth-p/bat-extras/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
# Requires test dir to be a git repo
|
||||
RESTRICT="test"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="
|
||||
app-shells/bash
|
||||
sys-apps/bat
|
||||
dev-util/sh
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
app-admin/entr
|
||||
app-shells/fzf
|
||||
dev-python/black
|
||||
dev-util/git-delta
|
||||
dev-vcs/git
|
||||
sys-apps/eza
|
||||
sys-apps/ripgrep
|
||||
llvm-core/clang[extra(+)]
|
||||
sys-libs/ncurses
|
||||
"
|
||||
|
||||
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() {
|
||||
./build.sh --compress --minify=all --manuals --no-verify || die "build failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
./test.sh || die "test failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/*
|
||||
doman man/*
|
||||
}
|
||||
|
||||
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 package."
|
||||
|
||||
optfeature "Rust code formatting" dev-lang/rust[rustfmt] dev-lang/rust-bin[rustfmt]
|
||||
}
|
||||
Reference in New Issue
Block a user