mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
sys-apps/bat-extras: add ebuilds
Signed-off-by: Randall T. Vasquez <ran.dall@icloud.com>
This commit is contained in:
1
sys-apps/bat-extras/Manifest
Normal file
1
sys-apps/bat-extras/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST bat-extras-2022.07.27.tar.gz 41647 BLAKE2B aa481520c49675c249b47b9b6a1f06c24928ccf6eb96a0b1b17d87364f43063d718cea61a8edaebca097a27c239e528bf8c10f93b7d09d92b374cbf720fc6481 SHA512 352edf8f5879239894a8defbac466e908f6235bf4a9c7a64622418f2bdbae9b364343fca54769f792025d2a87aeca52a356ee36c5733eee7fd641d8d5c8d995b
|
||||
82
sys-apps/bat-extras/bat-extras-2022.07.27.ebuild
Normal file
82
sys-apps/bat-extras/bat-extras-2022.07.27.ebuild
Normal file
@@ -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."
|
||||
}
|
||||
82
sys-apps/bat-extras/bat-extras-9999.ebuild
Normal file
82
sys-apps/bat-extras/bat-extras-9999.ebuild
Normal file
@@ -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."
|
||||
}
|
||||
14
sys-apps/bat-extras/metadata.xml
Normal file
14
sys-apps/bat-extras/metadata.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>ran.dall@icloud.com</email>
|
||||
<name>Randall Vasquez</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Bash scripts that integrate bat with various command line tools.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">eth-p/bat-extras</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user