diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-21 19:00:45 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-21 19:00:45 +0000 |
commit | 42d100735379ec54a77539383203e971a7ab8440 (patch) | |
tree | ee1d9d9ca8766e1b2d10e8ae02838bb8170c49c4 /dev-util/maturin | |
parent | fc2ac03133775e16cea65c56db9b246440e8d824 (diff) |
gentoo auto-resync : 21:03:2024 - 19:00:45
Diffstat (limited to 'dev-util/maturin')
-rw-r--r-- | dev-util/maturin/Manifest | 4 | ||||
-rw-r--r-- | dev-util/maturin/maturin-1.5.1.ebuild | 543 |
2 files changed, 547 insertions, 0 deletions
diff --git a/dev-util/maturin/Manifest b/dev-util/maturin/Manifest index 8f77641168a9..987752c6050e 100644 --- a/dev-util/maturin/Manifest +++ b/dev-util/maturin/Manifest @@ -182,6 +182,7 @@ DIST libc-0.2.147.crate 686772 BLAKE2B ab2f0c65d071d46b8b88149add1c8429237ef6d9e DIST libc-0.2.149.crate 715592 BLAKE2B 21dd5d4f9351f3c75790077c7b025046db665f2d48d7a72cda7667bc60febf79d82708cf7d39a323a594397cd590bd3d2a2f85349b4473b90ea4da918382ed0a SHA512 0def64d400d473d6eed30e985522d36801ee6472b15f90e74dc4592e0a8ffbaf30b731be280de52b30255cf60aeca8efe817b67049227dc7000c807e007d7289 DIST libc-0.2.150.crate 719359 BLAKE2B d08e17fb29992c76337bb5862cbc1cdaf7b9d7749cd65021f145fcf49fa7954d6251c8c2f3c9a796b46283c3bc014bccfd259ea52824459841911ad847fd7f5a SHA512 7ae8fe6a1db38ac6d951c0b4880d25a02f064f5e61d6057c20f7208dec8395d58efd085e41857bcf5f4da2b014d2952dc4ddaf18ac4acd3a23675bb659e70385 DIST libc-0.2.152.crate 740278 BLAKE2B 8eecde477063207d77b6894d6f9194c8dd10e55b69585e3d66296eaa0b9d3f6e2d033e667207182bf4c3cf31f6d38820c9187b2006f4b5ebee898adafb4b2751 SHA512 1722f6f52077efab90026aae3d10306f8c38ebba95366593c3c1adf707fae121ab450064ad9e8be5a667caf6af0b90fad4d1ca1009db0f2220093c44e33c4b5c +DIST libc-0.2.153.crate 740614 BLAKE2B 523a41bc8cff4ebcba0edbbe9e6a2286ec7cb3ba5e90ca5926c972b68e4b34188bc077d20c22376238c3cd91b7455898a95c505ace4ededea88cc496edb4c5a7 SHA512 3f99e3a192974fffdc053ef21e9ad5fb54b7cdbd4755df176704a95dba38047138ccab76763e89c6b565f37f98fd549fe368749f84f6d1638b3209cb07eae9b4 DIST libredox-0.0.1.crate 4212 BLAKE2B fecbb90e2842a69f3967bb2a09b0181dce1720b60c5d762a334a279b52c00a9b4b52de72c6484603981c0c3e1cd8e173ef5e15fa290ce8b8888739204956be92 SHA512 31a9234201f5128f1519e108f7424d1740a67699828265cc725304a70f6a51e139f1d0c0e626b487857a7b421f25ad93e81b95b65cf0d3e0ad912388deecfb41 DIST linux-keyutils-0.2.3.crate 18434 BLAKE2B a31163a446ef8897be8ad73be22ae3bf56a9ddac4ddb6b89bba2360b967f0f6eab4aaea98eaee16e5fcf0ddb43fc1883bd0da2a5c85db505b7b404586ae6604b SHA512 3dd56475a93dc46f9645e60eb145c315e647e3779fb66326962b8780d3a5955fb217fbfbf56d18d0c3d4872bcc02e64f09dd7734e6df3418d82e5648fe6bfe70 DIST linux-keyutils-0.2.4.crate 17999 BLAKE2B 8885c1e5daabce113d0e68f526d0f323603f8aa6bebd1ce37e3f64dc553239c1d8d0fa5a662190b901c42cb2ab061962697654b6abb0530333f23655911069e5 SHA512 8bcf2d3eb2c5cf49ce00b91bff578e2dac3c9390ae7b4bb0ad3ceaec9d282a1d4782cb9e642cba75429e7982e6537a72f849a1cc848a939d6e85fd6ea8e1dcb4 @@ -201,6 +202,7 @@ DIST mailparse-0.14.1.crate 37264 BLAKE2B 322c5ffbb60be7a62f9169438d0678ffc37fc3 DIST matchers-0.1.0.crate 6948 BLAKE2B ec3a5d01d2fedbb4dbf5bb185afbb9401410463a61f51674e0df6a571db352b2bbabfb99cdbdcfb4e511ae783165bf0258f5163f240a229b9087f9edbd0df41a SHA512 84214c1a84952d85631aa1ab5115df7cda223ac64e2acf055b6129ba1aa26ddc87615a8b51ca890ce3fee0419053fa7fe1599ae128f1d211b58c07b0c4af3b19 DIST maturin-1.4.0.gh.tar.gz 457791 BLAKE2B f7b03ab106b180a6b274ddee112e85197abb7518e5cc741afd653cdecbaad3ceb2225218c8f58ee45d562c168a51b69174505cef9d0b1d69cf3aed981ba7d892 SHA512 c86afdeb694c2fe4b9b94a7bf5f657f9337d3b6179a3d430a26608353d4de7c463a3860e87225356cfe66f1111240717851173403c66a8c30ed3acf7c1d2afdb DIST maturin-1.5.0.gh.tar.gz 453562 BLAKE2B 804198a313aa413c251e4dfd3f399bb9c5826234a9caf1422d770e4becca85b79d237c11c4920b60fee43550d174ffb9b7dfb12036af89fc31e6a36e7e3f317d SHA512 fa30ceafae02b72bae772ee0cb99af1394f258ef37574b9a46cec9528615cac896cdf9a0540c5c5a9b0d7500993d8313c1afc24d4b5337c43d0fbcf8203d8048 +DIST maturin-1.5.1.gh.tar.gz 454016 BLAKE2B 9d53c6510345b56b627b978d8a4e9bc873207e4097ba32b2539f27245cb4ffab8bf13a8a81036f572686e4a4721ecb5eca2d0ab3971839168260ffa96704d33a SHA512 92cca4b398f9ecf767ed7da27599cc328570e5ef18b39c0f1104438f2977395a02737c8a5c62d994490e248000cceaffbeba11cbf94e9f8756538851af8e6884 DIST memchr-2.5.0.crate 65812 BLAKE2B 57966413a1f933dcb2d2d4ccb29c247070f65a83299b2a9f5aa83f5a48a5c5f1c4c7c632fa63bd19f9508e9291e7258db2f16e2813a56fd84e0856f70f1e67ab SHA512 444a163b484c233e78c0e2e4d51f01ce2da93d7d29f516a95e4b0866b20bdfd3f34137653abed53eb70387991ee3e2b5937d8d4360a85bbcb50a93005a75defa DIST memchr-2.6.4.crate 94439 BLAKE2B d1136f7105a33565214fdeecdc5a95e74d7fc7cf45997f81bf3cf389f3015fa561ab326433ddcff2db0b7259246eb6d26fc7b4e3c90c3af8b9b7ed7e8ec56ba0 SHA512 1065a67e04ec9210c70e430288e0a8d39f36ce6414722099553e99112ea2f8f710eae44bf39f8775b9850e6c8a50e634a1b1b084a8eb4f6b2eae6697dcf5b5f4 DIST memchr-2.7.1.crate 96307 BLAKE2B f1a008fbdbfe84852a8ae1d9d9574306b1bf120dd5087903adbcca6af342c9abbb296496eb9bf6cb58915c4444b3edd6ca4e27131ac7d8aed8849815df87a944 SHA512 5120496faa31fc427c8b4178461a262b3a34d70eddb7ad17a19d6db8b9969c9e113d3625b5e6dc677087fc80907377b00ba0421aba9a92cf73ca2849d932f473 @@ -324,6 +326,7 @@ DIST rustc_version-0.4.0.crate 12175 BLAKE2B 6fda2ce03eab45d7193fa0d70175cc7ffb5 DIST rustix-0.37.27.crate 324534 BLAKE2B 65fc8317c5aa86236b2099104b6841a7d35d4567977218f5e59a85d199aee7d6b9f0278083d93f575b31d77ef8685576b7cba06ce8da6e96a164af30c854ace3 SHA512 e1c648cf11379509b732b9e9ed88ebd36006d8e73755528a09aed4f46df08e23a705696c5e6ff7ea0e4382513edb487f9859a8f1673150d60d70c698216fec3e DIST rustix-0.38.21.crate 358962 BLAKE2B b3e4915385aaa1783e0024caee2c454d9ce66542ffdb9ab0f0ef02f07b6d583a49b29b25a604832903f7909a0362bcd2260958cfe3fe045af4df2ea5c62c1da8 SHA512 f3b147706e1befb9d743bb57c7f8dc0a1ca8f244ed98069dfc757ee9d7281f097531bf7d1028d21ac798ee27bfb07b2ea6ac395dd0bc6caef4647fac88669833 DIST rustix-0.38.30.crate 374744 BLAKE2B 63ad9fe2e131259a008abdf7a19735d2e2401e62cceae7b449ec7cb6025e82f8d275c24caba5c23c19d9c37de9b3b9263e96db3eea6bba569eb6146f5b3dd62f SHA512 6ffcdc274f97e7dad9fb0a23fe948ec4041fff6ce915204fb46adc31b55646a5fd0ff3d8d6483673da2cc55044ba53af4d6e48ebeb8622e7ac027a5d390231de +DIST rustix-0.38.32.crate 376999 BLAKE2B 681ea50f5405b3a749a26a481995d3a85800378067734bb857e32e5d3764687b0da4b3749d227174440e432b374ae9ada154a8288e4353ca2ff1b851698477f4 SHA512 8f028b4df785aa78fc798f3e053d0a4fb9b3c552a47f66f52f1666f4c1324441be6581ed643c4ef0f56d92e1a078c6d3b45be183fc3df0ed1fc89de0d610cad6 DIST rustls-0.21.9.crate 283537 BLAKE2B 38db2b38f33223591571af2829017b64c1f319d03295281773a70c4419f1072cb4651e0d4969eb19be467fe6f09039eb0ede2b315b4cb047f0dd3ecf9352f8b1 SHA512 b2be86d232ee32855872bf08d17b325c91b90ef7557154cb9042b072060ef2183e3d106420fa20d3887d0981c810094fe801c66aad407d1bd735b1b443625069 DIST rustls-0.22.2.crate 332080 BLAKE2B e384541cb737c17af63b494b13533256ac15692124e64db7c3939e61c1097b5ee9ca96ab3e2336500d2554c9fcd8244e76a4f72d05e0791e16432f37ff8cdf39 SHA512 c25f71a3291420ccc33ad21f2495296d092f7d01365f1ce27c71343d9fb5f50c45024d84fdd25791d7ac9aa0dd53d6b7e25f31f35f9a7e823fac8117560ea6c1 DIST rustls-pemfile-2.0.0.crate 23799 BLAKE2B a2bf833c75ca986ce95dd1adbf42e4741411342c7b479c87afde6287d4f62002a0a6c2489f1a62a8d31f838d2966db3b6d0dc56a534c71f266d8496fe3015c24 SHA512 b96143a5861dfe71f6f2d3ffb4cc63e057a2e6ae8e72cdc5d59fd7b7f55ef58e4e025bd9600b3752a1bdd97e2c7ba1166400712f1c2ba787cbf64b2a57af3e1e @@ -557,4 +560,5 @@ DIST zeroize-1.7.0.crate 19039 BLAKE2B 2f94a5025f409bd2b96a456d2f78a34c6b05b5554 DIST zip-0.6.6.crate 65789 BLAKE2B acefc076297468d72cb20d8c6234fe5406875056fbf78fc0eac3ac430af78f320ed839f8683bd96fa1a03c457d6ac568d42bd703a902bc37bd126791d8b4c709 SHA512 affd46c17ceaa0545a155250dfd16756f8706dda43bae8a322ec0481dbfb41e4cf3166bf9662fc139ef9d0ab3b0f9f158535b21d2a61b21d38b8b2407813eeef EBUILD maturin-1.4.0.ebuild 11605 BLAKE2B 555a0f6926ed589a92c7e363eb50a58329b59bc948e9eebe6afb7b671fd2d3c1f7fb96866f060b69cc14a9ed696834f4a4ee69fb38142d215fa8ef66fc2c94f3 SHA512 c62100a408d4dd398b4a7ae9ae0bee7f9baac01df8dcca1266b8549b6a868ac18e3650e0b2078ccde250fdf690534bf35e77fc2855c1946c17e44eeb66104504 EBUILD maturin-1.5.0.ebuild 11161 BLAKE2B b382bbd1c57b08c9c791dcef5ae2b245da7283b529a5df936bac3efad0be06e06b681f207de2ed3bb26ece1b2ddb17707f7fca6f7002a44da9c474f37bbc58b1 SHA512 36a912e753060858893ca2fcb0ab0b8f907e66a95d6dc9aba89cd39e56320637051e48f95059219bd10bff825c525831e82965099d080b60203005ce0cd72edc +EBUILD maturin-1.5.1.ebuild 11136 BLAKE2B 0cb8abf9218bd6d9e14455c1cafb9012345c71d2f338ec32b13543da6439ec2ac47798adda44803d4f931bf8e5707f4ec48944076f79f46a01332b83be4b5360 SHA512 374da99292e72bca092fbac6c3e6e62e5b64b7116f1b4c4cda0b90dde36b6848ef5516669f407207a301cc3ef5ca5355f369f3de9b9608f2c30723f9f85d2872 MISC metadata.xml 431 BLAKE2B 15731479f56d8b819c60e8e5541d3c4720462c5a90b199b803097b208432b18cc0143f8cbee471ce81ffeb8b54846fdb61fad083e7507f4f6c3630ac628546ed SHA512 7431db948fd5ab520fb6cae76c7e7dbb2c7aef907d7cde21189d1bb17c686cca7f69a0b84470b1c5d90f672e80d30fbb56f37beec1da04ebfdf025015c099ae7 diff --git a/dev-util/maturin/maturin-1.5.1.ebuild b/dev-util/maturin/maturin-1.5.1.ebuild new file mode 100644 index 000000000000..51f827fe5892 --- /dev/null +++ b/dev-util/maturin/maturin-1.5.1.ebuild @@ -0,0 +1,543 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" + adler@1.0.2 + ahash@0.8.7 + aho-corasick@1.1.2 + allocator-api2@0.2.16 + anstream@0.6.11 + anstyle-parse@0.2.3 + anstyle-query@1.0.2 + anstyle-wincon@3.0.2 + anstyle@1.0.4 + anyhow@1.0.80 + autocfg@1.1.0 + base64@0.13.1 + base64@0.21.7 + bitflags@1.3.2 + bitflags@2.4.2 + block-buffer@0.10.4 + bstr@1.9.0 + byteorder@1.5.0 + bytesize@1.3.0 + bytes@1.5.0 + bzip2-sys@0.1.11+1.0.8 + bzip2@0.4.4 + cab@0.4.1 + camino@1.1.6 + cargo-config2@0.1.19 + cargo-options@0.7.2 + cargo-platform@0.1.6 + cargo-xwin@0.16.4 + cargo-zigbuild@0.18.3 + cargo_metadata@0.18.1 + cbindgen@0.26.0 + cc@1.0.88 + cfb@0.9.0 + cfg-if@1.0.0 + charset@0.1.3 + chumsky@0.9.3 + clap@4.4.18 + clap_builder@4.4.18 + clap_complete@4.4.9 + clap_complete_command@0.5.1 + clap_complete_nushell@0.1.11 + clap_derive@4.4.7 + clap_lex@0.6.0 + cli-table@0.4.7 + colorchoice@1.0.0 + configparser@3.0.4 + console@0.15.8 + content_inspector@0.2.4 + core-foundation-sys@0.8.6 + core-foundation@0.9.4 + cpufeatures@0.2.12 + crc32fast@1.3.2 + crossbeam-channel@0.5.11 + crossbeam-deque@0.8.5 + crossbeam-epoch@0.9.18 + crossbeam-utils@0.8.19 + crypto-common@0.1.6 + data-encoding@2.5.0 + deranged@0.3.11 + derivative@2.2.0 + dialoguer@0.11.0 + diff@0.1.13 + digest@0.10.7 + dirs-sys@0.4.1 + dirs@5.0.1 + dissimilar@1.0.7 + dunce@1.0.4 + either@1.9.0 + encode_unicode@0.3.6 + encoding_rs@0.8.33 + equivalent@1.0.1 + errno@0.3.8 + expect-test@1.4.1 + fastrand@2.0.1 + fat-macho@0.4.8 + filetime@0.2.23 + flate2@1.0.28 + fnv@1.0.7 + foreign-types-shared@0.1.1 + foreign-types@0.3.2 + form_urlencoded@1.2.1 + fs-err@2.11.0 + generic-array@0.14.7 + getrandom@0.2.12 + globset@0.4.14 + glob@0.3.1 + goblin@0.8.0 + hashbrown@0.12.3 + hashbrown@0.14.3 + heck@0.4.1 + home@0.5.9 + humantime-serde@1.1.1 + humantime@2.1.0 + idna@0.5.0 + ignore@0.4.22 + indexmap@1.9.3 + indexmap@2.2.3 + indicatif@0.17.7 + indoc@2.0.4 + instant@0.1.12 + itertools@0.11.0 + itertools@0.12.1 + itoa@1.0.10 + keyring@2.3.2 + lazy_static@1.4.0 + lddtree@0.3.4 + libc@0.2.153 + libredox@0.0.1 + linux-keyutils@0.2.4 + linux-raw-sys@0.4.13 + lock_api@0.4.11 + log@0.4.20 + lzxd@0.1.4 + mailparse@0.14.1 + matchers@0.1.0 + memchr@2.7.1 + mime@0.3.17 + mime_guess@2.0.4 + minijinja@1.0.12 + minimal-lexical@0.2.1 + miniz_oxide@0.7.1 + msi@0.7.0 + multipart@0.18.0 + native-tls@0.2.11 + nom@7.1.3 + normalize-line-endings@0.3.0 + normpath@1.1.1 + number_prefix@0.4.0 + num-conv@0.1.0 + nu-ansi-term@0.46.0 + once_cell@1.19.0 + openssl-macros@0.1.1 + openssl-probe@0.1.5 + openssl-sys@0.9.99 + openssl@0.10.63 + option-ext@0.2.0 + os_pipe@1.1.5 + overload@0.1.1 + parking_lot@0.12.1 + parking_lot_core@0.9.9 + paste@1.0.14 + path-slash@0.2.1 + pep440_rs@0.5.0 + pep508_rs@0.4.2 + percent-encoding@2.3.1 + pin-project-lite@0.2.13 + pkg-config@0.3.29 + plain@0.2.3 + platform-info@2.0.2 + portable-atomic@1.6.0 + powerfmt@0.2.0 + ppv-lite86@0.2.17 + pretty_assertions@1.4.0 + proc-macro2@1.0.78 + psm@0.1.21 + pyproject-toml@0.10.0 + python-pkginfo@0.6.0 + quoted_printable@0.4.8 + quoted_printable@0.5.0 + quote@1.0.35 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rayon-core@1.12.1 + rayon@1.8.1 + redox_syscall@0.4.1 + redox_users@0.4.4 + regex-automata@0.1.10 + regex-automata@0.4.5 + regex-syntax@0.6.29 + regex-syntax@0.8.2 + regex@1.10.3 + rfc2047-decoder@0.2.2 + ring@0.17.7 + rustc_version@0.4.0 + rustix@0.38.32 + rustls-pemfile@2.1.0 + rustls-pki-types@1.3.1 + rustls-webpki@0.102.1 + rustls@0.22.2 + rustversion@1.0.14 + ryu@1.0.16 + same-file@1.0.6 + schannel@0.1.23 + scopeguard@1.2.0 + scroll@0.12.0 + scroll_derive@0.12.0 + security-framework-sys@2.9.1 + security-framework@2.9.2 + semver@1.0.22 + serde@1.0.197 + serde_derive@1.0.197 + serde_json@1.0.114 + serde_spanned@0.6.5 + sha2@0.10.8 + sharded-slab@0.1.7 + shell-words@1.1.0 + shlex@1.3.0 + similar@2.4.0 + smallvec@1.13.1 + smawk@0.3.2 + snapbox-macros@0.3.8 + snapbox@0.5.7 + socks@0.3.4 + spin@0.9.8 + stacker@0.1.15 + static_assertions@1.1.0 + strsim@0.10.0 + subtle@2.5.0 + syn@1.0.109 + syn@2.0.48 + target-lexicon@0.12.14 + tar@0.4.40 + tempfile@3.9.0 + termcolor@1.4.1 + terminal_size@0.3.0 + textwrap@0.16.1 + thiserror-impl@1.0.57 + thiserror@1.0.57 + thread_local@1.1.7 + time-core@0.1.2 + time-macros@0.2.17 + time@0.3.34 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + toml@0.5.11 + toml@0.8.10 + toml_datetime@0.6.5 + toml_edit@0.22.6 + tracing-attributes@0.1.27 + tracing-core@0.1.32 + tracing-log@0.2.0 + tracing-serde@0.1.3 + tracing-subscriber@0.3.18 + tracing@0.1.40 + trycmd@0.15.0 + twox-hash@1.6.3 + typenum@1.17.0 + unicase@2.7.0 + unicode-bidi@0.3.15 + unicode-ident@1.0.12 + unicode-linebreak@0.1.5 + unicode-normalization@0.1.22 + unicode-width@0.1.11 + unicode-xid@0.2.4 + unscanny@0.1.0 + untrusted@0.9.0 + ureq@2.9.6 + urlencoding@2.1.3 + url@2.5.0 + utf8parse@0.2.1 + uuid@1.7.0 + valuable@0.1.0 + vcpkg@0.2.15 + versions@5.0.1 + version_check@0.9.4 + wait-timeout@0.2.0 + walkdir@2.4.0 + wasi@0.11.0+wasi-snapshot-preview1 + webpki-roots@0.26.0 + which@5.0.0 + which@6.0.0 + wild@2.2.1 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.6 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-targets@0.48.5 + windows-targets@0.52.0 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.0 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.0 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.0 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.0 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.0 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.0 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.0 + winnow@0.6.2 + xattr@1.3.1 + xwin@0.5.0 + yansi@0.5.1 + zerocopy-derive@0.7.32 + zerocopy@0.7.32 + zeroize@1.7.0 + zip@0.6.6 +" +# additional crates used by test-crates/* test packages, +# `grep test-crates tests/run.rs` to see which are needed +CRATES_TEST=" + anstream@0.3.2 + anstyle-parse@0.2.1 + anstyle-query@1.0.0 + anstyle-wincon@1.0.2 + anstyle@1.0.1 + anyhow@1.0.72 + askama@0.12.0 + askama_derive@0.12.1 + askama_escape@0.10.3 + basic-toml@0.1.4 + bincode@1.3.3 + bitflags@2.4.0 + bytes@1.4.0 + cargo-platform@0.1.3 + cargo_metadata@0.15.4 + cc@1.0.73 + cc@1.0.81 + cc@1.0.82 + cc@1.0.83 + clap@4.3.21 + clap_builder@4.3.21 + clap_derive@4.3.12 + clap_lex@0.5.0 + errno-dragonfly@0.1.2 + errno@0.3.2 + fs-err@2.9.0 + getrandom@0.2.10 + hermit-abi@0.3.2 + is-terminal@0.4.9 + itoa@1.0.9 + libc@0.2.134 + libc@0.2.147 + libc@0.2.149 + linux-raw-sys@0.4.10 + lock_api@0.4.9 + lock_api@0.4.10 + log@0.4.19 + memchr@2.5.0 + memoffset@0.9.0 + once_cell@1.15.0 + once_cell@1.18.0 + oneshot-uniffi@0.1.6 + parking_lot_core@0.9.3 + parking_lot_core@0.9.8 + proc-macro2@1.0.66 + proc-macro2@1.0.69 + proc-macro2@1.0.70 + pyo3-build-config@0.18.3 + pyo3-build-config@0.20.0 + pyo3-build-config@0.20.2 + pyo3-ffi@0.18.3 + pyo3-ffi@0.20.0 + pyo3-ffi@0.20.2 + pyo3-macros-backend@0.20.0 + pyo3-macros-backend@0.20.2 + pyo3-macros@0.20.0 + pyo3-macros@0.20.2 + pyo3@0.20.0 + pyo3@0.20.2 + python3-dll-a@0.2.6 + python3-dll-a@0.2.9 + quote@1.0.32 + quote@1.0.33 + redox_syscall@0.2.16 + redox_syscall@0.3.5 + rustix@0.38.21 + ryu@1.0.15 + scopeguard@1.1.0 + semver@1.0.18 + serde@1.0.182 + serde@1.0.183 + serde_derive@1.0.182 + serde_derive@1.0.183 + serde_json@1.0.104 + siphasher@0.3.10 + smallvec@1.10.0 + smallvec@1.11.0 + smallvec@1.11.1 + syn@2.0.28 + syn@2.0.32 + syn@2.0.40 + target-lexicon@0.12.7 + target-lexicon@0.12.11 + target-lexicon@0.12.12 + textwrap@0.16.0 + thiserror-impl@1.0.44 + thiserror@1.0.44 + unicase@2.6.0 + unicode-ident@1.0.5 + unicode-ident@1.0.11 + uniffi@0.26.1 + uniffi_bindgen@0.26.1 + uniffi_build@0.26.1 + uniffi_checksum_derive@0.26.1 + uniffi_core@0.26.1 + uniffi_macros@0.26.1 + uniffi_meta@0.26.1 + uniffi_testing@0.26.1 + uniffi_udl@0.26.1 + unindent@0.2.3 + weedle2@5.0.0 + windows-sys@0.36.1 + windows-targets@0.48.1 + windows_aarch64_gnullvm@0.48.0 + windows_aarch64_msvc@0.36.1 + windows_aarch64_msvc@0.48.0 + windows_i686_gnu@0.36.1 + windows_i686_gnu@0.48.0 + windows_i686_msvc@0.36.1 + windows_i686_msvc@0.48.0 + windows_x86_64_gnullvm@0.48.0 + windows_x86_64_gnu@0.36.1 + windows_x86_64_gnu@0.48.0 + windows_x86_64_msvc@0.36.1 + windows_x86_64_msvc@0.48.0 +" +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..12} ) +inherit cargo distutils-r1 shell-completion toolchain-funcs + +DESCRIPTION="Build and publish crates with pyo3, rust-cpython and cffi bindings" +HOMEPAGE="https://www.maturin.rs/" +SRC_URI=" + https://github.com/PyO3/maturin/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz + ${CARGO_CRATE_URIS} + test? ( $(cargo_crate_uris ${CRATES_TEST}) ) +" + +# note: ring is unused, so openssl license can be skipped +LICENSE="|| ( Apache-2.0 MIT ) doc? ( CC-BY-4.0 OFL-1.1 )" +LICENSE+=" + 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD ISC MIT MPL-2.0 + Unicode-DFS-2016 +" # crates +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="doc +ssl test" +RESTRICT="!test? ( test )" + +RDEPEND="$(python_gen_cond_dep 'dev-python/tomli[${PYTHON_USEDEP}]' 3.10)" +DEPEND="ssl? ( dev-libs/openssl:= )" +BDEPEND=" + virtual/pkgconfig + doc? ( app-text/mdbook ) + test? ( + ${RDEPEND} + $(python_gen_cond_dep 'dev-python/cffi[${PYTHON_USEDEP}]' 'python*') + dev-python/boltons[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-vcs/git + ) +" +RDEPEND+=" ${DEPEND}" + +QA_FLAGS_IGNORED="usr/bin/${PN}" + +src_prepare() { + distutils-r1_src_prepare + + # we build the Rust executable (just once) via cargo_src_compile + sed -i -e '/setuptools_rust/d' -e '/rust_extensions/d' setup.py || die + + if use test; then + # used to prevent use of network during tests, and silence pip + # if it finds unrelated issues with system packages (bug #913613) + cat > "${T}"/pip.conf <<-EOF || die + [global] + quiet = 2 + + [install] + no-index = yes + no-dependencies = yes + EOF + + # used by *git_sdist_generator tests + git init -q || die + git config --global user.email "larry@gentoo.org" || die + git config --global user.name "Larry the Cow" || die + git add . || die + git commit -qm init || die + fi +} + +src_configure() { + export OPENSSL_NO_VENDOR=1 + + local myfeatures=( + # like release.yml + native-tls for better platform support than rustls + full + password-storage + $(usev ssl native-tls) + ) + + cargo_src_configure +} + +python_compile_all() { + cargo_src_compile + + use !doc || mdbook build -d html guide || die + + if ! tc-is-cross-compiler; then + local maturin=target/$(usex debug{,} release)/maturin + ${maturin} completions bash > "${T}"/${PN} || die + ${maturin} completions fish > "${T}"/${PN}.fish || die + ${maturin} completions zsh > "${T}"/_${PN} || die + else + ewarn "shell completion files were skipped due to cross-compilation" + fi +} + +python_test() { + local -x COLUMNS=100 # match clap_builder crate default + local -x MATURIN_TEST_PYTHON=${EPYTHON} + local -x PIP_CONFIG_FILE=${T}/pip.conf + local -x VIRTUALENV_SYSTEM_SITE_PACKAGES=1 + + local skip=( + # avoid need for wasm over a single hello world test + --skip integration_wasm_hello_world + # fragile depending on rust version, also wants libpypy*-c.so for pypy + --skip pyo3_no_extension_module + ) + + cargo_src_test -- "${skip[@]}" +} + +python_install_all() { + cargo_src_install + + dodoc Changelog.md README.md + use doc && dodoc -r guide/html + + if ! tc-is-cross-compiler; then + dobashcomp "${T}"/${PN} + dofishcomp "${T}"/${PN}.fish + dozshcomp "${T}"/_${PN} + fi +} |