net-misc/xh: add 0.24.0

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2025-02-20 05:32:52 +01:00
parent e01288b799
commit 067bff8af7
2 changed files with 59 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST xh-0.23.1-crates.tar.xz 25520712 BLAKE2B 070403ebf0c590f3acd1844f76fa2f5c1bea1c52522b2bc7e183c5fe2e60e9e55fa65b8b047602183b836671894dfd86dce01fe8faebe83a8bf66268867eb084 SHA512 fe767c4e8da398c56482a0516319ff773e072e822878e44fe717c2602e64ade689efe93d9e4ad2a55d6fc522843a05bcc454546a8c1405ba183760c604fc82df
DIST xh-0.23.1.tar.gz 303570 BLAKE2B 304c868f490a102de85ceb113cd57e03b2760835b6b823fec0831f2626cd7aac2d9841dcba561b27fcd9789633828f70e73f993ed61a44090c83b5d1e408f1d5 SHA512 b9097bacb9b4a28038db3f687077e013cde6074023c2a73a934989edd109b495ca2abac39f2c7bc6a98e8050260ec2161e88e7e10e2a40a2ae5288bf81d73f0e
DIST xh-0.24.0-crates.tar.xz 23258888 BLAKE2B 15c1142abf224677ba14fb163e6b353c53803e02ab663f904569017a226f63440b0b62d5b831e52b6a0a7c37b0faaeecb871f756c378f63fc5275a32ea93ed2a SHA512 f9242d433cdf8f9090a9c6e99153cb0a8b4720ec747ff534907f2a5708b896793f9b155d65b8257e6e02cd8d8f013e9743478cf702c687e5b139d7413acc7b45
DIST xh-0.24.0.tar.gz 303464 BLAKE2B 7e9eb7bc24e77e310261b70bab63c3325539c232da118210b9b7c43138265c1b526ecdd600f713188758bbb7b48f8f84b032673b668743b2f5a2282d5fdb882f SHA512 13bdfbc8598cc5f826dc6ae8df14ff3463061140dcc1b8db26dd8659d1d4f396ef5c1cd9b98e9a0779f91a0719140c67e9a623c0c49188979b20cc9b092614eb

View File

@@ -0,0 +1,57 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=""
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"
DEPS_URI="https://github.com/freijon/${PN}/releases/download/v${PV}/${P}-crates.tar.xz"
SRC_URI+=" ${DEPS_URI}"
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"
}