add jami
This commit is contained in:
76
net-libs/opendht/opendht-3.5.4.ebuild
Normal file
76
net-libs/opendht/opendht-3.5.4.ebuild
Normal file
@@ -0,0 +1,76 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{{8..13},13t} )
|
||||
|
||||
inherit cmake python-r1
|
||||
|
||||
DESCRIPTION="A lightweight C++11 Distributed Hash Table implementation"
|
||||
HOMEPAGE="https://github.com/savoirfairelinux/opendht"
|
||||
|
||||
if [[ "${PV}" == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/savoirfairelinux/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/savoirfairelinux/opendht/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
IUSE="doc +dht-index +http-client +peer-discovery +proxy-client +proxy-server +proxy-server-identity +proxy-openssl +push-notifications python systemd +tools"
|
||||
|
||||
DEPEND="
|
||||
app-crypt/argon2
|
||||
dev-libs/libfmt
|
||||
dev-util/cppunit
|
||||
dev-cpp/asio
|
||||
dev-cpp/msgpack-cxx
|
||||
net-libs/restinio
|
||||
|| (
|
||||
net-libs/gnutls
|
||||
dev-libs/nettle
|
||||
)
|
||||
python? ( dev-python/cython[${PYTHON_USEDEP}] )
|
||||
tools? ( sys-libs/readline:0 )
|
||||
proxy-openssl? ( dev-libs/openssl:= )
|
||||
doc? ( app-text/doxygen )
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
|
||||
#REQUIRED_USE="http-client? ( !proxy-server !proxy-client ) ${PYTHON_REQUIRED_USE}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DOPENDHT_PYTHON=$(usex python)
|
||||
-DOPENDHT_TOOLS=$(usex tools)
|
||||
-DOPENDHT_SYSTEMD=$(usex systemd)
|
||||
-DOPENDHT_HTTP=$(usex http-client)
|
||||
-DOPENDHT_INDEX=$(usex dht-index)
|
||||
-DOPENDHT_PEER_DISCOVERY=$(usex peer-discovery)
|
||||
-DOPENDHT_PROXY_SERVER=$(usex proxy-server)
|
||||
-DOPENDHT_PROXY_SERVER_IDENTITY=$(usex proxy-server-identity)
|
||||
-DOPENDHT_PROXY_CLIENT=$(usex proxy-client)
|
||||
-DOPENDHT_PROXY_OPENSSL=$(usex proxy-openssl)
|
||||
-DOPENDHT_PUSH_NOTIFICATIONS=$(usex push-notifications)
|
||||
-DOPENDHT_DOCUMENTATION=$(usex doc)
|
||||
-DOPENDHT_SANITIZE=OFF
|
||||
-DOPENDHT_TESTS_NETWORK=OFF
|
||||
-DOPENDHT_C=ON
|
||||
-DOPENDHT_CPACK=ON
|
||||
-DOPENDHT_DOWNLOAD_DEPS=OFF
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user