Files
ace-overlay/net-libs/dhtnet/dhtnet-9999.ebuild
2025-12-08 00:42:50 +03:00

63 lines
1.2 KiB
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="The DHTNet library is designed to establish secure peer-to-peer connections using public-key authentication"
HOMEPAGE="https://github.com/savoirfairelinux/dhtnet"
if [[ "${PV}" == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/savoirfairelinux/${PN}"
EGIT_COMMIT="6c5ee3a21556d668d047cdedb5c4b746c3c6bdb2"
else
SRC_URI="https://github.com/savoirfairelinux/dhtnet/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3"
SLOT="0"
IUSE="tools"
DEPEND="
dev-cpp/yaml-cpp
net-libs/libnatpmp
net-libs/libupnp
app-crypt/argon2
net-libs/opendht
net-libs/pjproject[sfl(+),speex(+),gsm(+),portaudio(+)]
dev-libs/libfmt
dev-cpp/asio
dev-cpp/msgpack-cxx
|| (
net-libs/gnutls
dev-libs/nettle
)
tools? ( sys-libs/readline:0 )
"
RDEPEND="
${DEPEND}
"
src_configure() {
local mycmakeargs=(
-DDHTNET_PUPNP=ON
-DDHTNET_NATPMP=ON
-DBUILD_TOOLS=$(usex tools)
-DBUILD_BENCHMARKS=OFF
-DBUILD_DEPENDENCIES=OFF
-DDNC_SYSTEMD=OFF
-DBUILD_EXAMPLE=OFF
-DBUILD_TESTING=OFF
)
cmake_src_configure
}
src_install() {
cmake_src_install
}