mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
@@ -1,2 +1,4 @@
|
||||
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
|
||||
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
|
||||
|
||||
56
net-misc/xh/xh-0.24.1.ebuild
Normal file
56
net-misc/xh/xh-0.24.1.ebuild
Normal file
@@ -0,0 +1,56 @@
|
||||
# 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"
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user