commit: 8fc6b8380dbfbbeb20de20c3797a9c0ff17107c5
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 21 03:12:32 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Aug 21 03:14:00 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fc6b838
dev-python/uv: Make reqwest-middleware patching more flexible
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/uv/uv-0.2.36.ebuild | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dev-python/uv/uv-0.2.36.ebuild b/dev-python/uv/uv-0.2.36.ebuild
index 742fb33a526d..3ccf2c32a218 100644
--- a/dev-python/uv/uv-0.2.36.ebuild
+++ b/dev-python/uv/uv-0.2.36.ebuild
@@ -80,7 +80,10 @@ src_prepare() {
default
# remove patch.* that breaks GIT_CRATES
- sed -i -e "/^\[patch/,\$s@^\(reqwest-middleware = \).*@\1 { path =
\"${WORKDIR}/reqwest-middleware-21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe/reqwest-middleware\"
}@" Cargo.toml || die
+ local reqmw=${GIT_CRATES[reqwest-middleware]}
+ reqmw=${reqmw#*;}
+ reqmw=${reqmw%;*}
+ sed -i -e "/^\[patch/,\$s@^\(reqwest-middleware = \).*@\1 { path =
\"${WORKDIR}/reqwest-middleware-${reqmw}/reqwest-middleware\" }@" Cargo.toml ||
die
# https://github.com/vorot93/tokio-tar/pull/23
# (fortunately uv already depends on portable-atomic, so we don't