From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 816E615806C for ; Fri, 11 Jul 2025 23:06:24 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 688CC340FAB for ; Fri, 11 Jul 2025 23:06:24 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 930A811055B; Fri, 11 Jul 2025 23:06:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 8969A11055B for ; Fri, 11 Jul 2025 23:06:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1FE48340FAB for ; Fri, 11 Jul 2025 23:06:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 825752F38 for ; Fri, 11 Jul 2025 23:06:18 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1752275170.2c62b1b2504f61cc395746d712ee1e6af976e647.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ruff/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/ruff/Manifest dev-util/ruff/ruff-0.11.10.ebuild dev-util/ruff/ruff-0.11.11.ebuild dev-util/ruff/ruff-0.11.7.ebuild X-VCS-Directories: dev-util/ruff/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 2c62b1b2504f61cc395746d712ee1e6af976e647 X-VCS-Branch: master Date: Fri, 11 Jul 2025 23:06:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 25abec54-202f-46e6-a65a-4d82eac184d8 X-Archives-Hash: 5937c612579572188010b980c8cdbb58 commit: 2c62b1b2504f61cc395746d712ee1e6af976e647 Author: Patrick McLean gentoo org> AuthorDate: Fri Jul 11 23:06:01 2025 +0000 Commit: Patrick McLean gentoo org> CommitDate: Fri Jul 11 23:06:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c62b1b2 dev-util/ruff: drop 0.11.7, 0.11.10, 0.11.11 Signed-off-by: Patrick McLean gentoo.org> dev-util/ruff/Manifest | 9 --- dev-util/ruff/ruff-0.11.10.ebuild | 116 ------------------------------------- dev-util/ruff/ruff-0.11.11.ebuild | 116 ------------------------------------- dev-util/ruff/ruff-0.11.7.ebuild | 117 -------------------------------------- 4 files changed, 358 deletions(-) diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index 20a66df33e1a..8a0573fe8f14 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -1,18 +1,9 @@ DIST lsp-types-3512a9f33eadc5402cfab1b8f7340824c8ca1439.gh.tar.gz 71124 BLAKE2B b2ea1c8fdd96dcc78ea48be71d1a4870fe1ff7f6a03dfe96479e0cba5f6b13ea68381d0a85fcb79a1ec2345eab7032c76cf567a813885128f94ac0c47c3de7bf SHA512 3362f9db4e78261825ae17b3429f9c54dc1b32a8b6a275ecff7bbe457c610d27ac37e68be3e9e27378f5f54c786dee787fd87b33c102f2507a46cf7290390ab5 -DIST ruff-0.11.10-crates.tar.xz 31346424 BLAKE2B b8cdbe8d208c47c95905e78aa427fc5d6f91e558408248ea38302c60f41b60fed21ca4c29771b1cd132d29ba20253d81427ca62c0adc642432478fa8e99153c4 SHA512 0301a12faec221a44719815c407cfb4b2943e7cf21f2174bc06d970abbd47588a9b3a91c5e5dc54e1a03668b63a9920b25d3011b05019d079087742769d33146 -DIST ruff-0.11.10.gh.tar.gz 6510508 BLAKE2B dc664bce0460e087ef9ca73802b1f369216532541b0e2fa9fa4ff36e13b20e8ab217af702fa32c9687ab0c6a0a221161ba57e280573eb9cc824ee55ce149773d SHA512 7f2e2fbdb3dd15fe7e690755c446ea9872368525910e798388aa847e1261c5ee9865a1876e5a8076b941eac08e0539153ee5b42f8df0a483a9d585b64d8c0988 -DIST ruff-0.11.11-crates.tar.xz 22914436 BLAKE2B ff7c87586c730e02303ac470c47f81666f3f61e2c6f79dad0296e6abc40c7a05b19349eee395e777bb52e4b9685997ce8d9dbcfb9db8d2301f9b72629e7b0d73 SHA512 0ae99390cd102d8819de8bf371324ba634641a2b8a333b8f9621c519af483ff6e1152cb62abce32d030ad9eb9938fecf909513518c98cca6b051f368a8fc1a92 -DIST ruff-0.11.11.gh.tar.gz 6532150 BLAKE2B ebcd05205aa1eeb874abfe1cdc0bc1f4b9c2aa1e6dd258720320af223370c08507967940725c13af40de020188dd95a0eb3345235725292c1cedb0716b98d907 SHA512 8d3de13cfd985510b5e84a2110fd7ebe98fc9393e3acf484e83c6b5e8f8b4a5cebd6d30875c2c13c8f96ea0a25906058c3ec579ae56d6b1b124a1ff8167496ea DIST ruff-0.11.13-crates.tar.xz 22946420 BLAKE2B 0f110e6421b1db3bfd43c73b50f926793e04142861099391889a9edbcf90e16ef8b805c124237a86bf7427dd3c4d055782195deabfc43d05cf55e37b0ae34286 SHA512 bd40bc065bc7934636b7282d11cfec77cc8e074ee3150732a9abac6b0cf1c16698d9083736bea65e30851a37caf50493b2c2721c9cfed99a42526de37b05573f DIST ruff-0.11.13.gh.tar.gz 6667204 BLAKE2B 71f23c2f52c1cd150814a5ffdddbe98b19d8f99ada826149cc35020f1537a8c1f1e8be608db2aacdcfdd8be022856e12daea6afb2c2ecd4b930fdda561e062e8 SHA512 59f898c58e97477eb806a5f7bd5652f75d6d579b8d1daf10a68cadd690ce87c3b3e26adad24d357c4340effbd1ce9e366ff5c616f02909958e942c3a80697664 -DIST ruff-0.11.7-crates.tar.xz 31153356 BLAKE2B b0c828ba0025ed2f6fb1bb4ae7371aaeec2d70bcff3622a5db7f14bb93df67ea696262442744ce42cabf1db99cf81ee09edc6f6bc26708ba5b3962b9a1ec376b SHA512 8d8de54085f239ce35576b1cddde22f8f82317ec880375b6335d12584bdc123be89b63fc5929663ae1da3bdc8d36d97e4c1281d1ae4cba103dcb36ad718fdee3 -DIST ruff-0.11.7.gh.tar.gz 6353627 BLAKE2B 98eddf4be944b971a45ed88d15c8c708a84919c95a4bf5b9cbbe118c807c49fec238f066c94933ff6127725a5d4304451c4c2642c997963343e7e881c2d190b5 SHA512 8174522594c7e8eecd197e707b97de914fa6a1cae6e25bf2b511942a50af0cf962f4c57b67d4f8ffd0487f842e30fbe5947d727d44e3105e7f5f140bf5066207 DIST ruff-0.12.2-crates.tar.xz 23374644 BLAKE2B a9c83cb54c6c39620c2fdc0d89b6c9b0654ee418be0f952adab01e34f820ffa211cc87faeedd2f6533f1543ae2be7af12e40dcdf9bb763c552d47f98ef8a748a SHA512 6db5c2bc026eef9d5bb36cedbd3652152808d6f8036b6bd3fa29a8091ab34a2bed3c542a668b64edddca180f338281b3a952195ccfa7b0791d5d2baa665f1150 DIST ruff-0.12.2.gh.tar.gz 6868694 BLAKE2B 351ea14c22d3a23fcf6fa243007c7c1ff4dedcaf3c13384096c479ded343c14ddfb060f31226a32834538cbf9a866a56cbefebb40ee1b59fecda2f4ea48b6aa0 SHA512 5012c1403f3937d0a3aca600e843f8f9c422fdd1892c9997b5f2195ff7c061a6b76b7056aef736e443e7e8761f0a830edc45f78eab6df73028e812c84b5ab92e DIST ruff-0.12.3-crates.tar.xz 25032036 BLAKE2B 95ed0b9cadab1df7d218a118f52378150379036f8fa27019ddde25b9b182cd2279dd926658087306f93e11334b561ca05a612e5faf47083576739d5b04dc6bde SHA512 5235b6fc9eb5d45180da4cb1c19283396a15e32bd39d5bb4933550fcea5505479bb4ae3dff203dccb900632937b96355d4371ba117f2a3d0235bfd6e4125e959 DIST ruff-0.12.3.gh.tar.gz 6944457 BLAKE2B a3521dcc72d162dc25be352dcb40935260f65580dcb3a107cdfef91ad95e950cc603a0bc2e5f228bb522174364ad615cdaac3a02a60ec02d1157ed06ac9cd43d SHA512 f9a9f84f96a4af49fcab8555057f5ed5ea1925a367ad2511681826392d0b8b0e0119df0d59c68f3dfffa4d1499c6c94c2bd98b6cc8ff645ff8af17ef4d48d13a DIST salsa-0f6d406f6c309964279baef71588746b8c67b4a3.gh.tar.gz 666836 BLAKE2B 48cd0ce679dad8132b2e5b9c249c4c3e2f4da6204497694d4885b0ccc9f2efac96e5b753f6913b021827e7d8c5b00d79986c10d90a5d16b23a8f16ed7cb37350 SHA512 079d70deaf6f34994740067962c064087427f926f80d5e3fa1e8749b5747a9e9544169a748b5de1b9b7308cbbc19ce360fbedad1cead83bc015dd7e9a0a1f229 -DIST salsa-4818b15f3b7516555d39f5a41cb75970448bee4c.gh.tar.gz 660288 BLAKE2B df4b1249f8a94d2f23ac1734b04e853e6fd9532385167073c830daca0f94866f25dfba7d2992712aefe74a3962ab567da3bc038ca200cbc2fba7674278445fda SHA512 21117ecfd147a54414e10cf8efe1a11d6c526e212325e5a2410c9703f66de2239a60e20f6f2c0065c907cf776c24cfb1bcda5a638b66c5949e9fb286e12cc499 -DIST salsa-7edce6e248f35c8114b4b021cdb474a3fb2813b3.gh.tar.gz 660115 BLAKE2B 9cc1f30d0cd7abe2c81f952dd390aa41d4ff4cc7fe94a4a9977543abf16c7e7bca4b4a12fc397569293b282b650b77ac077917af791e85403e0a58dda5bbca61 SHA512 368c5c18c3fe82d5a9db322aa317b56c68a6c2680f719dc425a820772c4b29bca0b1f506d78ce697ab2d1e5d87add28e159c077387707f4d3ef609531368c6be -DIST salsa-87bf6b6c2d5f6479741271da73bd9d30c2580c26.gh.tar.gz 643688 BLAKE2B 5d2bd930dfbea0cb036e9caa1dee25c422e8a7fcda6bb3504f1e904449ee0b19d3aebb5fd57ce2cad9cdbb759b208bb5438ad30214c51e1d79e94f7869daf36b SHA512 b8236507f25d8f00ce7dbd8347913d1e9f32b521b146d662c881d016279a162345d3152e77ab0f0b1b452c7a2c75d8ff986f2c3ff11e7fd9f8629d9cd6b24f27 DIST salsa-fc00eba89e5dcaa5edba51c41aa5f309b5cb126b.gh.tar.gz 684112 BLAKE2B 624720fd4887982ef6da5b69dcc81a7290f791267d6915e636a8ade13663d670f34ee2a4492e13c7ea8a6f611a61b08ec31c34c9a4accf57a11d135fc17ae2ea SHA512 6f2f3b3d5fb20d863d0c661a1d4f2076591ab97b3c435f3eb4f22d9065a36800fbe617eaf6086682ab3eba38580ef08adb512bd72b40129b3b698ea00430675d diff --git a/dev-util/ruff/ruff-0.11.10.ebuild b/dev-util/ruff/ruff-0.11.10.ebuild deleted file mode 100644 index 3329c3458cbc..000000000000 --- a/dev-util/ruff/ruff-0.11.10.ebuild +++ /dev/null @@ -1,116 +0,0 @@ -# Copyright 2024-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.15.0 - -EAPI=8 - -CRATES="" - -declare -A GIT_CRATES=( - [lsp-types]='https://github.com/astral-sh/lsp-types;3512a9f33eadc5402cfab1b8f7340824c8ca1439;lsp-types-%commit%' - [salsa-macro-rules]='https://github.com/salsa-rs/salsa;7edce6e248f35c8114b4b021cdb474a3fb2813b3;salsa-%commit%/components/salsa-macro-rules' - [salsa-macros]='https://github.com/salsa-rs/salsa;7edce6e248f35c8114b4b021cdb474a3fb2813b3;salsa-%commit%/components/salsa-macros' - [salsa]='https://github.com/salsa-rs/salsa;7edce6e248f35c8114b4b021cdb474a3fb2813b3;salsa-%commit%' -) - -RUST_MIN_VER="1.84.0" - -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 BSD CC0-1.0 ISC MIT MPL-2.0 PSF-2 Unicode-3.0 - Unicode-DFS-2016 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 - CODE_OF_CONDUCT.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} ty{,_server} *_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 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 - newzshcomp ruff-completion.zsh _ruff - - dodoc -r "${DOCS[@]}" -} diff --git a/dev-util/ruff/ruff-0.11.11.ebuild b/dev-util/ruff/ruff-0.11.11.ebuild deleted file mode 100644 index 65b54bd80f14..000000000000 --- a/dev-util/ruff/ruff-0.11.11.ebuild +++ /dev/null @@ -1,116 +0,0 @@ -# Copyright 2024-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.15.0 - -EAPI=8 - -CRATES="" - -declare -A GIT_CRATES=( - [lsp-types]='https://github.com/astral-sh/lsp-types;3512a9f33eadc5402cfab1b8f7340824c8ca1439;lsp-types-%commit%' - [salsa-macro-rules]='https://github.com/salsa-rs/salsa;4818b15f3b7516555d39f5a41cb75970448bee4c;salsa-%commit%/components/salsa-macro-rules' - [salsa-macros]='https://github.com/salsa-rs/salsa;4818b15f3b7516555d39f5a41cb75970448bee4c;salsa-%commit%/components/salsa-macros' - [salsa]='https://github.com/salsa-rs/salsa;4818b15f3b7516555d39f5a41cb75970448bee4c;salsa-%commit%' -) - -RUST_MIN_VER="1.85.0" - -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 BSD CC0-1.0 ISC MIT MPL-2.0 PSF-2 Unicode-3.0 - Unicode-DFS-2016 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 - CODE_OF_CONDUCT.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} ty{,_server} *_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 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 - newzshcomp ruff-completion.zsh _ruff - - dodoc -r "${DOCS[@]}" -} diff --git a/dev-util/ruff/ruff-0.11.7.ebuild b/dev-util/ruff/ruff-0.11.7.ebuild deleted file mode 100644 index 9f3210751862..000000000000 --- a/dev-util/ruff/ruff-0.11.7.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 2024-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.14.0 - -EAPI=8 - -CRATES=" -" - -declare -A GIT_CRATES=( - [lsp-types]='https://github.com/astral-sh/lsp-types;3512a9f33eadc5402cfab1b8f7340824c8ca1439;lsp-types-%commit%' - [salsa-macro-rules]='https://github.com/salsa-rs/salsa;87bf6b6c2d5f6479741271da73bd9d30c2580c26;salsa-%commit%/components/salsa-macro-rules' - [salsa-macros]='https://github.com/salsa-rs/salsa;87bf6b6c2d5f6479741271da73bd9d30c2580c26;salsa-%commit%/components/salsa-macros' - [salsa]='https://github.com/salsa-rs/salsa;87bf6b6c2d5f6479741271da73bd9d30c2580c26;salsa-%commit%' -) - -RUST_MIN_VER="1.84.0" - -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 -" -SRC_URI+=" https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz" - -LICENSE="MIT" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 BSD CC0-1.0 ISC MIT MPL-2.0 PSF-2 Unicode-3.0 - Unicode-DFS-2016 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 - CODE_OF_CONDUCT.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} red_knot{,_server} *_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 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 - newzshcomp ruff-completion.zsh _ruff - - dodoc -r "${DOCS[@]}" -}