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

EAPI=8

inherit cmake

DESCRIPTION="UDP Interactive Connectivity Establishment library"
HOMEPAGE="https://github.com/paullouisageneau/libjuice"
SRC_URI="
	https://github.com/paullouisageneau/libjuice/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
"

LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	dev-libs/nettle:=
"
RDEPEND="${DEPEND}"
#BDEPEND=""
# tests require network, seemingly
RESTRICT="test"

src_configure() {
	local mycmakeargs=(
		-DUSE_NETTLE=1
	)
	cmake_src_configure
}