commit:     e962e81641e1a83e3788a2d8885e45c19a71abfe
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Wed Dec 24 12:38:43 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Dec 24 12:47:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e962e816

net-misc/xh: add 0.25.3

Signed-off-by: Jonas Frei <freijon <AT> pm.me>

 net-misc/xh/Manifest         |  2 ++
 net-misc/xh/xh-0.25.3.ebuild | 56 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/net-misc/xh/Manifest b/net-misc/xh/Manifest
index fd4aca9063..6522bbf08b 100644
--- a/net-misc/xh/Manifest
+++ b/net-misc/xh/Manifest
@@ -1,2 +1,4 @@
 DIST xh-0.25.0-crates.tar.xz 25724028 BLAKE2B 
25d6d942f400c4486c9e399d7e31910ae1b048673d6e2a579ace18ba41b815f759a438d882632bbf0755df7c223232b2c7b153aec3d5fe88ab51dab3d389e1b0
 SHA512 
b3d087c1c08b05a4d2f6ace4f1e096eb2c94f64e8cc7a95ce2c974d68571f475d5e515faeb9a39f440a1170bcff4462d687b3f1f2e62bae0975a0d572eb11506
 DIST xh-0.25.0.tar.gz 311469 BLAKE2B 
6e8f2ac2bae89bcbc5f417d82b6dd4d89db0d1181cf97eee9812617f7d180e73cfa5ac12d49319613fec5b24b8ec67e8dde6776c8f4869f6aecd9fdc0296ed48
 SHA512 
52d7f87019c23bb89a189f3e79a2f29255b52dcc7616ef7a9ed32c262bf05c021c6e6cdb677c3e75e50e7118fad73e27094793ec57e69d92d46793dfea44bdc9
+DIST xh-0.25.3-crates.tar.xz 24541944 BLAKE2B 
f6b8113708c418afc3f530485c4f29a0260fc6e747acab4405dbe6c15ffc5e028c679d71496ba8bd939f591defeeed7d8b2e8fe7eec476007e26d4b8bacd7f09
 SHA512 
1a15480d8951ce084f65a2c2323c89d9a1b697e51961f67e200b9d0f4092e5403d62eac95884761979ebb7b6b16ebd8df5832e3768182b7465a5ae8203a5b4ea
+DIST xh-0.25.3.tar.gz 311659 BLAKE2B 
9b12109ae02c631564dc9fdd3462beeb5dbafc13da9387ac10af827c7eec5fb7fe6f2d7523f3ae0497eb0e9e1d7dce066f3794139334601e5689bc5247fa9c6a
 SHA512 
e49eb9bc2bbab8ee7436fd97d4acd1c09bb44dc20174040400f2fe4a8d7d0c3fa0bdd97a3c54d2095b385b6bdcc1b39720a8706d6a1597dabe600f7205cfe3fb

diff --git a/net-misc/xh/xh-0.25.3.ebuild b/net-misc/xh/xh-0.25.3.ebuild
new file mode 100644
index 0000000000..b6e5c7368a
--- /dev/null
+++ b/net-misc/xh/xh-0.25.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_MIN_VER=1.82.0
+
+inherit cargo shell-completion
+
+DESCRIPTION="Friendly and fast tool for sending HTTP requests"
+HOMEPAGE="https://github.com/ducaale/xh";
+SRC_URI="https://github.com/ducaale/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI+=" 
https://github.com/gentoo-crate-dist/${PN}/releases/download/v${PV}/${P}-crates.tar.xz";
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 BSD ISC MIT MPL-2.0 Unicode-DFS-2016"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="test"
+
+DEPEND="
+       dev-libs/oniguruma:=
+       dev-libs/openssl:0=
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( {CHANGELOG,README}.md )
+
+QA_FLAGS_IGNORED="usr/bin/${PN}"
+
+src_configure() {
+       # high magic to allow system-libs
+       export OPENSSL_NO_VENDOR=true
+       export RUSTONIG_SYSTEM_LIBONIG=1
+
+       myfeatures=(
+               native-tls
+       )
+
+       cargo_src_configure --no-default-features
+}
+
+src_install() {
+       cargo_src_install
+
+       # See https://github.com/ducaale/xh#making-https-requests-by-default
+       dosym "${PN}" "/usr/bin/${PN}s"
+
+       einstalldocs
+       doman "doc/${PN}.1"
+
+       newbashcomp "completions/${PN}.bash" "${PN}"
+       dozshcomp "completions/_${PN}"
+       dofishcomp "completions/${PN}.fish"
+}

Reply via email to