Install this version:
emerge -a =app-misc/pastel-0.12.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-misc/pastel-0.12.0
Or alternatively:
emerge --autounmask-write -a =app-misc/pastel-0.12.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.12.0 | 8 | ~amd64 | 0 |
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=" "
RUST_MIN_VER="1.83.0"
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-3.0"
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
https://codeberg.org/ceres-sees-all/guru-distfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz
"
ECARGO_VENDOR="${WORKDIR}/vendor"
KEYWORDS="~amd64"
fi
QA_FLAGS_IGNORED="/usr/bin/${PN}"
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
newbashcomp "${RESOURCES}/pastel.bash" "${PN}"
newfishcomp "${RESOURCES}/pastel.fish" "${PN}"
newzshcomp "${RESOURCES}/_pastel" "${PN}"
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | pastel-0.12.0-deps.tar.xz | 17741508 bytes | https://codeberg.org/ceres-sees-all/guru-distfiles/releases/download/pastel-0.12.0-deps.tar.xz/pastel-0.12.0-deps.tar.xz |
| DIST | pastel-0.12.0.tar.gz | 3236371 bytes | https://github.com/sharkdp/pastel/archive/refs/tags/v0.12.0.tar.gz |