mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
@@ -1,2 +1,4 @@
|
||||
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
|
||||
DIST xh-0.26.1-crates.tar.xz 29379900 BLAKE2B 1923e961c3b7553b00e92dee24047146cd173f5e927f27121985cc72116dae0a6735a4fa371ae87f6f6e69b7e8667ad7255ab4667e582396b8ca258a728d2505 SHA512 5a8a318746e6aaf2d4c9279327fe74723f09f17d3545be5b2bdac562e22ab156ea4843bb6c926843a35b2ea776402f5aee265fef798362b91dd213aecb55a1b8
|
||||
DIST xh-0.26.1.tar.gz 332762 BLAKE2B 5d1ab808fd82b66e335e5f20d2fa5ba17db5c1fccce95894ca4f3a1422903fccec674f7cf2807b8657229140a1e57911608d7a764a61bd62872acde216d2f582 SHA512 6446ce0c213bc901893d85f691de41f667c9b94ee04aa6359827397695e2e272ce0fb4d8cb85d0d985b063b3217688d3469bc8f8a600404829159ddd395de4df
|
||||
|
||||
56
net-misc/xh/xh-0.26.1.ebuild
Normal file
56
net-misc/xh/xh-0.26.1.ebuild
Normal file
@@ -0,0 +1,56 @@
|
||||
# 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"
|
||||
}
|
||||
Reference in New Issue
Block a user