Files
guru/app-misc/pastel/pastel-9999.ebuild
ingenarel 6c65de4de5 app-misc/pastel: remove leading whitespaces
fixes the following pkgcheck warnings:

app-misc/pastel
  WhitespaceFound: version 9999: ebuild has leading whitespace on lines: 17, 19

Signed-off-by: ingenarel <ingenarelitems@gmail.com>
2025-10-21 11:06:33 +06:00

45 lines
965 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cargo shell-completion
DESCRIPTION="A command-line tool to generate, analyze, convert and manipulate colors"
HOMEPAGE="https://github.com/sharkdp/pastel"
LICENSE="Apache-2.0 MIT"
# Dependent crate licenses
LICENSE+=" Apache-2.0 MIT Unicode-DFS-2016"
SLOT="0"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/sharkdp/${PN}.git"
else
SRC_URI="
https://github.com/sharkdp/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
KEYWORDS="~amd64"
fi
src_unpack() {
if [[ "${PV}" == *9999* ]]; then
git-r3_src_unpack
cargo_live_src_unpack
else
cargo_src_unpack
fi
}
src_install() {
cargo_src_install
RESOURCES=$(dirname "$(find -type f -name "_pastel")")
doman $RESOURCES/*.1
dobashcomp $RESOURCES/pastel.bash
dofishcomp $RESOURCES/pastel.fish
dozshcomp $RESOURCES/_pastel
}