diff options
| author | Crucible <crucible@localhost> | 2026-10-14 03:05:04 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-14 03:05:04 -0500 |
| commit | f2908082da3eb11b2ab459032e0b91aaf4433ff2 (patch) | |
| tree | 828f763b839660180630c3dd8b7ce3d36403fe88 /dev-util | |
| parent | 08c02fb1d2b7ed86dd6ab8a3cd5d189ddceaae30 (diff) | |
| download | srcux-f2908082da3eb11b2ab459032e0b91aaf4433ff2.tar.gz srcux-f2908082da3eb11b2ab459032e0b91aaf4433ff2.tar.xz srcux-f2908082da3eb11b2ab459032e0b91aaf4433ff2.zip | |
Diffstat (limited to 'dev-util')
| -rw-r--r-- | dev-util/bpf-linker/Manifest | 2 | ||||
| -rw-r--r-- | dev-util/bpf-linker/bpf-linker-0.12.0.ebuild | 80 | ||||
| -rw-r--r-- | dev-util/gtest-parallel/gtest-parallel-20250716.ebuild | 2 | ||||
| -rw-r--r-- | dev-util/ruff/Manifest | 2 | ||||
| -rw-r--r-- | dev-util/ruff/ruff-0.17.0.ebuild | 113 |
5 files changed, 198 insertions, 1 deletions
diff --git a/dev-util/bpf-linker/Manifest b/dev-util/bpf-linker/Manifest index d4b726715658..15d66c6b7e87 100644 --- a/dev-util/bpf-linker/Manifest +++ b/dev-util/bpf-linker/Manifest @@ -6,6 +6,8 @@ DIST bpf-linker-0.11.0-crates.tar.xz 12138812 BLAKE2B e5e68da232e4674ed7dc263721 DIST bpf-linker-0.11.0.gh.tar.gz 160986 BLAKE2B 4b2aff1c893b3b33e2b6aab4fd47b955b1e74f3e0a173f4be7e19e3bcc03fa45916f537b95223dde57117998142b7eba21f2793d4833c2d9728254ca1e06e4be SHA512 6d2b13f9a9fb0997f3abddc5dbf6133b381076d0222fa1983039560b791535cb50e5520b92128e321ca3615f057ffd21dca56d3844ab6ec05775f70b9e5beb41 DIST bpf-linker-0.11.1-crates.tar.xz 12118532 BLAKE2B 1c2dbdb0481161a518f0a2e21b9e03aeac08841803814d136d3f510faa315758366f5079ab684b3428d4a658a4aa811dd8b9d8b67a51ca89baf95026b5db5215 SHA512 df0e6f68c348e75bf0423ebdb731ffb3d79fae3da3a8736bf897b67f2cd3fb310ea07978813825252da6bdb3fbf571e200666baa7ba087f4d9ce912e0ee3bb8e DIST bpf-linker-0.11.1.gh.tar.gz 186430 BLAKE2B c4b68c6e95fe9725a1ef19c6d584ae7340279f51c96c4e9b3da1815224f27adbe92930e0ab741c45261a38b30cc44f92b9ba8f3710bd1d61fca43052f6c268fa SHA512 ba18354735f6756cba32ad5edf41c5b603b4eae53b2f3faa54edf6732599a4242f0f23d5d9b4335dde305657236ffe09b4e4c23361b076bb4caca7c6fc8cb8eb +DIST bpf-linker-0.12.0-crates.tar.xz 12932016 BLAKE2B 8151c22e6b2f75550cbb2602d48ad828f3043828d82dddf4f3c865d507bf856c3534e8f1347b72c3c5dfbbb87d3ba99f0000271a511dc42f23d37457c7b838f9 SHA512 25b94b94acd509318a071c5e39d46fc3704733fc9aad0f0092d2e2a5c409235ed3a828e3c85cf0274770582460a583d5f22ffc17f070291eb12697658eb7f3d5 +DIST bpf-linker-0.12.0.gh.tar.gz 184158 BLAKE2B 424e38004a047eaa87f069c55263c3a7be215228ff9d6f5152bdd2e638c365cbc4ad48505421acbd5265eecc1df55611a5aaa99615b6c3d5f6f0f43db228b0f4 SHA512 c80ee6620f98c42eeae2ce3456e80e65339d2c03120e2c882112655290019f44a7b3dddafdb8a03fcebead6749bbb68eacc89febe445cdad9bd60b4d5149a2b0 DIST bpf-linker-0.9.15-crates.tar.xz 16330432 BLAKE2B b22ecf0efe6a0dbcd76d4468f3ba674851fd41a9a3a2f71cc4f6c2f1cfcbb69043c49ae28fce441cb3972f6a7bcaa7d1aa51f78b3acb3ca67add23573c81de70 SHA512 32c172cb84999cbf9eed73bc2988fd805cf6e028349884e0af006e828374ffef3a2d47033501115dfd32641927fd7f679132c3a57c8dc475d709fab91a05b625 DIST bpf-linker-0.9.15.gh.tar.gz 53754 BLAKE2B 91554e366b4981a28a74a154258970702d8a259ea8ca3ce48d510e8b87978d8dd438505aec1a53a1c7b4d7c3e48ae3a996b03271f7e10f2dcf328e80188e432a SHA512 8c55eb0d46ca4229a1d23333b38a3d9b6dc2e21e3d720a9f7b57e0a1435c895e3829ed370d2d25fec8d5bf41fd75543a6cb493d78f4bddc1d903c831e13b9784 DIST compiler_builtins-0.1.146.crate 212475 BLAKE2B 9036a9e643ad310932c7943ce5e41c53029f08e604e8ed0a6255d49cf98ecea832dd19ffd109c34a83873880f1c281dc5991bf3f34b9e04f6e9562d40926fd48 SHA512 51db04a4e2b7fbc8a7b7407d57a9c82884f9950f5937cf422d14d4c53bc6b942d90e443857cf0c363b0365202713ecbaea3977e9c1cf534c54b041a1f6efd409 diff --git a/dev-util/bpf-linker/bpf-linker-0.12.0.ebuild b/dev-util/bpf-linker/bpf-linker-0.12.0.ebuild new file mode 100644 index 000000000000..e5eb41dc535e --- /dev/null +++ b/dev-util/bpf-linker/bpf-linker-0.12.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 2025-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +RUST_MIN_VER=1.90.0 +CRATES=" +" + +declare -A GIT_CRATES=( + [compiletest_rs]='https://github.com/Manishearth/compiletest-rs;02b122626320f562914710bada39e637f051c7bb;compiletest-rs-%commit%' +) + +LLVM_COMPAT=( {21..23} ) +RUST_REQ_USE="llvm_targets_BPF(+),rust_sysroots_bpf(-)" +RUST_NEEDS_LLVM=1 + +inherit cargo llvm-r1 toolchain-funcs + +DESCRIPTION="Simple BPF static linker" +HOMEPAGE="https://github.com/aya-rs/bpf-linker/" +SRC_URI=" + https://github.com/aya-rs/bpf-linker/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz + https://github.com/gentoo-crate-dist/bpf-linker/releases/download/v${PV}/${P}-crates.tar.xz + ${CARGO_CRATE_URIS} +" + +LICENSE="|| ( MIT Apache-2.0 )" +# Dependent crate licenses +LICENSE+=" + ISC MIT Unicode-3.0 Unicode-DFS-2016 + || ( Apache-2.0 Boost-1.0 ) +" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + $(llvm_gen_dep ' + llvm-core/llvm:${LLVM_SLOT}=[llvm_targets_BPF] + ') +" +RDEPEND=" + ${DEPEND} + ${RUST_DEPEND} +" +BDEPEND=" + test? ( + dev-util/btfdump + ) +" + +QA_FLAGS_IGNORED=/usr/bin/bpf-linker + +pkg_setup() { + rust_pkg_setup +} + +src_prepare() { + default + + # replace upstream crate substitution with our crate substitution, sigh + local ct_dep=$(grep ^compiletest_rs "${ECARGO_HOME}"/config.toml || die) + sed -i -e "/compiletest_rs/s;^.*$;${ct_dep};" Cargo.toml || die +} + +src_configure() { + local myfeatures=( + "llvm-${LLVM_SLOT}" + ) + cargo_src_configure --no-default-features + + export "LLVM_PREFIX"="$(get_llvm_prefix -d)" + + if [[ $(tc-get-cxx-stdlib) == "libc++" ]]; then + export LLVM_SYS_LIBCPP=c++ + fi +} diff --git a/dev-util/gtest-parallel/gtest-parallel-20250716.ebuild b/dev-util/gtest-parallel/gtest-parallel-20250716.ebuild index a22da4a85534..cf8beffb5955 100644 --- a/dev-util/gtest-parallel/gtest-parallel-20250716.ebuild +++ b/dev-util/gtest-parallel/gtest-parallel-20250716.ebuild @@ -17,7 +17,7 @@ S="${WORKDIR}/${PN}-${MY_COMMIT}" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 ~arm arm64" +KEYWORDS="amd64 ~arm arm64 ~x86" REQUIRED_USE="${PYTHON_REQUIRED_USE}" diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index d9169775648e..48d6e62743fa 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -11,4 +11,6 @@ DIST ruff-0.16.7-crates.tar.xz 29020036 BLAKE2B 032e998658369c0c2dd15d4307b29a09 DIST ruff-0.16.7.gh.tar.gz 13601619 BLAKE2B d4a80f813d79b63b1bc9130654ea170ec6496e4bfa13afbeb2b3dc674227e2a8b0e67ab1f46b76394b47129487d3ec31226389dda9335e43257c6f2d44cf3b16 SHA512 221deb759aa9db4d3fc189a66011d6f763bbec60166e62fb935778966ec6f35e88b8ac94a31ed22412f6398100517f4f4e119d1aad884beba2a60e57c1e9662c DIST ruff-0.16.9-crates.tar.xz 29025912 BLAKE2B f22e30212d69b5d7d64ddbe3733792d812e6ada94d06248cb6f16252478cc1ae719f89b64fb2c2acac23316fc8ad92bce6f9ec9d0e1e5c64125ebe9901de7e6a SHA512 4be7e62a3c5bd5225b33cc171e95dec4c17a2ae7e9d2f95136d8dbde660726f8c00d03a1d4e78213802b2b2302c913bb85735dc108377c8cd1deef45c96850f3 DIST ruff-0.16.9.gh.tar.gz 13883648 BLAKE2B 7242343f55c28611a384981d1a2e37ee719070f2d5bf9e6db11eb85bf7cef410a5cc88e22052253208232074a0ba160f0796cf2bda3e5995588bcb01d124eb54 SHA512 89bc5578d0f9d260ffa45c9315d34d7b99e354a2b780600e5de4ab215aa70c313ecfd6ccbdb7f36058216e0d47be97b7bacc32383ef2398e5fc3acd08aa34e3a +DIST ruff-0.17.0-crates.tar.xz 29075976 BLAKE2B 0eb352df10a35185e8259d9a87742648ca0d425a43c54e8f99bd47174c8d0e73cc2dab1ba52ffcaeb841d9b3d249d7e51957b46110a902f335a723b83fbca10d SHA512 2e34caa1ab872190c0ab7f7405b3efccb18ccdbf41f3a36f577bff33e42fc1d0f5534d9b1aa0b42a6c221aa7163be389b441b5f9f1092a3c7e37a5da85eb6cf0 +DIST ruff-0.17.0.gh.tar.gz 14410551 BLAKE2B 9a47a80d188e85cfe94358e0fc1a47f08844624deccdba2e14f6391ae136ea7ca982fd1c34c8fac8e1caff0b86c062c416bafdd55202907dd9df30a2efd2e400 SHA512 98604d4f908b8e72026be825d2fe004ccb707f30c4a1fa5eaccce87528f4c29172deb3b92935bcd52e7f8a241c661251f01429f14eb9fbd7432b0f13f0ee71e4 DIST salsa-55e5e7d32fa3fc189276f35bb04c9438f9aedbd1.gh.tar.gz 731425 BLAKE2B ce720abaa295b46c7e1fa06a73e2ad9a48a6b9da7f2b4a91edba38a28bb9a63a1661886fc7c5d6dbc915f589f2e055731a544cdf18afb4dd7b3f6815c59e543b SHA512 91942cfc6bbfb7f07366cdd3d42e5296bff877ee723b24868ff3c278defd0ef247f03e957332bc0696553f0f1977a41c18d08efe7887f5bda3a1cb98543bddbd diff --git a/dev-util/ruff/ruff-0.17.0.ebuild b/dev-util/ruff/ruff-0.17.0.ebuild new file mode 100644 index 000000000000..034e035771a4 --- /dev/null +++ b/dev-util/ruff/ruff-0.17.0.ebuild @@ -0,0 +1,113 @@ +# Copyright 2024-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.15.1 + +EAPI=8 + +CRATES=" +" + +RUST_MIN_VER="1.97" + +inherit shell-completion cargo + +DESCRIPTION="An extremely fast Python linter, written in Rust" +HOMEPAGE=" + https://docs.astral.sh/ruff/ + https://github.com/astral-sh/ruff +" +SRC_URI=" + ${CARGO_CRATE_URIS} + https://github.com/astral-sh/ruff/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz + https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz +" + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 ISC MIT + MPL-2.0 PSF-2 Unicode-3.0 WTFPL-2 ZLIB +" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~loong ~riscv" + +RDEPEND=" + !elibc_musl? ( !elibc_Darwin? ( !elibc_bionic? ( dev-libs/jemalloc:= ) ) ) + app-arch/zstd +" +DEPEND=" + ${RDEPEND} +" + +QA_FLAGS_IGNORED="usr/bin/.*" + +DOCS=( + BREAKING_CHANGES.md + CONTRIBUTING.md + README.md + assets + docs +) + +src_prepare() { + default + + # Experimental cruft cleaner. These crates are not used by the ruff binary, + # and when they are removed in the git repo, the lockfile is regenerated + # and gets quite a bit smaller. Hence pycargoebuild also produces much + # smaller CRATES= variables. Less for the user to download, fewer distfiles + # to mirror. + pushd crates >/dev/null || die + rm -r ruff_{benchmark,dev,mdtest,python_{ast,trivia}_integration_tests} \ + ty{,_{ide,project,server,completion_{bench,eval}}} \ + *_wasm || die + popd > /dev/null || die + + # tests that hang in the ebuild environment + rm crates/ruff_annotate_snippets/tests/examples.rs || die +} + +src_configure() { + export RUSTFLAGS="${RUSTFLAGS}" + cargo_src_configure +} + +src_compile() { + local -x ZSTD_SYS_USE_PKG_CONFIG=1 + # Gentoo bug #927338 + if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then + local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 + local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so + fi + cargo_src_compile --bin ruff + + local releasedir + releasedir=$(cargo_target_dir) + + ${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die + ${releasedir}/ruff generate-shell-completion fish > ruff-completion.fish || die + ${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die +} + +src_test() { + local -x ZSTD_SYS_USE_PKG_CONFIG=1 + # Gentoo bug #927338 + if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then + local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 + local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so + fi + cargo_src_test --target-dir "${PWD}"/tested-target/ +} + +src_install() { + local releasedir=$(cargo_target_dir) + + dobin ${releasedir}/ruff + + newbashcomp ruff-completion.bash ruff + newfishcomp ruff-completion.fish ruff.fish + newzshcomp ruff-completion.zsh _ruff + + dodoc -r "${DOCS[@]}" +} |
