# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.15.2

EAPI=8

CRATES="
"
RUST_MIN_VER="1.92"

inherit cargo

DESCRIPTION="Get things from one computer to another, safely"
HOMEPAGE="http://magic-wormhole.io/"
SRC_URI="
	https://github.com/magic-wormhole/magic-wormhole.rs/archive/refs/tags/${PV}.tar.gz -> magic-wormhole.rs-${PV}.tar.gz
	https://distfiles.living180.net/magic-wormhole.rs-${PV}-crates.tar.xz
"
S="${WORKDIR}/magic-wormhole.rs-${PV}"

LICENSE="EUPL-1.2"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 BSD Boost-1.0 MIT MPL-2.0 Unicode-3.0 Unlicense ZLIB
"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror"

BDEPEND="virtual/pkgconfig"
DEPEND="dev-libs/openssl:="

src_install() {
	cargo_src_install --path cli

	newman wormhole.1 wormhole-rs.1
}