app-arch/ouch: add 0.8.1

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2026-07-04 21:20:00 +02:00
parent b3e67d3fd4
commit 5998ac9a58
2 changed files with 67 additions and 0 deletions

View File

@@ -4,3 +4,5 @@ DIST ouch-0.7.1-crates.tar.xz 21122552 BLAKE2B 6dd650ce6a5c3cc2120cffec39682e129
DIST ouch-0.7.1.tar.gz 87793 BLAKE2B b03301edc1dd90d93548d132f557ba01f03cc6345d3d2838503c7bf8d16707b42b49e7eaae544c74831fce373e97d3a2127283e1ad22c3f36d952811af3e8eb7 SHA512 cbfe929ac6eb71edbaf50e38f82852ac4c21f20052409ac0ae73f759639eeff6968e5a97c288bac40c8a6274dc91b80e22f7ff80a559c80502bef22a208cfb28
DIST ouch-0.8.0-crates.tar.xz 20856528 BLAKE2B d2faab0ff20db6daf83494c583aa89380ff730ca66ac49a6dda1dd7ac7b8e0fc73dc8f1f83c260e24cd26e335ca9dc76cef0741f2da1d23f0f4b5e0ea46b3d8d SHA512 40bf8c0da9cf1d60b0f16ca290f0d8e65aa01bf8ce5b83b8cce8843d7424dbc8db61ae5584d9140bdd7e116957f92b0b7b4002a621f76799fe6cad65ea34d0ed
DIST ouch-0.8.0.tar.gz 98541 BLAKE2B d03061767227f052d359139291c25b8771eb756e7aef3f1c3d3bc9a1a08d73006f3e887ac2ea5a33b40015e411e7dd3ff0ea7a5b8d40ff4fb75cc8573cc8d67d SHA512 42b99cb78d2ccc6a6e8cd2342ad3121a354e767430e3793583038bb3b38a425d65fc10bf5cbb500c26fcb1d3b2ade92a023cbf393525a86ec183ea02e40d463f
DIST ouch-0.8.1-crates.tar.xz 19380616 BLAKE2B 901077bd695bcec98ae0e23d4297fbd535c7aefa6009c540921e7a0f33f25ed12c6c2db05288b92344b5ef4834037da62919ae488a9f3604433e1aa521f1a830 SHA512 4c9365802e3ab7371739b739195f3b9bb52bb5b79fdf0c5423a45f7915ad81616117ee236a0449681f22b65f59dc72ddc99aadd657a7824d10c864edec52c745
DIST ouch-0.8.1.tar.gz 102381 BLAKE2B 2bcdcd1341956ee9a910a9ccc80d3591006c7447da653649f2ce8c4dc0390a7250ea502f5df0354e7a3bed176325ab46e040db2d0c499b16005729abb088b184 SHA512 22fe332c75eeea00063614f3e63d8456a61471bcd6fc65163d5dc5ec7a7570908927027e88ca3e8fcafdad812215fe4d079f90710a462d785a568a7e31d6641e

View File

@@ -0,0 +1,65 @@
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=""
LLVM_COMPAT=( {17..22} )
RUST_NEEDS_LLVM=1
inherit llvm-r1 cargo shell-completion
DESCRIPTION="A cli utility for easily compressing and decompressing files and directories."
HOMEPAGE="https://github.com/ouch-org/ouch"
SRC_URI="https://github.com/ouch-org/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
DEPS_URI="https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz"
SRC_URI+=" ${DEPS_URI}"
LICENSE="MIT"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD MIT Unicode-DFS-2016 ZLIB"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
app-arch/bzip2
app-arch/bzip3
app-arch/xz-utils
virtual/zlib:=
"
RDEPEND="${DEPEND}"
BDEPEND="
$(llvm_gen_dep 'llvm-core/clang:${LLVM_SLOT}=')
"
QA_FLAGS_IGNORED="usr/bin/${PN}"
QA_PRESTRIPPED="usr/bin/${PN}"
src_prepare() {
default
# unrar-ng-sys unconditionally adds -stdlib=libc++ which breaks on Linux
# where libstdc++ is the default C++ standard library. Remove it.
local build_rs="${ECARGO_VENDOR}/unrar-ng-sys-0.7.6/build.rs"
if [[ -f "${build_rs}" ]]; then
sed -i 's/-stdlib=libc++//g' "${build_rs}" || die "Failed to patch unrar-ng-sys build.rs"
else
ewarn "Could not find unrar-ng-sys build.rs to patch"
fi
}
src_compile() {
local -x OUCH_ARTIFACTS_FOLDER=artifacts
cargo_src_compile
}
src_install() {
cargo_src_install
doman artifacts/*.1
newbashcomp "artifacts/${PN}.bash" "${PN}"
dozshcomp "artifacts/_${PN}"
dofishcomp "artifacts/${PN}.fish"
}