diff options
| -rw-r--r-- | dev-libs/opendht/Manifest | 1 | ||||
| -rw-r--r-- | dev-libs/opendht/files/peerdiscoverytest-2.4.10.patch | 13 | ||||
| -rw-r--r-- | dev-libs/opendht/metadata.xml | 28 | ||||
| -rw-r--r-- | dev-libs/opendht/opendht-2.4.10.ebuild | 53 | 
4 files changed, 95 insertions, 0 deletions
diff --git a/dev-libs/opendht/Manifest b/dev-libs/opendht/Manifest new file mode 100644 index 0000000..ca24444 --- /dev/null +++ b/dev-libs/opendht/Manifest @@ -0,0 +1 @@ +DIST opendht-2.4.10.tar.bz2 427454 BLAKE2B bc198649df5e97e6c4f533bb98bf542496d8ce72cb446bafd68a1b479d1e677db3977201bdd0d885e0bc9dc4c90399a4393db10a0f128eb34c6f2db9c2b7366c SHA512 ee1efec4dbef20c992e22b82dab6c06b44af4c4158953b49a12e495822b9f5b1ae5db560396fbb73ecce0339367894590c626498402c192981b6f40178b5d9fd diff --git a/dev-libs/opendht/files/peerdiscoverytest-2.4.10.patch b/dev-libs/opendht/files/peerdiscoverytest-2.4.10.patch new file mode 100644 index 0000000..a2e3761 --- /dev/null +++ b/dev-libs/opendht/files/peerdiscoverytest-2.4.10.patch @@ -0,0 +1,13 @@ +diff --git a/tests/peerdiscoverytester.cpp b/tests/peerdiscoverytester.cpp +index a1dac8d0..85e315f7 100644 +--- a/tests/peerdiscoverytester.cpp ++++ b/tests/peerdiscoverytester.cpp +@@ -42,7 +42,7 @@ struct JamiNode { +     MSGPACK_DEFINE(num, cha, str) + }; +  +-CPPUNIT_TEST_SUITE_REGISTRATION(PeerDiscoveryTester); ++// CPPUNIT_TEST_SUITE_REGISTRATION(PeerDiscoveryTester); +  + void PeerDiscoveryTester::setUp(){} +  diff --git a/dev-libs/opendht/metadata.xml b/dev-libs/opendht/metadata.xml new file mode 100644 index 0000000..9d4cd8b --- /dev/null +++ b/dev-libs/opendht/metadata.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +	<maintainer type="person"> +		<email>julien@jroy.ca</email> +		<name>Julien Roy</name> +	</maintainer> +	<longdescription> +		OpenDHT provides an easy to use distributed in-memory data store. Every node in the network can read and write values to the store. Values are distributed over the network, with redundancy. + +		Lightweight and scalable, designed for large networks and small devices +		High resilience to network disruption +		Public key cryptography layer providing optional data signature and encryption (using GnuTLS) +		IPv4 and IPv6 support +		Clean and powerful C++17 map API +		Bindings for C, Rust and Python 3 +		REST API with optional HTTP client+server with push notification support +	</longdescription> +	<upstream> +		<changelog>https://github.com/savoirfairelinux/opendht/releases</changelog> +		<doc>https://github.com/savoirfairelinux/opendht/wiki</doc> +		<bugs-to>https://github.com/savoirfairelinux/opendht/issues</bugs-to> +	</upstream> +	<use> +		<flag name="api">Enable DHT proxy server</flag> +		<flag name="tools">Enable DHT tools</flag> +	</use> +</pkgmetadata> diff --git a/dev-libs/opendht/opendht-2.4.10.ebuild b/dev-libs/opendht/opendht-2.4.10.ebuild new file mode 100644 index 0000000..3d834ea --- /dev/null +++ b/dev-libs/opendht/opendht-2.4.10.ebuild @@ -0,0 +1,53 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="C++17 Distributed Hash Table implementation " +HOMEPAGE="https://git.jami.net/savoirfairelinux/opendht" +SRC_URI="https://git.jami.net/savoirfairelinux/${PN}/-/archive/v${PV}.tar.bz2 -> ${P}.tar.bz2" +COMMIT="69a1bdfc45617d9374954948fbe840f34d58b3b4" +S="${WORKDIR}/${PN}-v${PV}-${COMMIT}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="api doc python systemd test tools" +RESTRICT="!test? ( test )" + +RDEPEND=" +	app-crypt/argon2 +	dev-libs/msgpack +	dev-libs/nettle +	dev-libs/restinio +	net-libs/gnutls +	api? ( +		dev-libs/jsoncpp +		dev-libs/restinio +	) +	doc? ( app-doc/doxygen ) +	python? ( dev-python/cython ) +	tools? ( sys-libs/readline ) +" +DEPEND="${RDEPEND}" + +# Disable peerdiscoverytest, since it fails upstream +# https://github.com/savoirfairelinux/opendht/issues/568 +PATCHES=( +	"${FILESDIR}/peerdiscoverytest-2.4.10.patch" +) + +src_configure() { +	local mycmakeargs=( +		"-DOPENDHT_PYTHON=$(usex python ON OFF)" +		"-DOPENDHT_TOOLS=$(usex tools ON OFF)" +		"-DOPENDHT_SYSTEMD=$(usex systemd ON OFF)" +		"-DOPENDHT_PROXY_SERVER=$(usex api ON OFF)" +		"-DOPENDHT_PROXY_SERVER_IDENTITY=$(usex api ON OFF)" +		"-DOPENDHT_PROXY_CLIENT=$(usex api ON OFF)" +		"-DOPENDHT_TESTS=$(usex test ON OFF)" +	) +	cmake_src_configure +}  | 
