commit:     f9c6e4087bb079545ee0c0b40dabc59aa26fd105
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 20 11:46:00 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 20 11:46:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9c6e408

net-proxy/mitmproxy-rs: Bump to 0.12.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 net-proxy/mitmproxy-rs/Manifest                   |  2 +
 net-proxy/mitmproxy-rs/mitmproxy-rs-0.12.0.ebuild | 53 +++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/net-proxy/mitmproxy-rs/Manifest b/net-proxy/mitmproxy-rs/Manifest
index ffcc149edd2e..a302b1d165e4 100644
--- a/net-proxy/mitmproxy-rs/Manifest
+++ b/net-proxy/mitmproxy-rs/Manifest
@@ -3,4 +3,6 @@ DIST mitmproxy-rs-0.11.1-crates.tar.xz 40875272 BLAKE2B 
d033617908ac719962483b13
 DIST mitmproxy_rs-0.11.1.tar.gz 1184746 BLAKE2B 
6e4b7f1c50d45821664e7c448398e5497b33310b0ecc268fa2ed5d4559a8a51f47e76366d939edda9b9923f2aaeb3205646bbc995ba45b068600926a9a6d1d6a
 SHA512 
c72e8c36bc7de6a34cc99eb0cbc1cc3deb6c51d994e9e56acbb02803846fd87f6b671889b1b8c019ac7e84ecdf8939cda5bc62f5f5bd1dacdb53f75c9f1fb1c4
 DIST mitmproxy_rs-0.11.5-crates.tar.xz 50121936 BLAKE2B 
1f4645c44c42b904c300661b4314c0245e16a6bec6cdc7198d38e0492cccc4704cfdf479c5943ab73b6806ad62f9385289b5a7e9cee582d3e0def8381dac5869
 SHA512 
70facfa58bc45e2e0ee854b8d3fbd53818a93b319a117019f4713ab15793e065ea263ad6edae5086938755433c20756c7d23c3b023451e4cc052f2a98f956f60
 DIST mitmproxy_rs-0.11.5.tar.gz 1296760 BLAKE2B 
e7a0003b6657ff0e5d853219b1f5d847464207ee988d07e91c65a6a0c7d44e3a5603cf60dea9de1de7c50f1be0b153f5540431686c3be22b7873d2ed8907e845
 SHA512 
bcc106078e7e887e381ccee5e8e9753d023da3b5eb01e49c2121d5102094425e6a66be0c30e03f6be24d4c797983a434f063a5b7736fc8c7e7ddaa30ca0d94b1
+DIST mitmproxy_rs-0.12.0-crates.tar.xz 62765072 BLAKE2B 
270793c1aaf313ad9d256963e67906dfba1e901d24c8549bc4ccd2b09b4dceeb85f8232f45a0859bc53f0a92907051a0ec8a50394a2afe04c94ef3b99659c2ef
 SHA512 
5ad0978d88f487aceebe6d579d0a226388198d2afda31a918fa521a048def313697157391f7971703bebe0134015640aa9841557d943c742a5172fcdfce84d86
+DIST mitmproxy_rs-0.12.0.tar.gz 1317235 BLAKE2B 
3197640e415ace19c789c7d74650fe7df177302b9935404d3f258e0f7f54738f451c1700cc16e456129cd14c157c6e032baae313ec24227c24c2943984aca076
 SHA512 
1feb6fba4ee6b9931ef9ce81b81fe354ad362f79efd48a918d169b005dffbbc90ca9e255edfdffcecb0f8d4b55d469a2aab0c7056a6b3283661c49c85486f014
 DIST smoltcp-ef67e7b46cabf49783053cbf68d8671ed97ff8d4.gh.tar.gz 334018 BLAKE2B 
48c906c3c37ba691fee9889ce526cf5d4426b087fcf284eaecb934a349d6eb3da971dd2de172f3a29bfcd05f5a5449de015342feb0add23ac490e9a9f8b6fce1
 SHA512 
72020f063215ff5cede1fac6d9f17251f3dfa684b1f7a1c27700a629221e928859d02d099e1382ae82e66165dc83ea54baa3e907109d8cd58b90c93b58b71d45

diff --git a/net-proxy/mitmproxy-rs/mitmproxy-rs-0.12.0.ebuild 
b/net-proxy/mitmproxy-rs/mitmproxy-rs-0.12.0.ebuild
new file mode 100644
index 000000000000..059c30f7a51f
--- /dev/null
+++ b/net-proxy/mitmproxy-rs/mitmproxy-rs-0.12.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+"
+
+declare -A GIT_CRATES=(
+       
[boringtun]='https://github.com/cloudflare/boringtun;e3252d9c4f4c8fc628995330f45369effd4660a1;boringtun-%commit%/boringtun'
+)
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=maturin
+PYTHON_COMPAT=( python3_{12..13} )
+RUST_MIN_VER=1.85.0
+
+inherit cargo distutils-r1 pypi
+
+DESCRIPTION="mitmproxy's Rust bits"
+HOMEPAGE="
+       https://github.com/mitmproxy/mitmproxy_rs/
+       https://pypi.org/project/mitmproxy-rs/
+"
+SRC_URI+="
+       ${CARGO_CRATE_URIS}
+       
https://github.com/gentoo-crate-dist/mitmproxy_rs/releases/download/v${PV}/${P/-/_}-crates.tar.xz
+"
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+="
+       0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC
+       LGPL-3+ MIT Unicode-3.0 WTFPL-2 ZLIB
+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       ~net-proxy/mitmproxy-linux-${PV}[${PYTHON_USEDEP}]
+"
+
+src_prepare() {
+       distutils-r1_src_prepare
+
+       # replace upstream crate substitution with our crate substitution, sigh
+       local bor_dep=$(grep ^boringtun "${ECARGO_HOME}"/config.toml || die)
+       sed -i -e "/boringtun/s;^.*$;${bor_dep};" Cargo.toml || die
+}
+
+python_test() {
+       cargo_src_test --manifest-path mitmproxy-rs/Cargo.toml
+}

Reply via email to