summaryrefslogtreecommitdiff
path: root/dev-util
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/aruba/Manifest1
-rw-r--r--dev-util/aruba/aruba-2.1.0.ebuild67
-rw-r--r--dev-util/aruba/aruba-2.3.0-r1.ebuild2
-rw-r--r--dev-util/pixi/Manifest4
-rw-r--r--dev-util/pixi/files/pixi-0.45.0-offline.patch37
-rw-r--r--dev-util/pixi/metadata.xml3
-rw-r--r--dev-util/pixi/pixi-0.45.0.ebuild130
7 files changed, 175 insertions, 69 deletions
diff --git a/dev-util/aruba/Manifest b/dev-util/aruba/Manifest
index 4beecd1aa866..614e3a2ca0ca 100644
--- a/dev-util/aruba/Manifest
+++ b/dev-util/aruba/Manifest
@@ -1,3 +1,2 @@
-DIST aruba-2.1.0.tar.gz 130073 BLAKE2B 534bc67cbc4b5871a1bc6e37170586b3a5829e70d611dde9fe130a4cfdce98044c1a3fe29de961419a605eb4bbe8e21b8efb52a61aa8a2d2b2b9fa7e42bd3169 SHA512 f30d67ba94157eaf0477a09f4049174ff0cd6195b92c4121117775e56502178525eb5a7f69148e7f5531d6d4e67f4ecd9d840e693c38340a10819a19247021fa
DIST aruba-2.2.0.tar.gz 130616 BLAKE2B f2f359d5ba79232e575a240e6d278b936f17d532d01e58f840f537a4d1e6a3663c04b24636aa20fda64ac3eccd4111c61d2f18e26e8c18cef35c7eeaaf7d797b SHA512 e4802dd915062b61e0a536d31294165310ce80aca3e4560f59bb23fcb3e01ea73a547d3f5738d3590c33175fb55268fa69512fe8f33f7cea6b83070e26b7cfee
DIST aruba-2.3.0.tar.gz 129322 BLAKE2B 024e9dd2a1b028111806dacb97178bd143e7d109b86641cbf5499298315e177dcd89faa62b655069956f3b85908c772f3188729b99c9b2701acfd7d14590292b SHA512 771fcb99f0ace5961343c75a7575383014a22393f9eafaa7a04fa58da93c499dbd60574f47d1484342202fd25af6e50920de6108b22ffd88407add3add8c6625
diff --git a/dev-util/aruba/aruba-2.1.0.ebuild b/dev-util/aruba/aruba-2.1.0.ebuild
deleted file mode 100644
index 0c2fae317791..000000000000
--- a/dev-util/aruba/aruba-2.1.0.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-USE_RUBY="ruby30 ruby31 ruby32"
-
-RUBY_FAKEGEM_RECIPE_TEST="cucumber"
-RUBY_FAKEGEM_RECIPE_DOC="none"
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
-RUBY_FAKEGEM_BINDIR="exe"
-
-RUBY_FAKEGEM_GEMSPEC="aruba.gemspec"
-
-inherit ruby-fakegem
-
-DESCRIPTION="Cucumber steps for driving out command line applications"
-HOMEPAGE="https://github.com/cucumber/aruba"
-SRC_URI="https://github.com/cucumber/aruba/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-LICENSE="MIT"
-
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
-SLOT="$(ver_cut 1)"
-IUSE=""
-
-DEPEND="${DEPEND} test? ( app-alternatives/bc )"
-RDEPEND="${RDEPEND}"
-
-ruby_add_rdepend "
- =dev-ruby/bundler-2*
- >=dev-ruby/childprocess-2.0 <dev-ruby/childprocess-5
- >=dev-ruby/contracts-0.16.0 <dev-ruby/contracts-0.18
- >=dev-ruby/rspec-expectations-3.4:3
- dev-ruby/thor:1
- >=dev-util/cucumber-2.4 <dev-util/cucumber-9
- !<dev-util/aruba-1.1.2-r1"
-
-ruby_add_bdepend "test? ( dev-ruby/pry dev-ruby/rspec:3 )"
-
-all_ruby_prepare() {
- # Remove bundler-related code.
- sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die
- #rm Gemfile || die
-
- sed -i -e '/simplecov/I s:^:#:' \
- -e '/Before/,/^end/ s:^:#:' \
- spec/spec_helper.rb features/support/env.rb || die
- rm -f features/support/simplecov_setup.rb || die
-
- sed -e 's:_relative ": "./:' \
- -e 's/git ls-files -z/find * -print0/' \
- -e '/\(pry-doc\|rake-manifest\|rubocop\|yard-junk\)/ s:^:#:' \
- -e '/simplecov/ s/22/23/' \
- -i ${RUBY_FAKEGEM_GEMSPEC} || die
-
- # Avoid features with minor output differences
- sed -i -e '/Use .aruba. with .Minitest./i\ @wip' features/01_getting_started_with_aruba/supported_testing_frameworks.feature || die
- sed -i -e '/Create files for Minitest/i\ @wip' features/06_use_aruba_cli/initialize_project_with_aruba.feature || die
- rm -f features/03_testing_frameworks/cucumber/steps/command/wait_for_output_of_command.feature || die
-
- # Avoid feature that requires aruba to be installed already
- rm -r features/03_testing_frameworks/cucumber/disable_bundler.feature || die
-}
-
-each_ruby_test() {
- RSPEC_VERSION=3 ruby-ng_rspec
- RUBYLIB="$(pwd)/lib" ruby-ng_cucumber --tags "not @wip"
-}
diff --git a/dev-util/aruba/aruba-2.3.0-r1.ebuild b/dev-util/aruba/aruba-2.3.0-r1.ebuild
index dc27ea1be44f..0cbf0a65b015 100644
--- a/dev-util/aruba/aruba-2.3.0-r1.ebuild
+++ b/dev-util/aruba/aruba-2.3.0-r1.ebuild
@@ -19,7 +19,7 @@ SRC_URI="https://github.com/cucumber/aruba/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="$(ver_cut 1)"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="test"
DEPEND="test? ( app-alternatives/bc )"
diff --git a/dev-util/pixi/Manifest b/dev-util/pixi/Manifest
index 99a8d85104b8..0692a2e3ab23 100644
--- a/dev-util/pixi/Manifest
+++ b/dev-util/pixi/Manifest
@@ -1,6 +1,10 @@
DIST pixi-0.39.5-crates.tar.xz 48798324 BLAKE2B 0ae0d903dab4d35cf71b9dc32c8c42213c9452472248ad01be0153914d3d4740eab2f425306c6cd5fff5730d1c5c70a138087f9d30e30452b71b354fe0163911 SHA512 509e77f7500c2ed1328ad0d27d6749bb1e46d7fc0b2eddcde3fef04b7b5d7941215724e0aa364eebd20672b2f62d5a1fc695d42450b3b2b89b77a49c4edaba5b
DIST pixi-0.39.5.tar.gz 6767808 BLAKE2B f464422d99c1afb8b8c70b50a664fe473152e05bd8f5ca3013ecbe30a02b07430428d0363c31e5203ed0c1af9ec65e62d72902e62d4cd70d74754e62c8c3bbc7 SHA512 44f55a824c252903659568c57d0be644791924b867838660b546d53e2612859d76561a0a9edb02215b5dd71de837a6d799f9846e8da50e6e26471ba41b4f897a
+DIST pixi-0.45.0-crates.tar.xz 72012476 BLAKE2B aaea95faa6acee1b150c62946bf8b536efe69e2cba79cb335dd077fc0099fc776e292070a49bc793d830a84a41e6af42af2f33d6c0b9fdc1a8e7b13c2c2dd552 SHA512 2d05b940d1526c70d8acc52f5e8146c91f75393a5f459778f84129610d4ff00d2455125c4fe2961ceb300a65c01d6fe2994a8f274687e412e01ada8db23679c1
+DIST pixi-0.45.0.tar.gz 7606448 BLAKE2B 67409f3438f7cceb6885712837e89ac03ff3da9d4a4e8fa07155dc5d41a85d660d8faa37028ed5ab5941449b31e7d208ff867e3a89c5e60b39fba8a912701069 SHA512 81144d3da1a137942b1f2391038cf057363e081bb2b7ac2c91aeff9a1f096bdcaaec95e1e25464b0a169148f3f31cd953fef1fb8a91ed19d8d1b7b9723dc563d
DIST pubgrub-57832d0588fbb7aab824813481104761dc1c7740.gh.tar.gz 95600 BLAKE2B 8bdf971091d6816c326925c4603aa9296d6a92c2ede6a6245e0e5e64b741863e5d93aac03990004c13bd592d3d6ca2c662500e4c8d33e9959d6df9e1023a41e5 SHA512 8eae3c00928d921ca7cfdeff124962e477ae32387fb4b1ebfecd968181ec6bb2c2d96c918d8a9f521f1b9666eb6272c9f982b444d22a432f9471414f081694ee
+DIST pubgrub-b70cf707aa43f21b32f3a61b8a0889b15032d5c4.gh.tar.gz 98983 BLAKE2B 08ad8a10a96ba7da3100f7658f38cb8d6fb0e1eca92ba0aaf1393778012db807084f047eec171f0a46836a6746367369e79ab95836d5cdf215211e321d2800ac SHA512 401ea5ca16e978d5407a1400e4e27cec9fcac11332067ee1ed8a3bc511901e08fc421ce875ebbb0990593ed549a4a5f4620914a71ae3490c7b8ae0f7b26b5937
DIST rs-async-zip-c909fda63fcafe4af496a07bfda28a5aae97e58d.gh.tar.gz 51763 BLAKE2B 59d053bc6692014d884a9247dea1b57a8789469ba2abbcc92ec21bb0022cbd74874afc463082156ab697aa6c80635019857a5d7e2dc150274e8b04d720518c36 SHA512 3a309566f4925b02496fcf19bc2865968edf6fb65082ca4079d2cee79e6b0353a1910c079f2afe656da0d0f6ddde5102052a221ea35a7dabc6d690a11218b20a
DIST tl-6e25b2ee2513d75385101a8ff9f591ef51f314ec.gh.tar.gz 37106 BLAKE2B c30d1c33f6f52e2bc83823eb6319f8a3e462b7c7408fb6a08f995747857ef234f81db4135a04f9d183095fe473a4087f8f0cb89d8f87ef4400285d2ce034ec22 SHA512 4abbc4240ed129c92da8d616e27a6df0f24cdc85a0803acfdae588ca91f9e5b8d482e3ac88b2e657ff68917b1b43cef1e7ef3c887f624659b231fa5a13fcae68
+DIST uv-3d946027841ac949b9ecfd5ceaeec721836ee555.gh.tar.gz 3809296 BLAKE2B 48d163f5aa19dba2043f3d0a94f952e7266cabc37197253d91cb69286abd121ab588edfc312f2560a15444a59cc9b14cf8ebb4b8fdffe9935579d9152bf75cd5 SHA512 640ad76d4db5bf2f3db21a37d7cf9465ceae7282855f305d1df3c215a261f4cabc25b2297471a82bbe0cb29d088bfa56b850279daa0ed1288b843af5428fd28f
DIST uv-878234ba6b9a3b143e079ca9baa4bec99af93600.gh.tar.gz 2954714 BLAKE2B 93ccda78c9f3302eacbf074ec011f476e2093e8cbe89c4d8b697fadeb00055f1e2a0fb20d7c108a53fd5e47ad12702ea230b45b61d580aebbaeadfeda2fb605a SHA512 cde1ddb6355abfa8529a32b16fb468d31066c38ebf2723e3927427c319a1782118889823e4faebd906802a67cb6b285423c59f9463d6780724751f9d1aab4ac6
diff --git a/dev-util/pixi/files/pixi-0.45.0-offline.patch b/dev-util/pixi/files/pixi-0.45.0-offline.patch
new file mode 100644
index 000000000000..0298f22a5add
--- /dev/null
+++ b/dev-util/pixi/files/pixi-0.45.0-offline.patch
@@ -0,0 +1,37 @@
+From 73a59e93c492389c0d7d17db3b00e21c047cb221 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Mon, 14 Apr 2025 09:15:50 +0200
+Subject: [PATCH] Mark `add_tests::add_pypi_git` as an online test
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Mark `add_tests::add_pypi_git` as requiring Internet, as in isolated
+environment it fails with:
+
+```
+thread 'add_tests::add_pypi_git' panicked at tests/integration_rust/add_tests.rs:915:30:
+called `Result::unwrap()` on an `Err` value: × Request failed after 3 retries
+ ├─▶ error sending request for url (https://prefix.dev/conda-forge/noarch/
+ │ repodata_shards.msgpack.zst)
+ ├─▶ client error (Connect)
+ ├─▶ dns error: failed to lookup address information: Name or service not
+ │ known
+ ╰─▶ failed to lookup address information: Name or service not known
+```
+---
+ tests/integration_rust/add_tests.rs | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/integration_rust/add_tests.rs b/tests/integration_rust/add_tests.rs
+index 6cef9054..bb35c795 100644
+--- a/tests/integration_rust/add_tests.rs
++++ b/tests/integration_rust/add_tests.rs
+@@ -895,6 +895,7 @@ preview = ['pixi-build']"#,
+
+ /// Test adding a git dependency using ssh url
+ #[tokio::test]
++#[cfg_attr(not(feature = "online_tests"), ignore)]
+ async fn add_pypi_git() {
+ let pixi = PixiControl::from_manifest(
+ format!(
diff --git a/dev-util/pixi/metadata.xml b/dev-util/pixi/metadata.xml
index 4207c6f887e3..ba925ef75ab3 100644
--- a/dev-util/pixi/metadata.xml
+++ b/dev-util/pixi/metadata.xml
@@ -6,5 +6,8 @@
<name>Michał Górny</name>
</maintainer>
+ <use>
+ <flag name="rustls">Use Rustls instead of OpenSSL.</flag>
+ </use>
<origin>gentoo-staging</origin>
</pkgmetadata> \ No newline at end of file
diff --git a/dev-util/pixi/pixi-0.45.0.ebuild b/dev-util/pixi/pixi-0.45.0.ebuild
new file mode 100644
index 000000000000..48ca33f8f489
--- /dev/null
+++ b/dev-util/pixi/pixi-0.45.0.ebuild
@@ -0,0 +1,130 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+"
+
+declare -A GIT_CRATES=(
+ [async_zip]='https://github.com/charliermarsh/rs-async-zip;c909fda63fcafe4af496a07bfda28a5aae97e58d;rs-async-zip-%commit%'
+ [pubgrub]='https://github.com/astral-sh/pubgrub;b70cf707aa43f21b32f3a61b8a0889b15032d5c4;pubgrub-%commit%'
+ [tl]='https://github.com/astral-sh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%'
+ [uv-auth]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-auth'
+ [uv-build-backend]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-build-backend'
+ [uv-build-frontend]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-build-frontend'
+ [uv-cache-info]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-cache-info'
+ [uv-cache-key]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-cache-key'
+ [uv-cache]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-cache'
+ [uv-client]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-client'
+ [uv-configuration]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-configuration'
+ [uv-console]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-console'
+ [uv-dirs]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-dirs'
+ [uv-dispatch]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-dispatch'
+ [uv-distribution-filename]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-distribution-filename'
+ [uv-distribution-types]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-distribution-types'
+ [uv-distribution]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-distribution'
+ [uv-extract]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-extract'
+ [uv-fs]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-fs'
+ [uv-git-types]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-git-types'
+ [uv-git]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-git'
+ [uv-globfilter]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-globfilter'
+ [uv-install-wheel]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-install-wheel'
+ [uv-installer]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-installer'
+ [uv-macros]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-macros'
+ [uv-metadata]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-metadata'
+ [uv-normalize]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-normalize'
+ [uv-once-map]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-once-map'
+ [uv-options-metadata]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-options-metadata'
+ [uv-pep440]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-pep440'
+ [uv-pep508]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-pep508'
+ [uv-platform-tags]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-platform-tags'
+ [uv-pypi-types]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-pypi-types'
+ [uv-python]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-python'
+ [uv-requirements-txt]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-requirements-txt'
+ [uv-requirements]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-requirements'
+ [uv-resolver]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-resolver'
+ [uv-shell]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-shell'
+ [uv-small-str]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-small-str'
+ [uv-state]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-state'
+ [uv-static]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-static'
+ [uv-torch]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-torch'
+ [uv-trampoline-builder]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-trampoline-builder'
+ [uv-types]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-types'
+ [uv-version]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-version'
+ [uv-virtualenv]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-virtualenv'
+ [uv-warnings]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-warnings'
+ [uv-workspace]='https://github.com/astral-sh/uv;3d946027841ac949b9ecfd5ceaeec721836ee555;uv-%commit%/crates/uv-workspace'
+ [version-ranges]='https://github.com/astral-sh/pubgrub;b70cf707aa43f21b32f3a61b8a0889b15032d5c4;pubgrub-%commit%/version-ranges'
+)
+
+inherit cargo
+
+CRATE_P=${P}
+DESCRIPTION="A package management and workflow tool"
+HOMEPAGE="
+ https://pixi.sh/
+ https://github.com/prefix-dev/pixi/
+"
+SRC_URI="
+ https://github.com/prefix-dev/pixi/releases/download/v${PV}/source.tar.gz
+ -> ${P}.tar.gz
+ ${CARGO_CRATE_URIS}
+ https://github.com/gentoo-crate-dist/pixi/releases/download/v${PV}/${P}-crates.tar.xz
+"
+
+LICENSE="BSD"
+# Dependent crate licenses
+LICENSE+="
+ 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0
+ ISC MIT MPL-2.0 MPL-2.0 Unicode-3.0 ZLIB
+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+rustls"
+
+RDEPEND="
+ app-arch/bzip2:=
+ app-arch/xz-utils:=
+ app-arch/zstd:=
+ !rustls? ( dev-libs/openssl:= )
+"
+
+src_prepare() {
+ local PATCHES=(
+ # https://github.com/prefix-dev/pixi/pull/3586
+ "${FILESDIR}/${P}-offline.patch"
+ )
+
+ default
+
+ local vr_dep=$(grep version-ranges "${ECARGO_HOME}"/config.toml || die)
+ sed -i -e "/version-ranges/s;^.*$;${vr_dep};" Cargo.toml || die
+}
+
+src_configure() {
+ local myfeatures=(
+ $(usex rustls rustls-tls native-tls)
+ )
+ cargo_src_configure --no-default-features
+
+ export ZSTD_SYS_USE_PKG_CONFIG=1
+
+ # 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
+}
+
+src_test() {
+ # tests use it to test preserving envvars, apparently assuming
+ # it will be always set
+ local -x USER=${USER}
+ cargo_src_test --no-fail-fast
+}