mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
2 files changed
+67
No files matched your search
@@ -4,3 +4,5 @@ DIST ouch-0.8.0-crates.tar.xz 20856528 BLAKE2B d2faab0ff20db6daf83494c583aa89380
|
||||
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
|
||||
DIST ouch-0.8.2-crates.tar.xz 18826456 BLAKE2B d55ea3747d51729377685d91c4bedbe0fa5987cadb6a76af51f27e285572fa115f1aafdd6d395e011c135a2232bfd9eba94509a31317a389b2705a9bbe7a0feb SHA512 cad0dbaba7a61bceeb24a12fd6d41e0a5f9369c6755a25eaf9da930eb729b1867eb89bc2b2b67cb2d10a5b7ad24cf6299412086d4ad55154494f864913af7496
|
||||
DIST ouch-0.8.2.tar.gz 113833 BLAKE2B 281e2a8045f8ed6e0ac592ad8120cff2a39d3da317efe980d778b5b93d87fe4b1f4ddbc5529d2c3dac2e85e06f6604f5a6cbcad9d44e236e095d7f693670496b SHA512 c6b9982bdc7d200ffb1194b2dce9a0d3cdc22867e1c3a40045f133d59ea06dc8d27ca191d0e5730e14f65397b0e490d7cdcaeecdb35f42ef44580822d36c2b60
|
||||
@@ -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.7/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"
|
||||
}
|
||||
Reference in new issue
Block a user