net-misc/xh - 0.26.1 (guru)

Search

Install

Install this version:

emerge -a =net-misc/xh-0.26.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-misc/xh-0.26.1

Or alternatively:

emerge --autounmask-write -a =net-misc/xh-0.26.1

Package Information

Description:
Friendly and fast tool for sending HTTP requests
Homepage:
https://github.com/ducaale/xh
License:
MIT Apache-2.0 BSD ISC MIT MPL-2.0 Unicode-DFS-2016

Ebuild Details

Version EAPI Keywords Slot
0.26.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

RUST_MIN_VER=1.85.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"
}

Inherited Eclasses

Dependencies

DEPEND

	dev-libs/oniguruma:=
	dev-libs/openssl:0=

RDEPEND

	dev-libs/oniguruma:=
	dev-libs/openssl:0=

Manifest for 0.26.1

Type File Size Source URLs
DIST xh-0.26.1-crates.tar.xz 29379900 bytes https://github.com/gentoo-crate-dist/xh/releases/download/v0.26.1/xh-0.26.1-crates.tar.xz
DIST xh-0.26.1.tar.gz 332762 bytes https://github.com/ducaale/xh/archive/refs/tags/v0.26.1.tar.gz