commit:     99b8c9c116807d0dd3c659339f8fd8faa54b4286
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 22 20:24:14 2023 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Wed Feb 22 20:24:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99b8c9c1

dev-util/ruff: add 0.0.252

Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-util/ruff/Manifest            |   2 +
 dev-util/ruff/ruff-0.0.252.ebuild | 410 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 412 insertions(+)

diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest
index aae33ab6f504..c084ea7cc63a 100644
--- a/dev-util/ruff/Manifest
+++ b/dev-util/ruff/Manifest
@@ -1,5 +1,6 @@
 DIST LibCST-f2f0b7a487a8725d161fe8b3ed73a6758b21e177.gh.tar.gz 726087 BLAKE2B 
417f707cbc87ec30fff0ec6a78a480a5a76a24ad3f129ccddf53e55ae311d8cf036b63170196a445500b5f9a45e864ee7f713be677433d4d0abbd8d9479418f7
 SHA512 
ad69c317b2d7efcd3bde56a2777ade7c71da02542f14e7ee930b9e12cad2b0b4f7ce287ac03769f4df21f3edc7fe36aed11a82c949257b90acfaac4b17aa51a9
 DIST RustPython-61b48f108982d865524f86624a9d5bc2ae3bccef.gh.tar.gz 10345891 
BLAKE2B 
f626531f3172309535f20de0e2ec9642fe49abc38130f76e34e5e129c064f746fc821d17b9b2376e917448f032f69ca711c534c584d2c98fc6fcb867830b388b
 SHA512 
5f5e7ca2df72eaa3dfb82efcc0f8a76d2bb695aa5c9ca57bd6879b69a17516d61057781596e0f1d3f92fa62c4b921b7ed6b903af18a8d0ecf78a45fad2e84ee8
+DIST RustPython-edf5995a1e4c366976304ca05432dd27c913054e.gh.tar.gz 10387859 
BLAKE2B 
e9b3abf79642155b67074a03cd64fcbd53482285b1f64cc9d0e17c76cf301a78daa08c8ac576cd7494146f9a6053dd057570f1959fb359c5eda313bbe3b1e95a
 SHA512 
90be15b2fb31b91b7fae56e4c3f9be58e2098592a7efedde953aa6fa4f05c78fb028318ebcfd0d55150e09877ade62ff3380d646c6950d9ae4de57bc7e1bc963
 DIST adler-1.0.2.crate 12778 BLAKE2B 
a1dc17786adae945ac09d3525e609ed944e6465690787bbb831a1b9d53793cba1989793d0a5606d5d23ee20d36457923d451b1b3530c9ec7072a487aa3e55bbd
 SHA512 
7ab190d31890fc05b0b55d8e2c6527a505e06793d5496be0b3831e0513412f9ba97f8148f6f68ed0770fa9cd980a5092d885e058becf1d5506b7c74b82674aa1
 DIST ahash-0.7.6.crate 38030 BLAKE2B 
aca3661477fcd7822d6d10970151e05c28e1615f8cd7ddaac064b15102027e404b19b0f3f16dd76145048594ea1c22ae27dd08cc05c411efbae9ec7a1ef55ce9
 SHA512 
61354688b6fb096359faefb6f34be958cd2215d56b88c22c737d24183eaad433f811bc9e64f927e4852c87d2799c22fda82b55cfbef2ed6357ff74f0c4ffec68
 DIST aho-corasick-0.7.20.crate 111440 BLAKE2B 
3f5d54fea2793ce1c2c4d5b3049b910f45a5721e7538cb2557df63dc3069ab3f6b66aceb5e9a48f21c43ae29778fd045428ea103b2a6de81659e605e30e64ca6
 SHA512 
ad31f3d1b3fe41e593d4ca7e721bbad62936f2e6a17fd1e0997353edb6fc906d1bef2b79f0ac7c7676abe637bbabb23ff22059947be379a2441011f8178983c5
@@ -253,6 +254,7 @@ DIST remove_dir_all-0.5.3.crate 9184 BLAKE2B 
ab7ef94e0230ddc9b363f038254a180881b
 DIST reqwest-0.11.14.crate 145216 BLAKE2B 
e7ae6b489acc2b8a8eff2f6d34db7817ac811998bc6c6c565f93b99746b3e03e823ae55c8867cf39844c4e6ec412c9248bcca9725bdeae91928d37f670177cd6
 SHA512 
