diff options
| author | Crucible <crucible@localhost> | 2026-10-15 18:56:13 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-15 18:56:13 -0500 |
| commit | 7aeff713280b18e4a75554b82ade7e4c566c503b (patch) | |
| tree | 9c85f6164c47db67e65d701e38ea2d8e8d697382 /dev-util | |
| parent | 656091d43f3421f492a9e848b8d96db1f0a72813 (diff) | |
| download | srcux-7aeff713280b18e4a75554b82ade7e4c566c503b.tar.gz srcux-7aeff713280b18e4a75554b82ade7e4c566c503b.tar.xz srcux-7aeff713280b18e4a75554b82ade7e4c566c503b.zip | |
Publish srcux candidate 0000000668-20261015-185250
Diffstat (limited to 'dev-util')
| -rw-r--r-- | dev-util/ruff/Manifest | 2 | ||||
| -rw-r--r-- | dev-util/ruff/ruff-0.17.1.ebuild | 113 |
2 files changed, 115 insertions, 0 deletions
diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index 48d6e62743fa..50c029455234 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -13,4 +13,6 @@ DIST ruff-0.16.9-crates.tar.xz 29025912 BLAKE2B f22e30212d69b5d7d64ddbe3733792d8 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 ruff-0.17.1-crates.tar.xz 28862040 BLAKE2B 6a663c721b5ed4fc64fd6f724e3da65cad58921b6c800854d3c11562fb1586221be0b64dab3e4a4e447fc752c8840a0392b2881d37327947f1e9af5fb3c693fd SHA512 4a0970ff15c282836ce9e5864630a15b9b4312cb47c4c38cb79a22776ed1b60090bc07045baf09d97613ef55cb12305ed437813d837604f95e2db18b74d5b676 +DIST ruff-0.17.1.gh.tar.gz 14475565 BLAKE2B b15bdcb29e194370565354e2be73b1291414cf9f0d0bfb2a79769b04f64965a370c78fd6e5024290a12deb61a6c52c2310520b893a252055a8914fea503cc00c SHA512 25a4d6b5eebb197f02138f14f03b21ce9d087311cc193d27833086af900fcc35ab7b527d9c566b6bba0998a113c0162c10ef04ec766aca1a7d638cdc13545d4f DIST salsa-55e5e7d32fa3fc189276f35bb04c9438f9aedbd1.gh.tar.gz 731425 BLAKE2B ce720abaa295b46c7e1fa06a73e2ad9a48a6b9da7f2b4a91edba38a28bb9a63a1661886fc7c5d6dbc915f589f2e055731a544cdf18afb4dd7b3f6815c59e543b SHA512 91942cfc6bbfb7f07366cdd3d42e5296bff877ee723b24868ff3c278defd0ef247f03e957332bc0696553f0f1977a41c18d08efe7887f5bda3a1cb98543bddbd diff --git a/dev-util/ruff/ruff-0.17.1.ebuild b/dev-util/ruff/ruff-0.17.1.ebuild new file mode 100644 index 000000000000..034e035771a4 --- /dev/null +++ b/dev-util/ruff/ruff-0.17.1.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[@]}" +} |
