summaryrefslogtreecommitdiff
path: root/dev-python/uv
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-16 10:53:11 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-16 10:53:11 -0500
commit8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b (patch)
treebb1e83c18d1cc77cdebfc5aeb9b12ad39c9787b5 /dev-python/uv
parentf997c3ee588099e4f43e9ec845935868e3e60b8e (diff)
downloadbaldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.tar.gz
baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.tar.xz
baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.zip
Adding metadata
Diffstat (limited to 'dev-python/uv')
-rw-r--r--dev-python/uv/Manifest20
-rw-r--r--dev-python/uv/uv-0.11.10.ebuild164
-rw-r--r--dev-python/uv/uv-0.11.11.ebuild164
-rw-r--r--dev-python/uv/uv-0.11.12.ebuild2
-rw-r--r--dev-python/uv/uv-0.11.13.ebuild164
-rw-r--r--dev-python/uv/uv-0.11.14.ebuild2
-rw-r--r--dev-python/uv/uv-0.11.15.ebuild164
-rw-r--r--dev-python/uv/uv-0.11.20.ebuild (renamed from dev-python/uv/uv-0.11.18.ebuild)0
-rw-r--r--dev-python/uv/uv-0.11.21.ebuild (renamed from dev-python/uv/uv-0.11.17.ebuild)2
-rw-r--r--dev-python/uv/uv-0.11.7.ebuild164
-rw-r--r--dev-python/uv/uv-0.11.8.ebuild164
11 files changed, 7 insertions, 1003 deletions
diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest
index 4f68f00d0969..9929d6ecd95e 100644
--- a/dev-python/uv/Manifest
+++ b/dev-python/uv/Manifest
@@ -1,24 +1,12 @@
-DIST uv-0.11.10-crates.tar.xz 46797580 BLAKE2B 69c193a4d0d8b81b7ee504ad4439c36474b4bbfd91387b29a498f5cdc1529b3d52d0bbd2249e1ec4163914f63b4c139f68762396ed61e3480e5a813089277d59 SHA512 dbde92b55820f8b507f2c87d35917cf9e43da9add81046c2715a8e542e2d88d5916d90e7c07e9d1dc8331ca7b098e38cc5bcbac0ef66ceb81c5a68d9146bb35b
-DIST uv-0.11.10.gh.tar.gz 5252516 BLAKE2B 81502332be0bc84c89714a61c4befef787f5191bb0aa56f6fe7aec08d3f5df7ee0df44bace6c1bfdd34b7b2dd65a42f621888b240688495526bdcea86fd5879f SHA512 d969396c1cf0793a4589aa8c9c47b100d3e1ca8bdd55bd95f3bdbd1164c67f58678c06190f35e22248d173f6ddc2b24cbae8c5888f44dd2cc6a1a7e1f0eeea16
-DIST uv-0.11.11-crates.tar.xz 46797580 BLAKE2B 69c193a4d0d8b81b7ee504ad4439c36474b4bbfd91387b29a498f5cdc1529b3d52d0bbd2249e1ec4163914f63b4c139f68762396ed61e3480e5a813089277d59 SHA512 dbde92b55820f8b507f2c87d35917cf9e43da9add81046c2715a8e542e2d88d5916d90e7c07e9d1dc8331ca7b098e38cc5bcbac0ef66ceb81c5a68d9146bb35b
-DIST uv-0.11.11.gh.tar.gz 5253331 BLAKE2B 4a866f3838bd60630e3ff47ea8e6c754fd986aa242bc9c355f071bed321385d9ef6049a7663777027d49b9fbd80cf0793b2ab0271500d7305873574332b5a48e SHA512 f9129868fb8d343d63e4080deb0e71e71fdb5c71e2ea4f17d05d0f0c20338daf86f521895e8bd69795ffad36ddc94e8cf5ee8fbbb4eb5fdc0692524b21eef9c6
DIST uv-0.11.12-crates.tar.xz 46797580 BLAKE2B 69c193a4d0d8b81b7ee504ad4439c36474b4bbfd91387b29a498f5cdc1529b3d52d0bbd2249e1ec4163914f63b4c139f68762396ed61e3480e5a813089277d59 SHA512 dbde92b55820f8b507f2c87d35917cf9e43da9add81046c2715a8e542e2d88d5916d90e7c07e9d1dc8331ca7b098e38cc5bcbac0ef66ceb81c5a68d9146bb35b
DIST uv-0.11.12.gh.tar.gz 5259600 BLAKE2B bf43a4b38e37a45d73820e3d445ac38a56314cefcdc0a734cad5b93200ce9e4b689c8aa3125eb34d8aa150ff4b2b94b786dd518a49aacf6d6ce655f66e9506f9 SHA512 a23c95152f0515645174b85ed8887fe29e3e56d457aaad7992cfe5a59b95e527348ebd7e0ce9d23cf589f20849326a876ae61ed9b10324a48b8021077cd264fe
-DIST uv-0.11.13-crates.tar.xz 46795796 BLAKE2B d087b947c1c673bffb4095ba3ccdd24251a91e382d702511665af5b4d8a38acc3ebd386405a2f98c256524f71d71ad859aead336d3db73d46ae6ca59dc182d81 SHA512 879dc13c29323b7cc7b84331cab40f6ac0519e564024c2ce9e07df2be5d79be0d3ba6615a98bfba976bd108aedae5953997cc86c94c9907ecb16f8b97e7b891f
-DIST uv-0.11.13.gh.tar.gz 5260441 BLAKE2B 36ac78b2857d39b5dc6e24617ed44a0526039723bb5c078713536156524709bca4a8b82f6a9fefa1d66b3e08d6f5c7d2a16ab17c5266d18518e68e3583bd48d0 SHA512 04c6451c1250bf997cd412906d09195234513a160694e31f1dce5dbd04184dfed3307a27948fc32656050cc0d089f05d3f80e31b2ce942e1e93a6de032f90e42
DIST uv-0.11.14-crates.tar.xz 46820736 BLAKE2B 198e55be6417a2144cfba292ab943eb881bb2d3d99db259cb2cad2199d16f2eef4cc372d4b15bb5a78c6faf90b23163b2fc6366b6a88c0c089ff7113d62d80c7 SHA512 108f22ce909df5caac55e4952e1483222da0a65d64b9969a8c3224923cdf3528ce89f51a9c0a89542e4d536dd72c896a94764b9daac3376799445100705c4db1
DIST uv-0.11.14.gh.tar.gz 5268861 BLAKE2B 7cea3f62c4756cd961efdf1d949d0dee469fb8ab0475f8f1149756c8ab1a4f767e5c88aa29011f8f6f862d48733ce7d8bb64d7b742d792dad2fd04c1c7d365c1 SHA512 375efa7d4afb3128e5d833f91d9fe91439d0c45c607996dae0cf25bf9b8d1a164858dccd00875020b88377fffecabb6afab8353ef0b7e393c83d64ed2320d3c2
-DIST uv-0.11.15-crates.tar.xz 44930344 BLAKE2B 7935f68e43735834ac15c9a99107aa726db61e4ab1b333ebc6dfce50731e7c8497fd4a6247e500b7d2bbe2b7d884921942f5f741d57e045d2ff0623aaccf2f22 SHA512 466eff5799ec190d30b27671fbd3c1f637695b0bc3663bc94fefcdb431042b28c8562fa61e2c09bce77f21755680050441caa95ab50e16f2198e61ef91087638
-DIST uv-0.11.15.gh.tar.gz 5298620 BLAKE2B f11067be05d6d4fd40e1cc13ea37933cb87908fec6ff33c0c14d43d304ff4b09ebb1ec4c3c6bb0f761ed0427be5964c088d81def2b6ecb4f906cf2c40c4c7cc1 SHA512 af427dfeaa1112642c46812f8b5a3b0b56e00fe5d308f3c5d59aa18a6e14f24254ea3041b6605967f742dd11ac85833c08d7552fb8de4bc4e8f8832e39236d7c
DIST uv-0.11.16-crates.tar.xz 44976320 BLAKE2B 4d044d570cb5cd24ab59f2c66e82f1b8b3b204437bccd7c3bacf9b8b43c6a122f7a3cb96f017a21c53a051127a8e6d2ac66e36d5fb9c6d3cd16067fe0ed6d57d SHA512 dc817368a3fdb99e78be2e4140a3aab8bdca23122b66a2ca459da33cf83f55f8047e884568660d61942b4bba80baf3d22a4ca1331211a597b2ce79a8ce835901
DIST uv-0.11.16.gh.tar.gz 5318655 BLAKE2B 3b818282877d727ea4d6e176157ece28c0cc97525de49e523934b57e0a35399c8d2fb8642261565a9beb6f7f13d0776806207803569229e9445633822bd5aa0b SHA512 c830b9808eeedbfdcbc8ee75ba978f9309b89f1740aa3d363cc661c42ea066b87d3d21c8cc4ccf215e8233ea3b4c2669537ffe5955cf68adf7367755428618bc
-DIST uv-0.11.17-crates.tar.xz 44959296 BLAKE2B 67b39c5547e6809b4788d7945d635e5a793632be67b60c7767e8ec9157a3fbb3c1321ee7d2f7d091a990b7be2ed06335ba8c0dd487a03fe6b16a8954191d1aac SHA512 c45ebc83cefedbea71d5a5d92650cea377f5fc53c53eba2d1554b35b8038624ba7d00378961d41145601b54a5b2b8d8da3e5e68348ecf3a244146419ae05bc6e
-DIST uv-0.11.17.gh.tar.gz 5349885 BLAKE2B b38fd4e6a4f0fc33f3f8f63ec235e1a586fd481ca600de3869366ac257fb6ef2a98da554b8ee06be03dd883d53d24de061cd771780006c0bfce5ea501b3414d0 SHA512 ff5aaa75585fb23d4de034e0519b333e031551e360863a9de6be551f1f8f90afd528c16ae7699b303bd4567b93cf6d322c33472bb278b9311e83106cf783450e
-DIST uv-0.11.18-crates.tar.xz 44929200 BLAKE2B f72160cef10b9a6e8e7cec3ac967a8fedc13c78eb1e2b4a65ec44b9e53f4bd08d653da7c4910d9cf978273fcce64dee378b9afe12f7736e795407f39df8d81c3 SHA512 bc8d0535f1b45d50996ffc422a09133c05f270fb01dc2c227d9fb3ba04ebd1153b98638cbf5ad4b4e2d8725508500c3052e3dd5f6951a97d8df4eab5c574c631
-DIST uv-0.11.18.gh.tar.gz 5355670 BLAKE2B c826f9f96fcc62015ea51fe6836f07057156777b6808228eaaccd680d121cf78515f722b82801389d5189c5332b4e9b4bc9a7df6351ee908835b5031b0479378 SHA512 59ef43479bee5cc36dc5966ef5ec7bacb22e17d831ee2a0f8246d73c432cd0da76d230882afc08b31b610f92c333547285af420597f3f696a8acc30107cb2141
DIST uv-0.11.19-crates.tar.xz 44929200 BLAKE2B f72160cef10b9a6e8e7cec3ac967a8fedc13c78eb1e2b4a65ec44b9e53f4bd08d653da7c4910d9cf978273fcce64dee378b9afe12f7736e795407f39df8d81c3 SHA512 bc8d0535f1b45d50996ffc422a09133c05f270fb01dc2c227d9fb3ba04ebd1153b98638cbf5ad4b4e2d8725508500c3052e3dd5f6951a97d8df4eab5c574c631
DIST uv-0.11.19.gh.tar.gz 5374193 BLAKE2B 7a18db84b7a6658547e2eab2de5de82f7e678bccf305a04ec7348b79c4d972b8723c7ea1afd12e04077a577e8bba72db5e089f85d1626ea5745204f75f835a00 SHA512 053c0372ded66ec8bcb109524ac67cc035722573ab4ac1a05ffcde6a126f4b67515901e45978b535e3051976effbdf89b99ebb59b62174389e3097ad058eda04
-DIST uv-0.11.7-crates.tar.xz 46854096 BLAKE2B b4fc06608d3c68910a48af598803b934017787bbf14599f66fa43096aa3ef2cdeca8ee35230ea3b8446da044a29f0b476f58f224732959e8017720e79a0d7cd8 SHA512 9cdcc1f565a3bf4d3490296710a7821e3760164d723057d591bf923e093aac50f51ad209ceed6f8c4e8fd2104ee90363750017bb56de2c76fca5dda7fcee815b
-DIST uv-0.11.7.gh.tar.gz 5220735 BLAKE2B aae6d54fb59def30a517b4b4a1df524af346128a601e8a016dd9f4df3c49733c835e9259a85321f7dd1bdbcad93e6c53a5568521419e213a977653c9d48bde81 SHA512 f9b34b628ac035cacb36bd9cd7276d28c59f768360a197f4c1c036a81651aa6c40b17656c4b5230cc19b496c415687fc99f05bf4c66459e5457f5cef105b8d7e
-DIST uv-0.11.8-crates.tar.xz 46751616 BLAKE2B 1b7772787035387868d4ec4ae3383c5e04ec70daaa25241bbdaf1699b3ee24dced7c5035a764be6c9179a6a94c4f21d1883ee7f57ce3f6d0184900ee3d581c40 SHA512 60a717024179a76c69a7dcbc58733854148ded16eef07b0607bdc37d714ac754869eec6ac48528c03782645f1c0a8692f8ec1d4997e2ff9b09748224ac96f897
-DIST uv-0.11.8.gh.tar.gz 5237637 BLAKE2B 651be6d1d19775ce5ee65fc7bf0cb35d101eaaa438649682e3580131f80af9de403027cefeea511bf5e49b1ce2921ea5e06da350530d546128f4827477abaf2e SHA512 204602c75596105fa15d869d9bd1fa28e527dca654364ff76c4c764aea0140293e92bdff5c2c4a0115fa9ec0d484ccfc8bed60be17a2f5b578b3efcc46007cd3
+DIST uv-0.11.20-crates.tar.xz 43509336 BLAKE2B 2a1fcc003c4c2cb927225a5beec44239d51bfa5b10d67aa6af8410ba992d8d69911942cfa8227fe1e0cf2b9ce713bebd9ca616b173f1c13e15fa8f0e612ef59c SHA512 13abc4edbec4f7f61bb4e942f2ef2b05364462f35b521610deeffb3a3ef64155ab40a3679979556f7e14feb1834ca85e6f1d49d29a7a63a0d4dc64b29d40edf8
+DIST uv-0.11.20.gh.tar.gz 5398552 BLAKE2B 1063c7552809b21741523429c1966523ec666fee28143a555424b815ed51aadfd9139e5497ab6373b0192e7c1c449d9f021a85e08b6ebe4b1943ad9be848068b SHA512 abf8756e80cf13e7f1a752c6c38e2c340fbecc2a9d12209a5796fe076f3b4706e95757126b1acaa330b86c79711e302a69bdf1fdde9b911a92ecdeb70ed3ee81
+DIST uv-0.11.21-crates.tar.xz 43509336 BLAKE2B 2a1fcc003c4c2cb927225a5beec44239d51bfa5b10d67aa6af8410ba992d8d69911942cfa8227fe1e0cf2b9ce713bebd9ca616b173f1c13e15fa8f0e612ef59c SHA512 13abc4edbec4f7f61bb4e942f2ef2b05364462f35b521610deeffb3a3ef64155ab40a3679979556f7e14feb1834ca85e6f1d49d29a7a63a0d4dc64b29d40edf8
+DIST uv-0.11.21.gh.tar.gz 5420532 BLAKE2B 87bf0bc0064398dcbd9848589edcef0ec60aba55fe6dc678742caa6722738d08485edf368738ba3f83e12a13fc29a799b08d4ad3ab54de82a1b543f0c83e1b45 SHA512 c1057ff5e2387dc190d12c71fbdfddca3d99e03d2b00065f0077f9c912dbcb19ba8b81cbcd874c31f613a5ab2fafef77f6034589ccab5ee33940a6eb72714598
diff --git a/dev-python/uv/uv-0.11.10.ebuild b/dev-python/uv/uv-0.11.10.ebuild
deleted file mode 100644
index 030c2e92591f..000000000000
--- a/dev-python/uv/uv-0.11.10.ebuild
+++ /dev/null
@@ -1,164 +0,0 @@
-# Copyright 2024-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-CRATES="
-"
-RUST_MIN_VER="1.93.0"
-
-inherit cargo check-reqs
-
-CRATE_PV=${PV}
-DESCRIPTION="A Python package installer and resolver, written in Rust"
-HOMEPAGE="
- https://github.com/astral-sh/uv/
- https://pypi.org/project/uv/
-"
-# pypi sdist misses scripts/, needed for tests
-SRC_URI="
- https://github.com/astral-sh/uv/archive/${PV}.tar.gz
- -> ${P}.gh.tar.gz
- ${CARGO_CRATE_URIS}
-"
-if [[ ${PKGBUMPING} != ${PVR} ]]; then
- SRC_URI+="
- https://github.com/gentoo-crate-dist/uv/releases/download/${CRATE_PV}/uv-${CRATE_PV}-crates.tar.xz
- "
-fi
-
-# most of the code
-LICENSE="|| ( Apache-2.0 MIT )"
-# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below
-# Dependent crate licenses
-LICENSE+="
- 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0
- CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016
- ZLIB BZIP2
-"
-# ring crate
-LICENSE+=" openssl"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86"
-IUSE="test"
-RESTRICT="test"
-PROPERTIES="test_network"
-
-DEPEND="
- app-arch/bzip2:=
- app-arch/xz-utils:=
- app-arch/zstd:=
-"
-RDEPEND="
- ${DEPEND}
-"
-BDEPEND="
- virtual/pkgconfig
- test? (
- dev-lang/python:3.9
- dev-lang/python:3.10
- dev-lang/python:3.11
- dev-lang/python:3.12
- dev-lang/python:3.13
- !!~dev-python/uv-0.5.0
- )
-"
-
-QA_FLAGS_IGNORED="usr/bin/.*"
-
-check_space() {
- local CHECKREQS_DISK_BUILD=3G
- use debug && CHECKREQS_DISK_BUILD=9G
- check-reqs_pkg_setup
-}
-
-pkg_pretend() {
- check_space
-}
-
-pkg_setup() {
- check_space
- rust_pkg_setup
-}
-
-src_prepare() {
- default
-
- # force thin lto, makes build much faster and less memory hungry
- # (i.e. makes it possible to actually build uv on 32-bit PPC)
- sed -i -e '/lto/s:fat:thin:' Cargo.toml || die
-
- # enable system libraries where supported
- export ZSTD_SYS_USE_PKG_CONFIG=1
- # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys?
-
- # remove unbundled sources, just in case
- find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die
-
- # bzip2-sys requires a pkg-config file
- # https://github.com/alexcrichton/bzip2-rs/issues/104
- mkdir "${T}/pkg-config" || die
- export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}
- cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die
- Name: bzip2
- Version: 9999
- Description:
- Libs: -lbz2
- EOF
-
- # uv is now forcing bundled liblzma, sigh
- sed -i -e '/xz/s:"static"::' Cargo.toml || die
-}
-
-src_configure() {
- local myfeatures=(
- test-git
- test-pypi
- test-python
- )
-
- cargo_src_configure --no-default-features
-}
-
-src_compile() {
- cd crates/uv || die
- cargo_src_compile
-}
-
-src_test() {
- cd crates/uv || die
- cargo_src_test --no-fail-fast
-}
-
-src_install() {
- cd crates/uv || die
- cargo_src_install
-
- insinto /etc/xdg/uv
- newins - uv.toml <<-EOF || die
- # These defaults match Fedora, see:
- # https://src.fedoraproject.org/rpms/uv/pull-request/18
-
- # By default ("automatic"), uv downloads missing Python versions
- # automatically and keeps them in the user's home directory.
- # Disable that to make downloading opt-in, and especially
- # to avoid unnecessarily fetching custom Python when the distro
- # package would be preferable. Python builds can still be
- # downloaded manually via "uv python install".
- #
- # https://docs.astral.sh/uv/reference/settings/#python-downloads
- python-downloads = "manual"
-
- # By default ("managed"), uv always prefers self-installed
- # Python versions over the system Python, independently
- # of versions. Since we generally expect users to use that
- # to install old Python versions not in ::gentoo anymore,
- # this effectively means that uv would end up preferring very
- # old Python versions over the newer ones that are provided
- # by the system. Default to using the system versions to avoid
- # this counter-intuitive behavior.
- #
- # https://docs.astral.sh/uv/reference/settings/#python-preference
- python-preference = "system"
- EOF
-}
diff --git a/dev-python/uv/uv-0.11.11.ebuild b/dev-python/uv/uv-0.11.11.ebuild
deleted file mode 100644
index 030c2e92591f..000000000000
--- a/dev-python/uv/uv-0.11.11.ebuild
+++ /dev/null
@@ -1,164 +0,0 @@
-# Copyright 2024-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-CRATES="
-"
-RUST_MIN_VER="1.93.0"
-
-inherit cargo check-reqs
-
-CRATE_PV=${PV}
-DESCRIPTION="A Python package installer and resolver, written in Rust"
-HOMEPAGE="
- https://github.com/astral-sh/uv/
- https://pypi.org/project/uv/
-"
-# pypi sdist misses scripts/, needed for tests
-SRC_URI="
- https://github.com/astral-sh/uv/archive/${PV}.tar.gz
- -> ${P}.gh.tar.gz
- ${CARGO_CRATE_URIS}
-"
-if [[ ${PKGBUMPING} != ${PVR} ]]; then
- SRC_URI+="
- https://github.com/gentoo-crate-dist/uv/releases/download/${CRATE_PV}/uv-${CRATE_PV}-crates.tar.xz
- "
-fi
-
-# most of the code
-LICENSE="|| ( Apache-2.0 MIT )"
-# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below
-# Dependent crate licenses
-LICENSE+="
- 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0
- CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016
- ZLIB BZIP2
-"
-# ring crate
-LICENSE+=" openssl"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86"
-IUSE="test"
-RESTRICT="test"
-PROPERTIES="test_network"
-
-DEPEND="
- app-arch/bzip2:=
- app-arch/xz-utils:=
- app-arch/zstd:=
-"
-RDEPEND="
- ${DEPEND}
-"
-BDEPEND="
- virtual/pkgconfig
- test? (
- dev-lang/python:3.9
- dev-lang/python:3.10
- dev-lang/python:3.11
- dev-lang/python:3.12
- dev-lang/python:3.13
- !!~dev-python/uv-0.5.0
- )
-"
-
-QA_FLAGS_IGNORED="usr/bin/.*"
-
-check_space() {
- local CHECKREQS_DISK_BUILD=3G
- use debug && CHECKREQS_DISK_BUILD=9G
- check-reqs_pkg_setup
-}
-
-pkg_pretend() {
- check_space
-}
-
-pkg_setup() {
- check_space
- rust_pkg_setup
-}
-
-src_prepare() {
- default
-
- # force thin lto, makes build much faster and less memory hungry
- # (i.e. makes it possible to actually build uv on 32-bit PPC)
- sed -i -e '/lto/s:fat:thin:' Cargo.toml || die
-
- # enable system libraries where supported
- export ZSTD_SYS_USE_PKG_CONFIG=1
- # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys?
-
- # remove unbundled sources, just in case
- find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die
-
- # bzip2-sys requires a pkg-config file
- # https://github.com/alexcrichton/bzip2-rs/issues/104
- mkdir "${T}/pkg-config" || die
- export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}
- cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die
- Name: bzip2
- Version: 9999
- Description:
- Libs: -lbz2
- EOF
-
- # uv is now forcing bundled liblzma, sigh
- sed -i -e '/xz/s:"static"::' Cargo.toml || die
-}
-
-src_configure() {
- local myfeatures=(
- test-git
- test-pypi
- test-python
- )
-
- cargo_src_configure --no-default-features
-}
-
-src_compile() {
- cd crates/uv || die
- cargo_src_compile
-}
-
-src_test() {
- cd crates/uv || die
- cargo_src_test --no-fail-fast
-}
-
-src_install() {
- cd crates/uv || die
- cargo_src_install
-
- insinto /etc/xdg/uv
- newins - uv.toml <<-EOF || die
- # These defaults match Fedora, see:
- # https://src.fedoraproject.org/rpms/uv/pull-request/18
-
- # By default ("automatic"), uv downloads missing Python versions
- # automatically and keeps them in the user's home directory.
- # Disable that to make downloading opt-in, and especially
- # to avoid unnecessarily fetching custom Python when the distro
- # package would be preferable. Python builds can still be
- # downloaded manually via "uv python install".
- #
- # https://docs.astral.sh/uv/reference/settings/#python-downloads
- python-downloads = "manual"
-
- # By default ("managed"), uv always prefers self-installed
- # Python versions over the system Python, independently
- # of versions. Since we generally expect users to use that
- # to install old Python versions not in ::gentoo anymore,
- # this effectively means that uv would end up preferring very
- # old Python versions over the newer ones that are provided
- # by the system. Default to using the system versions to avoid
- # this counter-intuitive behavior.
- #
- # https://docs.astral.sh/uv/reference/settings/#python-preference
- python-preference = "system"
- EOF
-}
diff --git a/dev-python/uv/uv-0.11.12.ebuild b/dev-python/uv/uv-0.11.12.ebuild
index 030c2e92591f..d4afa9343251 100644
--- a/dev-python/uv/uv-0.11.12.ebuild
+++ b/dev-python/uv/uv-0.11.12.ebuild
@@ -39,7 +39,7 @@ LICENSE+="
# ring crate
LICENSE+=" openssl"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86"
+KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 x86"
IUSE="test"
RESTRICT="test"
PROPERTIES="test_network"
diff --git a/dev-python/uv/uv-0.11.13.ebuild b/dev-python/uv/uv-0.11.13.ebuild
deleted file mode 100644
index 030c2e92591f..000000000000
--- a/dev-python/uv/uv-0.11.13.ebuild
+++ /dev/null
@@ -1,164 +0,0 @@
-# Copyright 2024-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-CRATES="
-"
-RUST_MIN_VER="1.93.0"
-
-inherit cargo check-reqs
-
-CRATE_PV=${PV}
-DESCRIPTION="A Python package installer and resolver, written in Rust"
-HOMEPAGE="
- https://github.com/astral-sh/uv/
- https://pypi.org/project/uv/
-"
-# pypi sdist misses scripts/, needed for tests
-SRC_URI="
- https://github.com/astral-sh/uv/archive/${PV}.tar.gz
- -> ${P}.gh.tar.gz
- ${CARGO_CRATE_URIS}
-"
-if [[ ${PKGBUMPING} != ${PVR} ]]; then
- SRC_URI+="
- https://github.com/gentoo-crate-dist/uv/releases/download/${CRATE_PV}/uv-${CRATE_PV}-crates.tar.xz
- "
-fi
-
-# most of the code
-LICENSE="|| ( Apache-2.0 MIT )"
-# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below
-# Dependent crate licenses
-LICENSE+="
- 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0
- CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016
- ZLIB BZIP2
-"
-# ring crate
-LICENSE+=" openssl"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86"
-IUSE="test"
-RESTRICT="test"
-PROPERTIES="test_network"
-
-DEPEND="
- app-arch/bzip2:=
- app-arch/xz-utils:=
- app-arch/zstd:=
-"
-RDEPEND="
- ${DEPEND}
-"
-BDEPEND="
- virtual/pkgconfig
- test? (
- dev-lang/python:3.9
- dev-lang/python:3.10
- dev-lang/python:3.11
- dev-lang/python:3.12
- dev-lang/python:3.13
- !!~dev-python/uv-0.5.0
- )
-"
-
-QA_FLAGS_IGNORED="usr/bin/.*"
-
-check_space() {
- local CHECKREQS_DISK_BUILD=3G
- use debug && CHECKREQS_DISK_BUILD=9G
- check-reqs_pkg_setup
-}
-
-pkg_pretend() {
- check_space
-}
-
-pkg_setup() {
- check_space
- rust_pkg_setup
-}
-
-src_prepare() {
- default
-
- # force thin lto, makes build much faster and less memory hungry
- # (i.e. makes it possible to actually build uv on 32-bit PPC)
- sed -i -e '/lto/s:fat:thin:' Cargo.toml || die
-
- # enable system libraries where supported
- export ZSTD_SYS_USE_PKG_CONFIG=1
- # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys?
-
- # remove unbundled sources, just in case
- find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die
-
- # bzip2-sys requires a pkg-config file
- # https://github.com/alexcrichton/bzip2-rs/issues/104
- mkdir "${T}/pkg-config" || die
- export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}
- cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die
- Name: bzip2
- Version: 9999
- Description:
- Libs: -lbz2
- EOF
-
- # uv is now forcing bundled liblzma, sigh
- sed -i -e '/xz/s:"static"::' Cargo.toml || die
-}
-
-src_configure() {
- local myfeatures=(
- test-git
- test-pypi
- test-python
- )
-
- cargo_src_configure --no-default-features
-}
-
-src_compile() {
- cd crates/uv || die
- cargo_src_compile
-}
-
-src_test() {
- cd crates/uv || die
- cargo_src_test --no-fail-fast
-}
-
-src_install() {
- cd crates/uv || die
- cargo_src_install
-
- insinto /etc/xdg/uv
- newins - uv.toml <<-EOF || die
- # These defaults match Fedora, see:
- # https://src.fedoraproject.org/rpms/uv/pull-request/18
-
- # By default ("automatic"), uv downloads missing Python versions
- # automatically and keeps them in the user's home directory.
- # Disable that to make downloading opt-in, and especially
- # to avoid unnecessarily fetching custom Python when the distro
- # package would be preferable. Python builds can still be
- # downloaded manually via "uv python install".
- #
- # https://docs.astral.sh/uv/reference/settings/#python-downloads
- python-downloads = "manual"
-
- # By default ("managed"), uv always prefers self-installed
- # Python versions over the system Python, independently
- # of versions. Since we generally expect users to use that
- # to install old Python versions not in ::gentoo anymore,
- # this effectively means that uv would end up preferring very
- # old Python versions over the newer ones that are provided
- # by the system. Default to using the system versions to avoid
- # this counter-intuitive behavior.
- #
- # https://docs.astral.sh/uv/reference/settings/#python-preference
- python-preference = "system"
- EOF
-}
diff --git a/dev-python/uv/uv-0.11.14.ebuild b/dev-python/uv/uv-0.11.14.ebuild
index 030c2e92591f..d4afa9343251 100644
--- a/dev-python/uv/uv-0.11.14.ebuild
+++ b/dev-python/uv/uv-0.11.14.ebuild
@@ -39,7 +39,7 @@ LICENSE+="
# ring crate
LICENSE+=" openssl"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86"
+KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 x86"
IUSE="test"
RESTRICT="test"
PROPERTIES="test_network"
diff --git a/dev-python/uv/uv-0.11.15.ebuild b/dev-python/uv/uv-0.11.15.ebuild
deleted file mode 100644
index 0b6f133484f8..000000000000
--- a/dev-python/uv/uv-0.11.15.ebuild
+++ /dev/null
@@ -1,164 +0,0 @@
-# Copyright 2024-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-CRATES="
-"
-RUST_MIN_VER="1.93.0"
-
-inherit cargo check-reqs
-
-CRATE_PV=${PV}
-DESCRIPTION="A Python package installer and resolver, written in Rust"
-HOMEPAGE="
- https://github.com/astral-sh/uv/
- https://pypi.org/project/uv/
-"
-# pypi sdist misses scripts/, needed for tests
-SRC_URI="
- https://github.com/astral-sh/uv/archive/${PV}.tar.gz
- -> ${P}.gh.tar.gz
- ${CARGO_CRATE_URIS}
-"
-if [[ ${PKGBUMPING} != ${PVR} ]]; then
- SRC_URI+="
- https://github.com/gentoo-crate-dist/uv/releases/download/${CRATE_PV}/uv-${CRATE_PV}-crates.tar.xz
- "
-fi
-
-# most of the code
-LICENSE="|| ( Apache-2.0 MIT )"
-# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below
-# Dependent crate licenses
-LICENSE+="
- 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0
- CDLA-Permissive-2.0 ISC MIT MIT-0 MPL-2.0 Unicode-3.0
- Unicode-DFS-2016 ZLIB
-"
-# ring crate
-LICENSE+=" openssl"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86"
-IUSE="test"
-RESTRICT="test"
-PROPERTIES="test_network"
-
-DEPEND="
- app-arch/bzip2:=
- app-arch/xz-utils:=
- app-arch/zstd:=
-"
-RDEPEND="
- ${DEPEND}
-"
-BDEPEND="
- virtual/pkgconfig
- test? (
- dev-lang/python:3.9
- dev-lang/python:3.10
- dev-lang/python:3.11
- dev-lang/python:3.12
- dev-lang/python:3.13
- !!~dev-python/uv-0.5.0
- )
-"
-
-QA_FLAGS_IGNORED="usr/bin/.*"
-
-check_space() {
- local CHECKREQS_DISK_BUILD=3G
- use debug && CHECKREQS_DISK_BUILD=9G
- check-reqs_pkg_setup
-}
-
-pkg_pretend() {
- check_space
-}
-
-pkg_setup() {
- check_space
- rust_pkg_setup
-}
-
-src_prepare() {
- default
-
- # force thin lto, makes build much faster and less memory hungry
- # (i.e. makes it possible to actually build uv on 32-bit PPC)
- sed -i -e '/lto/s:fat:thin:' Cargo.toml || die
-
- # enable system libraries where supported
- export ZSTD_SYS_USE_PKG_CONFIG=1
- # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys?
-
- # remove unbundled sources, just in case
- find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die
-
- # bzip2-sys requires a pkg-config file
- # https://github.com/alexcrichton/bzip2-rs/issues/104
- mkdir "${T}/pkg-config" || die
- export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}
- cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die
- Name: bzip2
- Version: 9999
- Description:
- Libs: -lbz2
- EOF
-
- # uv is now forcing bundled liblzma, sigh
- sed -i -e '/xz/s:"static"::' Cargo.toml || die
-}
-
-src_configure() {
- local myfeatures=(
- test-git
- test-pypi
- test-python
- )
-
- cargo_src_configure --no-default-features
-}
-
-src_compile() {
- cd crates/uv || die
- cargo_src_compile
-}
-
-src_test() {
- cd crates/uv || die
- cargo_src_test --no-fail-fast
-}
-
-src_install() {
- cd crates/uv || die
- cargo_src_install
-
- insinto /etc/xdg/uv
- newins - uv.toml <<-EOF || die
- # These defaults match Fedora, see:
- # https://src.fedoraproject.org/rpms/uv/pull-request/18
-
- # By default ("automatic"), uv downloads missing Python versions
- # automatically and keeps them in the user's home directory.
- # Disable that to make downloading opt-in, and especially
- # to avoid unnecessarily fetching custom Python when the distro
- # package would be preferable. Python builds can still be
- # downloaded manually via "uv python install".
- #
- # https://docs.astral.sh/uv/reference/settings/#python-downloads
- python-downloads = "manual"
-
- # By default ("managed"), uv always prefers self-installed
- # Python versions over the system Python, independently
- # of versions. Since we generally expect users to use that
- # to install old Python versions not in ::gentoo anymore,
- # this effectively means that uv would end up preferring very
- # old Python versions over the newer ones that are provided
- # by the system. Default to using the system versions to avoid
- # this counter-intuitive behavior.
- #
- # https://docs.astral.sh/uv/reference/settings/#python-preference
- python-preference = "system"
- EOF
-}
diff --git a/dev-python/uv/uv-0.11.18.ebuild b/dev-python/uv/uv-0.11.20.ebuild
index 278562102301..278562102301 100644
--- a/dev-python/uv/uv-0.11.18.ebuild
+++ b/dev-python/uv/uv-0.11.20.ebuild
diff --git a/dev-python/uv/uv-0.11.17.ebuild b/dev-python/uv/uv-0.11.21.ebuild
index 0b6f133484f8..278562102301 100644
--- a/dev-python/uv/uv-0.11.17.ebuild
+++ b/dev-python/uv/uv-0.11.21.ebuild
@@ -5,7 +5,7 @@ EAPI=8
CRATES="
"
-RUST_MIN_VER="1.93.0"
+RUST_MIN_VER="1.94.0"
inherit cargo check-reqs
diff --git a/dev-python/uv/uv-0.11.7.ebuild b/dev-python/uv/uv-0.11.7.ebuild
deleted file mode 100644
index 50f10c8a5030..000000000000
--- a/dev-python/uv/uv-0.11.7.ebuild
+++ /dev/null
@@ -1,164 +0,0 @@
-# Copyright 2024-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-CRATES="
-"
-RUST_MIN_VER="1.92.0"
-
-inherit cargo check-reqs
-
-CRATE_PV=${PV}
-DESCRIPTION="A Python package installer and resolver, written in Rust"
-HOMEPAGE="
- https://github.com/astral-sh/uv/
- https://pypi.org/project/uv/
-"
-# pypi sdist misses scripts/, needed for tests
-SRC_URI="
- https://github.com/astral-sh/uv/archive/${PV}.tar.gz
- -> ${P}.gh.tar.gz
- ${CARGO_CRATE_URIS}
-"
-if [[ ${PKGBUMPING} != ${PVR} ]]; then
- SRC_URI+="
- https://github.com/gentoo-crate-dist/uv/releases/download/${CRATE_PV}/uv-${CRATE_PV}-crates.tar.xz
- "
-fi
-
-# most of the code
-LICENSE="|| ( Apache-2.0 MIT )"
-# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below
-# Dependent crate licenses
-LICENSE+="
- 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0
- CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016
- ZLIB BZIP2
-"
-# ring crate
-LICENSE+=" openssl"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 x86"
-IUSE="test"
-RESTRICT="test"
-PROPERTIES="test_network"
-
-DEPEND="
- app-arch/bzip2:=
- app-arch/xz-utils:=
- app-arch/zstd:=
-"
-RDEPEND="
- ${DEPEND}
-"
-BDEPEND="
- virtual/pkgconfig
- test? (
- dev-lang/python:3.9
- dev-lang/python:3.10
- dev-lang/python:3.11
- dev-lang/python:3.12
- dev-lang/python:3.13
- !!~dev-python/uv-0.5.0
- )
-"
-
-QA_FLAGS_IGNORED="usr/bin/.*"
-
-check_space() {
- local CHECKREQS_DISK_BUILD=3G
- use debug && CHECKREQS_DISK_BUILD=9G
- check-reqs_pkg_setup
-}
-
-pkg_pretend() {
- check_space
-}
-
-pkg_setup() {
- check_space
- rust_pkg_setup
-}
-
-src_prepare() {
- default
-
- # force thin lto, makes build much faster and less memory hungry
- # (i.e. makes it possible to actually build uv on 32-bit PPC)
- sed -i -e '/lto/s:fat:thin:' Cargo.toml || die
-
- # enable system libraries where supported
- export ZSTD_SYS_USE_PKG_CONFIG=1
- # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys?
-
- # remove unbundled sources, just in case
- find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die
-
- # bzip2-sys requires a pkg-config file
- # https://github.com/alexcrichton/bzip2-rs/issues/104
- mkdir "${T}/pkg-config" || die
- export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}
- cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die
- Name: bzip2
- Version: 9999
- Description:
- Libs: -lbz2
- EOF
-
- # uv is now forcing bundled liblzma, sigh
- sed -i -e '/xz/s:"static"::' Cargo.toml || die
-}
-
-src_configure() {
- local myfeatures=(
- test-git
- test-pypi
- test-python
- )
-
- cargo_src_configure --no-default-features
-}
-
-src_compile() {
- cd crates/uv || die
- cargo_src_compile
-}
-
-src_test() {
- cd crates/uv || die
- cargo_src_test --no-fail-fast
-}
-
-src_install() {
- cd crates/uv || die
- cargo_src_install
-
- insinto /etc/xdg/uv
- newins - uv.toml <<-EOF || die
- # These defaults match Fedora, see:
- # https://src.fedoraproject.org/rpms/uv/pull-request/18
-
- # By default ("automatic"), uv downloads missing Python versions
- # automatically and keeps them in the user's home directory.
- # Disable that to make downloading opt-in, and especially
- # to avoid unnecessarily fetching custom Python when the distro
- # package would be preferable. Python builds can still be
- # downloaded manually via "uv python install".
- #
- # https://docs.astral.sh/uv/reference/settings/#python-downloads
- python-downloads = "manual"
-
- # By default ("managed"), uv always prefers self-installed
- # Python versions over the system Python, independently
- # of versions. Since we generally expect users to use that
- # to install old Python versions not in ::gentoo anymore,
- # this effectively means that uv would end up preferring very
- # old Python versions over the newer ones that are provided
- # by the system. Default to using the system versions to avoid
- # this counter-intuitive behavior.
- #
- # https://docs.astral.sh/uv/reference/settings/#python-preference
- python-preference = "system"
- EOF
-}
diff --git a/dev-python/uv/uv-0.11.8.ebuild b/dev-python/uv/uv-0.11.8.ebuild
deleted file mode 100644
index 030c2e92591f..000000000000
--- a/dev-python/uv/uv-0.11.8.ebuild
+++ /dev/null
@@ -1,164 +0,0 @@
-# Copyright 2024-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-CRATES="
-"
-RUST_MIN_VER="1.93.0"
-
-inherit cargo check-reqs
-
-CRATE_PV=${PV}
-DESCRIPTION="A Python package installer and resolver, written in Rust"
-HOMEPAGE="
- https://github.com/astral-sh/uv/
- https://pypi.org/project/uv/
-"
-# pypi sdist misses scripts/, needed for tests
-SRC_URI="
- https://github.com/astral-sh/uv/archive/${PV}.tar.gz
- -> ${P}.gh.tar.gz
- ${CARGO_CRATE_URIS}
-"
-if [[ ${PKGBUMPING} != ${PVR} ]]; then
- SRC_URI+="
- https://github.com/gentoo-crate-dist/uv/releases/download/${CRATE_PV}/uv-${CRATE_PV}-crates.tar.xz
- "
-fi
-
-# most of the code
-LICENSE="|| ( Apache-2.0 MIT )"
-# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below
-# Dependent crate licenses
-LICENSE+="
- 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0
- CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016
- ZLIB BZIP2
-"
-# ring crate
-LICENSE+=" openssl"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86"
-IUSE="test"
-RESTRICT="test"
-PROPERTIES="test_network"
-
-DEPEND="
- app-arch/bzip2:=
- app-arch/xz-utils:=
- app-arch/zstd:=
-"
-RDEPEND="
- ${DEPEND}
-"
-BDEPEND="
- virtual/pkgconfig
- test? (
- dev-lang/python:3.9
- dev-lang/python:3.10
- dev-lang/python:3.11
- dev-lang/python:3.12
- dev-lang/python:3.13
- !!~dev-python/uv-0.5.0
- )
-"
-
-QA_FLAGS_IGNORED="usr/bin/.*"
-
-check_space() {
- local CHECKREQS_DISK_BUILD=3G
- use debug && CHECKREQS_DISK_BUILD=9G
- check-reqs_pkg_setup
-}
-
-pkg_pretend() {
- check_space
-}
-
-pkg_setup() {
- check_space
- rust_pkg_setup
-}
-
-src_prepare() {
- default
-
- # force thin lto, makes build much faster and less memory hungry
- # (i.e. makes it possible to actually build uv on 32-bit PPC)
- sed -i -e '/lto/s:fat:thin:' Cargo.toml || die
-
- # enable system libraries where supported
- export ZSTD_SYS_USE_PKG_CONFIG=1
- # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys?
-
- # remove unbundled sources, just in case
- find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die
-
- # bzip2-sys requires a pkg-config file
- # https://github.com/alexcrichton/bzip2-rs/issues/104
- mkdir "${T}/pkg-config" || die
- export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}
- cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die
- Name: bzip2
- Version: 9999
- Description:
- Libs: -lbz2
- EOF
-
- # uv is now forcing bundled liblzma, sigh
- sed -i -e '/xz/s:"static"::' Cargo.toml || die
-}
-
-src_configure() {
- local myfeatures=(
- test-git
- test-pypi
- test-python
- )
-
- cargo_src_configure --no-default-features
-}
-
-src_compile() {
- cd crates/uv || die
- cargo_src_compile
-}
-
-src_test() {
- cd crates/uv || die
- cargo_src_test --no-fail-fast
-}
-
-src_install() {
- cd crates/uv || die
- cargo_src_install
-
- insinto /etc/xdg/uv
- newins - uv.toml <<-EOF || die
- # These defaults match Fedora, see:
- # https://src.fedoraproject.org/rpms/uv/pull-request/18
-
- # By default ("automatic"), uv downloads missing Python versions
- # automatically and keeps them in the user's home directory.
- # Disable that to make downloading opt-in, and especially
- # to avoid unnecessarily fetching custom Python when the distro
- # package would be preferable. Python builds can still be
- # downloaded manually via "uv python install".
- #
- # https://docs.astral.sh/uv/reference/settings/#python-downloads
- python-downloads = "manual"
-
- # By default ("managed"), uv always prefers self-installed
- # Python versions over the system Python, independently
- # of versions. Since we generally expect users to use that
- # to install old Python versions not in ::gentoo anymore,
- # this effectively means that uv would end up preferring very
- # old Python versions over the newer ones that are provided
- # by the system. Default to using the system versions to avoid
- # this counter-intuitive behavior.
- #
- # https://docs.astral.sh/uv/reference/settings/#python-preference
- python-preference = "system"
- EOF
-}