b853212d8495e98295e861b900e73ce80be1135ec9904b57dd75de2102fc465c3e3dee93c70c07dc46ac67b56affbc0f88a7b65c706521564a7c1ac5f6e62115
 DIST ring-0.16.20.crate 5082615 BLAKE2B 
6011eb7148c2d2ab410e564a06604f4350e07ea030e4d7dcb30574b977f0b0c7e53e09f6e6dbb2d068cdf110262876c48dfaeeef1b691932a056fe149916d934
 SHA512 
d97d1b08eb796d4c107426ff2c015ab1f221612500c8a57fca8e3f064e8c0f5ae2a5e6071d013313cd9f4be8fed4ba03beae84bd446f56b2b2ca5d483c328191
 DIST ruff-0.0.247.gh.tar.gz 1039897 BLAKE2B 
410a85aac15a9f05576e98fbae544d9d5a129f0c865720696a2337b2f7a4f3dec539fd0c008d9971170dc10e0c25904275656ff2475d52a0d2740710d4065ae2
 SHA512 
865f5c31fe5239ef6e534a93f5b963fb7c249017e8912080c4247c95f3e3583062db647d8e96a83704426fc0f5e634370fc6813f61c53c027a9c85e9692d80f4
+DIST ruff-0.0.252.gh.tar.gz 1067753 BLAKE2B 
5656c83ea0351609a37c0f14faa66aa8240a42d06bd0129d7bbdb637247c71bcdc72d12142eb4ff54403491a35be3af92f96508d509c0ccfde29a599a1307cf2
 SHA512 
0eba88d85fde6cd56602376eb5ba9410c73ecc536eb8c6ae6c41cb673a2804e0bc210789d519c4caaab653a7ac41a6ff31469373236229be162636e23fbdfdce
 DIST rust-stemmers-1.2.0.crate 2351301 BLAKE2B 
d633c0d7091fd05e55a521670104831bed89deef7a2fb7c1eed3528246e65b67a97888fed48b134b10c477e7b95c034e8bbad70500c779b1ff7b0c334de0b37b
 SHA512 
b9453a0984d41e5a692e5ea1a8a7bc6142de30f7b345a269489b8d4ebe3b3d442e7fe5f338c72a790521dea7a2ad9605c0ca8218a6b76d8bc5e19ae02cf711d7
 DIST rustc-hash-1.1.0.crate 9331 BLAKE2B 
16ac56622897f47a06b661fb59a196b08d48e782ab87549c8bd5c6fe92f374c9bfd44dcb36588512bd9b6125c2fd79a12d648aaa308fd9694bcca3a7c1b49ac9
 SHA512 
84e673ea9b046f7b989d47f2c4505557fbd5de991e6fc9f56a03605d40e0b4ba5427cd566954890153cc033ccbec6c984306634571935bfe0d4cdfbe56f39544
 DIST rustix-0.36.8.crate 290808 BLAKE2B 
62da252100523d282d6d8d2bf141f6e59f0dafcebb0a1025b6bddb78c2a100643d63edcaea4cf64ce68696219ef52706f6b49f6a7b22f99c544866643952f98b
 SHA512 
6fd6ca326feac93145ddbf6eba65c8eff731c9a9e7ff3a6724c19e5c8bbb05236f526df27c4c916e855e7e75e65914470af2d9c98e1571692991a7bd811b5bb0

