mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
*/*: update for slotted Rust
guru version of this commit: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01ba4dc61965ef7658a24728841c04c9a1ce4871 Closes: https://bugs.gentoo.org/943170 Closes: https://bugs.gentoo.org/943223 Closes: #260 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# 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
|
||||
@@ -34,7 +36,6 @@ RDEPEND="
|
||||
sys-apps/ripgrep
|
||||
sys-devel/clang[extra(+)]
|
||||
sys-libs/ncurses
|
||||
virtual/rust[rustfmt(+)]
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
@@ -70,4 +71,6 @@ pkg_postinst() {
|
||||
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]
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
# Copyright 2023 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}
|
||||
app-admin/entr
|
||||
app-shells/fzf
|
||||
dev-python/black
|
||||
dev-util/git-delta
|
||||
dev-vcs/git
|
||||
sys-apps/eza
|
||||
sys-apps/ripgrep
|
||||
sys-devel/clang
|
||||
sys-libs/ncurses
|
||||
virtual/rust[rustfmt(+)]
|
||||
"
|
||||
|
||||
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."
|
||||
}
|
||||
@@ -1,8 +1,10 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# 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
|
||||
@@ -34,7 +36,6 @@ RDEPEND="
|
||||
sys-apps/ripgrep
|
||||
sys-devel/clang[extra(+)]
|
||||
sys-libs/ncurses
|
||||
virtual/rust[rustfmt(+)]
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
@@ -70,4 +71,6 @@ pkg_postinst() {
|
||||
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]
|
||||
}
|
||||
|
||||
@@ -88,7 +88,6 @@ IUSE="man"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
BDEPEND="
|
||||
>=virtual/rust-1.66
|
||||
man? ( virtual/pandoc )
|
||||
"
|
||||
|
||||
@@ -330,7 +330,6 @@ DEPEND="
|
||||
media-libs/libglvnd
|
||||
media-libs/mesa
|
||||
sys-apps/dbus
|
||||
virtual/rust
|
||||
virtual/udev
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
@@ -362,6 +361,11 @@ QA_FLAGS_IGNORED="
|
||||
usr/bin/missioncenter-gatherer
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.bz2
|
||||
unpack nvtop-${NVTOP_COMMIT}.tar.gz
|
||||
@@ -272,7 +272,6 @@ DEPEND="
|
||||
media-libs/libglvnd
|
||||
media-libs/mesa
|
||||
sys-apps/dbus
|
||||
virtual/rust
|
||||
virtual/udev
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
@@ -305,6 +304,11 @@ QA_FLAGS_IGNORED="
|
||||
usr/bin/missioncenter-gatherer
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.bz2
|
||||
unpack nvtop-${NVTOP_COMMIT}.tar.gz
|
||||
Reference in New Issue
Block a user