mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-14 22:19:55 +00:00
Closes: https://bugs.gentoo.org/959621 Signed-off-by: Jesse De Haan <dehaanjesses@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/44150 Signed-off-by: Zac Medico <zmedico@gentoo.org>
56 lines
1 KiB
Bash
56 lines
1 KiB
Bash
# Copyright 2020-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
CRATES="traitobject@0.1.1"
|
|
|
|
inherit cargo
|
|
|
|
DESCRIPTION="Command-line client for WebSockets, like netcat, with socat-like functions"
|
|
HOMEPAGE="https://github.com/vi/websocat"
|
|
SRC_URI="https://github.com/vi/websocat/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
SRC_URI+=" https://dev.gentoo.org/~arthurzam/distfiles/net-misc/${PN}/${P}-crates.tar.xz"
|
|
SRC_URI+=" ${CARGO_CRATE_URIS}"
|
|
|
|
LICENSE="MIT"
|
|
# Dependent crate licenses
|
|
LICENSE+="
|
|
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT
|
|
Unicode-DFS-2016
|
|
"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="ssl"
|
|
RESTRICT+=" test"
|
|
|
|
RDEPEND="
|
|
ssl? (
|
|
dev-libs/openssl:0=
|
|
)
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-1.14.0-traitobject-lock.patch
|
|
)
|
|
|
|
QA_FLAGS_IGNORED="/usr/bin/websocat"
|
|
|
|
src_configure() {
|
|
local myfeatures=(
|
|
$(usex ssl ssl '')
|
|
seqpacket
|
|
signal_handler
|
|
tokio-process
|
|
unix_stdio
|
|
)
|
|
cargo_src_configure --no-default-features
|
|
}
|
|
|
|
src_install() {
|
|
cargo_src_install
|
|
dodoc *.md
|
|
}
|