diff --git a/dev-util/ruff/ruff-0.0.252.ebuild 
b/dev-util/ruff/ruff-0.0.252.ebuild
new file mode 100644
index 000000000000..b0c70b030c83
--- /dev/null
+++ b/dev-util/ruff/ruff-0.0.252.ebuild
@@ -0,0 +1,410 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+       adler-1.0.2
+       ahash-0.7.6
+       aho-corasick-0.7.20
+       android_system_properties-0.1.5
+       anes-0.1.6
+       annotate-snippets-0.6.1
+       annotate-snippets-0.9.1
+       anyhow-1.0.69
+       ascii-1.1.0
+       ascii-canvas-3.0.0
+       assert_cmd-2.0.8
+       atty-0.2.14
+       autocfg-1.1.0
+       base64-0.13.1
+       bincode-1.3.3
+       bisection-0.1.0
+       bit-set-0.5.3
+       bit-vec-0.6.3
+       bitflags-1.3.2
+       block-buffer-0.10.3
+       bstr-0.2.17
+       bstr-1.2.0
+       bumpalo-3.12.0
+       cachedir-0.3.0
+       cast-0.3.0
+       cc-1.0.79
+       cfg-if-1.0.0
+       chic-1.2.2
+       chrono-0.4.23
+       ciborium-0.2.0
+       ciborium-io-0.2.0
+       ciborium-ll-0.2.0
+       clap-3.2.23
+       clap-4.1.6
+       clap_complete-4.1.1
+       clap_complete_command-0.4.0
+       clap_complete_fig-4.1.0
+       clap_derive-4.1.0
+       clap_lex-0.2.4
+       clap_lex-0.3.1
+       clearscreen-2.0.0
+       codespan-reporting-0.11.1
+       colored-2.0.0
+       configparser-3.0.2
+       console-0.15.5
+       console_error_panic_hook-0.1.7
+       console_log-0.2.0
+       core-foundation-sys-0.8.3
+       cpufeatures-0.2.5
+       crc32fast-1.3.2
+       criterion-0.4.0
+       criterion-plot-0.5.0
+       crossbeam-channel-0.5.6
+       crossbeam-deque-0.8.2
+       crossbeam-epoch-0.9.13
+       crossbeam-utils-0.8.14
+       crunchy-0.2.2
+       crypto-common-0.1.6
+       cxx-1.0.90
+       cxx-build-1.0.90
+       cxxbridge-flags-1.0.90
+       cxxbridge-macro-1.0.90
+       diff-0.1.13
+       difflib-0.4.0
+       digest-0.10.6
+       dirs-4.0.0
+       dirs-next-2.0.0
+       dirs-sys-0.3.7
+       dirs-sys-next-0.1.2
+       doc-comment-0.3.3
+       drop_bomb-0.1.5
+       dyn-clone-1.0.10
+       either-1.8.1
+       ena-0.14.0
+       encode_unicode-0.3.6
+       errno-0.2.8
+       errno-dragonfly-0.1.2
+       fastrand-1.9.0
+       fern-0.6.1
+       filetime-0.2.20
+       fixedbitset-0.4.2
+       flate2-1.0.25
+       fnv-1.0.7
+       form_urlencoded-1.1.0
+       fsevent-sys-4.1.0
+       generic-array-0.14.6
+       getrandom-0.2.8
+       glob-0.3.1
+       globset-0.4.10
+       half-1.8.2
+       hashbrown-0.12.3
+       heck-0.4.1
+       hermit-abi-0.1.19
+       hermit-abi-0.2.6
+       hermit-abi-0.3.1
+       hexf-parse-0.2.1
+       iana-time-zone-0.1.53
+       iana-time-zone-haiku-0.1.1
+       idna-0.3.0
+       ignore-0.4.20
+       imperative-1.0.4
+       indexmap-1.9.2
+       inotify-0.9.6
+       inotify-sys-0.1.5
+       insta-1.26.0
+       instant-0.1.12
+       io-lifetimes-1.0.5
+       is-terminal-0.4.3
+       itertools-0.10.5
+       itoa-1.0.5
+       joinery-2.1.0
+       js-sys-0.3.61
+       kqueue-1.0.7
+       kqueue-sys-1.0.3
+       lalrpop-0.19.8
+       lalrpop-util-0.19.8
+       lazy_static-1.4.0
+       lexical-parse-float-0.8.5
+       lexical-parse-integer-0.8.6
+       lexical-util-0.8.5
+       libc-0.2.139
+       libmimalloc-sys-0.1.30
+       link-cplusplus-1.0.8
+       linked-hash-map-0.5.6
+       linux-raw-sys-0.1.4
+       lock_api-0.4.9
+       log-0.4.17
+       lz4_flex-0.9.5
+       matches-0.1.10
+       memchr-2.5.0
+       memoffset-0.7.1
+       mimalloc-0.1.34
+       miniz_oxide-0.6.2
+       mio-0.8.5
+       natord-1.0.9
+       new_debug_unreachable-1.0.4
+       nextest-workspace-hack-0.1.0
+       nix-0.26.2
+       nohash-hasher-0.2.0
+       nom-5.1.2
+       nom8-0.2.0
+       notify-5.1.0
+       num-bigint-0.4.3
+       num-complex-0.4.3
+       num-integer-0.1.45
+       num-traits-0.2.15
+       num_cpus-1.15.0
+       num_enum-0.5.9
+       num_enum_derive-0.5.9
+       once_cell-1.17.0
+       oorandom-11.1.3
+       os_str_bytes-6.4.1
+       parking_lot-0.12.1
+       parking_lot_core-0.9.7
+       paste-1.0.11
+       path-absolutize-3.0.14
+       path-dedot-3.0.18
+       peg-0.8.1
+       peg-macros-0.8.1
+       peg-runtime-0.8.1
+       percent-encoding-2.2.0
+       pest-2.5.5
+       pest_derive-2.5.5
+       pest_generator-2.5.5
+       pest_meta-2.5.5
+       petgraph-0.6.3
+       phf-0.11.1
+       phf_codegen-0.11.1
+       phf_generator-0.11.1
+       phf_shared-0.10.0
+       phf_shared-0.11.1
+       pico-args-0.4.2
+       pin-project-lite-0.2.9
+       plotters-0.3.4
+       plotters-backend-0.3.4
+       plotters-svg-0.3.3
+       ppv-lite86-0.2.17
+       precomputed-hash-0.1.1
+       predicates-2.1.5
+       predicates-core-1.0.5
+       predicates-tree-1.0.7
+       proc-macro-crate-1.3.0
+       proc-macro-error-1.0.4
+       proc-macro-error-attr-1.0.4
+       proc-macro2-1.0.51
+       quick-junit-0.3.2
+       quick-xml-0.26.0
+       quote-1.0.23
+       radium-0.7.0
+       rand-0.8.5
+       rand_chacha-0.3.1
+       rand_core-0.6.4
+       rayon-1.6.1
+       rayon-core-1.10.2
+       redox_syscall-0.2.16
+       redox_users-0.4.3
+       regex-1.7.1
+       regex-automata-0.1.10
+       regex-syntax-0.6.28
+       remove_dir_all-0.5.3
+       ring-0.16.20
+       rust-stemmers-1.2.0
+       rustc-hash-1.1.0
+       rustix-0.36.8
+       rustls-0.20.8
+       rustversion-1.0.11
+       ryu-1.0.12
+       same-file-1.0.6
+       schemars-0.8.11
+       schemars_derive-0.8.11
+       scoped-tls-1.0.1
+       scopeguard-1.1.0
+       scratch-1.0.3
+       sct-0.7.0
+       semver-1.0.16
+       serde-1.0.152
+       serde-wasm-bindgen-0.4.5
+       serde_derive-1.0.152
+       serde_derive_internals-0.26.0
+       serde_json-1.0.93
+       serde_spanned-0.6.1
+       serde_test-1.0.152
+       sha2-0.10.6
+       shellexpand-3.0.0
+       similar-2.2.1
+       siphasher-0.3.10
+       smallvec-1.10.0
+       smawk-0.3.1
+       spin-0.5.2
+       static_assertions-1.1.0
+       string_cache-0.8.4
+       strsim-0.10.0
+       strum-0.24.1
+       strum_macros-0.24.3
+       syn-1.0.107
+       tempfile-3.3.0
+       term-0.7.0
+       termcolor-1.2.0
+       terminfo-0.7.5
+       termtree-0.4.0
+       test-case-2.2.2
+       test-case-macros-2.2.2
+       textwrap-0.16.0
+       thiserror-1.0.38
+       thiserror-impl-1.0.38
+       thread_local-1.1.7
+       tikv-jemalloc-sys-0.5.3+5.3.0-patched
+       tikv-jemallocator-0.5.0
+       time-0.1.45
+       tiny-keccak-2.0.2
+       tinytemplate-1.2.1
+       tinyvec-1.6.0
+       tinyvec_macros-0.1.1
+       titlecase-2.2.1
+       toml-0.6.0
+       toml_datetime-0.5.1
+       toml_edit-0.18.1
+       tracing-0.1.37
+       tracing-core-0.1.30
+       twox-hash-1.6.3
+       typenum-1.16.0
+       ucd-trie-0.1.5
+       unic-char-property-0.9.0
+       unic-char-range-0.9.0
+       unic-common-0.9.0
+       unic-emoji-char-0.9.0
+       unic-ucd-category-0.9.0
+       unic-ucd-ident-0.9.0
+       unic-ucd-version-0.9.0
+       unicode-bidi-0.3.10
+       unicode-ident-1.0.6
+       unicode-linebreak-0.1.4
+       unicode-normalization-0.1.22
+       unicode-width-0.1.10
+       unicode-xid-0.2.4
+       unicode_names2-0.5.1
+       untrusted-0.7.1
+       ureq-2.6.2
+       url-2.3.1
+       uuid-1.3.0
+       version_check-0.9.4
+       volatile-0.3.0
+       wait-timeout-0.2.0
+       walkdir-2.3.2
+       wasi-0.10.0+wasi-snapshot-preview1
+       wasi-0.11.0+wasi-snapshot-preview1
+       wasm-bindgen-0.2.84
+       wasm-bindgen-backend-0.2.84
+       wasm-bindgen-futures-0.4.34
+       wasm-bindgen-macro-0.2.84
+       wasm-bindgen-macro-support-0.2.84
+       wasm-bindgen-shared-0.2.84
+       wasm-bindgen-test-0.3.34
+       wasm-bindgen-test-macro-0.3.34
+       web-sys-0.3.61
+       webpki-0.22.0
+       webpki-roots-0.22.6
+       which-4.4.0
+       widestring-0.5.1
+       winapi-0.3.9
+       winapi-i686-pc-windows-gnu-0.4.0
+       winapi-util-0.1.5
+       winapi-x86_64-pc-windows-gnu-0.4.0
+       windows-sys-0.42.0
+       windows-sys-0.45.0
+       windows-targets-0.42.1
+       windows_aarch64_gnullvm-0.42.1
+       windows_aarch64_msvc-0.42.1
+       windows_i686_gnu-0.42.1
+       windows_i686_msvc-0.42.1
+       windows_x86_64_gnu-0.42.1
+       windows_x86_64_gnullvm-0.42.1
+       windows_x86_64_msvc-0.42.1
+       yaml-rust-0.4.5
+       yansi-term-0.1.2
+"
+
+PYTHON_COMPAT=( python3_{9..11} )
+DISTUTILS_USE_PEP517=maturin
+
+LIBCST_COMMIT="f2f0b7a487a8725d161fe8b3ed73a6758b21e177"
+RUSTPYTHON_COMMIT="edf5995a1e4c366976304ca05432dd27c913054e"
+declare -A GIT_CRATES=(
+       
[libcst]="https://github.com/charliermarsh/LibCST;${LIBCST_COMMIT};LibCST-%commit%/native/libcst";
+       
[libcst_derive]="https://github.com/charliermarsh/LibCST;${LIBCST_COMMIT};LibCST-%commit%/native/libcst_derive";
+       
[rustpython-ast]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/ast";
+       
[rustpython-common]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/common";
+       
[rustpython-compiler-core]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/core";
+       
[rustpython-parser]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/parser";
+)
+
+inherit distutils-r1 cargo
+
+DESCRIPTION="An extremely fast Python linter, written in Rust"
+# Double check the homepage as the cargo_metadata crate
+# does not provide this value so instead repository is used
+HOMEPAGE="https://github.com/charliermarsh/ruff";
+
+SRC_URI="
+       $(cargo_crate_uris)
+       https://github.com/charliermarsh/ruff/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.gh.tar.gz
+"
+
+# License set may be more restrictive as OR is not respected
+# use cargo-license for a more accurate license picture
+LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions Artistic-2 BSD 
Boost-1.0 CC0-1.0 ISC LGPL-3+ MIT MPL-2.0 Unicode-DFS-2016 Unlicense WTFPL-2 
ZLIB"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="
+       dev-util/patchelf
+"
+
+# rust does not use *FLAGS from make.conf, silence portage warning
+# update with proper path to binaries this crate installs, omit leading /
+QA_FLAGS_IGNORED="usr/bin/ruff usr/lib*/libruff.so"
+
+# haven't been able to figure out how to get tests working yet
+RESTRICT=test
+
+DOCS=(
+       BREAKING_CHANGES.md
+       CODE_OF_CONDUCT.md
+       CONTRIBUTING.md
+       README.md
+)
+
+src_prepare() {
+       sed -r 's:(strip[[:space:]]*=[[:space:]]*)true:\1false:' \
+               -i pyproject.toml || die
+
+       eapply_user
+}
+
+src_configure() {
+       export RUSTFLAGS="${RUSTFLAGS}"
+       cargo_src_configure
+}
+
+src_compile() {
+       cargo_src_compile
+
+       python_copy_sources
+       distutils-r1_src_configure
+       distutils-r1_src_compile
+
+       patchelf --set-soname libruff.so target/$(usex 'debug' 'debug' 
'release')/libruff.so || die
+}
+
+src_test() {
+       cargo_src_test
+       distutils-r1_src_test
+}
+
+src_install() {
+       distutils-r1_src_install
+
+       local releasedir=target/$(usex 'debug' 'debug' 'release')
+
+       dobin ${releasedir}/ruff
+       dolib.so ${releasedir}/libruff.so
+
+       dodoc "${DOCS[@]}"
+}

Reply via email to