net-misc/xh: add 0.25.0

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2025-09-25 05:25:47 +02:00
parent 05d33ae9bf
commit 14a0ecdd9c
2 changed files with 58 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST xh-0.24.1-crates.tar.xz 23274872 BLAKE2B d50151439333bc7719f68187867e29e805b2bb64fe169d98ba456e9c1b0942f3a4d1146d82b2fd240591faf296826fa8f04d16341165eeb715ff502eb7d118ce SHA512 d2c88e5f140292e152013ba665c9990aa08209e2039c8b2f46ad0f2aa68d7428226b004c9bf1a1a6a2a353f6a57f680c5624020b8cfcbb901df1ecaa28c5044b
DIST xh-0.24.1.tar.gz 308352 BLAKE2B bc1018d22826f4dee2d52071ae76940564cf2defdba4effff57f6460a123922df46274daa94adbc7bf8fd59181c13e8244e2217f01c52d2ac1bf26f06eca48b5 SHA512 89df24e63e81e925d6f4806ab2b9819d4f9265828128d83d03b874792befebf238c17109bedcbeb0bc56b0eaf621cd3843cbc9851cd9dd8c48aefe36dce452d2
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

View File

@@ -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/freijon/${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"
}