1 |
commit: ba1e6d36b59b0255cb66989a1f8a73eee403a78f |
2 |
Author: Philip Miess <Philip_Miess <AT> yahoo <DOT> com> |
3 |
AuthorDate: Fri Apr 23 23:00:59 2021 +0000 |
4 |
Commit: Philip Miess <Phil_miess <AT> yahoo <DOT> com> |
5 |
CommitDate: Fri Apr 23 23:00:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/superposition.git/commit/?id=ba1e6d36 |
7 |
|
8 |
move opendht to supported python versions |
9 |
|
10 |
Signed-off-by: Philip Miess <Philip_Miess <AT> yahoo.com> |
11 |
|
12 |
net-libs/opendht/Manifest | 3 ++ |
13 |
net-libs/opendht/files/argon2_system.patch | 53 ++++++++++++++++++++++++++++++ |
14 |
net-libs/opendht/metadata.xml | 13 ++++++++ |
15 |
net-libs/opendht/opendht-1.10.1-r1.ebuild | 46 ++++++++++++++++++++++++++ |
16 |
4 files changed, 115 insertions(+) |
17 |
|
18 |
diff --git a/net-libs/opendht/Manifest b/net-libs/opendht/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..b7d9766 |
21 |
--- /dev/null |
22 |
+++ b/net-libs/opendht/Manifest |
23 |
@@ -0,0 +1,3 @@ |
24 |
+AUX argon2_system.patch 1995 BLAKE2B 704a654d5129979b02a269a1b83b5d49c41d4ba26dda12a91e9c5c8fd39d3e75df1fce677e908394bd58f3c1bc0189cfde96adf5a647982ca2d00250f80c471b SHA512 3fbe48411c15eef1fc9d3d94c3f365fd8f4114a7bdaf08b94937c6af0ff4719c179c118bee761f5e0d76ae2a4a6e7e0f3804dd37b53f08d73dcc77e959954acf |
25 |
+EBUILD opendht-1.10.1-r1.ebuild 1007 BLAKE2B 01bd780d978591ce1f3626492bb19d03951d8387a9a5f20478886eef09bd036eddebd26dda4f3e5366019d2400e1f5bfb7ea89fdb64da8e84ac624c68c94a94b SHA512 e2440cf73da85cf50605678c8e4814026c918d964061a6005726da12088cb1476836af25508148c79f9885798fd27dfbcf3789853e5b671ca02dbc33708d0f33 |
26 |
+MISC metadata.xml 459 BLAKE2B cb50e6e65860f5c8204d484dbab31856172c1c28a32c84286c79175dcffae7e8fe496dc2aef499037ee22a78599de0a83c2c758b3537067e78181eba19f42174 SHA512 f4df0ff9fb852ff4d6fc1979e4042d745ccf645ca2f12855563a2c0d6384708a49b475aa5dd2e7298c8821d95b70353177f438158cacc1feb8030bae48188dab |
27 |
|
28 |
diff --git a/net-libs/opendht/files/argon2_system.patch b/net-libs/opendht/files/argon2_system.patch |
29 |
new file mode 100644 |
30 |
index 0000000..6fe5363 |
31 |
--- /dev/null |
32 |
+++ b/net-libs/opendht/files/argon2_system.patch |
33 |
@@ -0,0 +1,53 @@ |
34 |
+Description: Use Gentoo's argon2 library |
35 |
+Bug: https://github.com/savoirfairelinux/opendht/issues/83 |
36 |
+Author: Alexandre Viau <aviau@××××××.org> |
37 |
+Last-Update: 2016-06-27 |
38 |
+--- ./CMakeLists.txt 2017-02-21 14:31:08.651579119 +0300 |
39 |
++++ ./CMakeLists.txt 2017-02-21 14:42:10.475425173 +0300 |
40 |
+@@ -62,10 +62,4 @@ |
41 |
+ src/securedht.cpp |
42 |
+ src/dhtrunner.cpp |
43 |
+- src/argon2/argon2.c |
44 |
+- src/argon2/core.c |
45 |
+- src/argon2/blake2/blake2b.c |
46 |
+- src/argon2/thread.c |
47 |
+- src/argon2/encoding.c |
48 |
+- src/argon2/ref.c |
49 |
+ src/indexation/pht.cpp |
50 |
+ src/log.cpp |
51 |
+@@ -123,5 +117,5 @@ |
52 |
+ target_link_libraries(opendht-static -flto -fuse-linker-plugin) |
53 |
+ endif () |
54 |
+- target_link_libraries(opendht-static gnutls nettle) |
55 |
++ target_link_libraries(opendht-static gnutls nettle argon2) |
56 |
+ install (TARGETS opendht-static DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht) |
57 |
+ endif () |
58 |
+@@ -138,5 +132,5 @@ |
59 |
+ target_link_libraries(opendht -flto -fuse-linker-plugin) |
60 |
+ endif () |
61 |
+- target_link_libraries(opendht gnutls nettle) |
62 |
++ target_link_libraries(opendht gnutls nettle argon2) |
63 |
+ install (TARGETS opendht DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht) |
64 |
+ endif () |
65 |
+ --- ./src/crypto.cpp 2017-02-21 14:31:07.969600917 +0300 |
66 |
++++ ./src/crypto.cpp 2017-02-21 14:47:02.711084414 +0300 |
67 |
+@@ -28,5 +28,5 @@ |
68 |
+ #include <nettle/aes.h> |
69 |
+ |
70 |
+-#include "argon2/argon2.h" |
71 |
++#include "argon2.h" |
72 |
+ } |
73 |
+ |
74 |
+--- ./tools/CMakeLists.txt 2017-02-21 14:31:08.632579726 +0300 |
75 |
++++ ./tools/CMakeLists.txt 2017-02-21 14:49:29.956687421 +0300 |
76 |
+@@ -4,7 +4,7 @@ |
77 |
+ add_executable (dhtchat dhtchat.cpp tools_common.h) |
78 |
+ |
79 |
+-target_link_libraries (dhtnode LINK_PUBLIC gnutls readline) |
80 |
+-target_link_libraries (dhtscanner LINK_PUBLIC gnutls readline) |
81 |
+-target_link_libraries (dhtchat LINK_PUBLIC gnutls readline) |
82 |
++target_link_libraries (dhtnode LINK_PUBLIC gnutls readline argon2) |
83 |
++target_link_libraries (dhtscanner LINK_PUBLIC gnutls readline argon2) |
84 |
++target_link_libraries (dhtchat LINK_PUBLIC gnutls readline argon2) |
85 |
+ |
86 |
+ if (OPENDHT_SHARED) |
87 |
|
88 |
diff --git a/net-libs/opendht/metadata.xml b/net-libs/opendht/metadata.xml |
89 |
new file mode 100644 |
90 |
index 0000000..e6029c5 |
91 |
--- /dev/null |
92 |
+++ b/net-libs/opendht/metadata.xml |
93 |
@@ -0,0 +1,13 @@ |
94 |
+<?xml version="1.0" encoding="UTF-8"?> |
95 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
96 |
+<pkgmetadata> |
97 |
+<longdescription>A lightweight C++11 Distributed Hash Table implementation</longdescription> |
98 |
+ <use> |
99 |
+ <flag name="python"> |
100 |
+ Install Python bindings. Requires <pkg>dev-python/cython</pkg>. |
101 |
+ </flag> |
102 |
+ <flag name="tools"> |
103 |
+ Install extra opendht tools (dhtchat, dhtnode and dhtscanner). |
104 |
+ </flag> |
105 |
+ </use> |
106 |
+</pkgmetadata> |
107 |
|
108 |
diff --git a/net-libs/opendht/opendht-1.10.1-r1.ebuild b/net-libs/opendht/opendht-1.10.1-r1.ebuild |
109 |
new file mode 100644 |
110 |
index 0000000..d77b472 |
111 |
--- /dev/null |
112 |
+++ b/net-libs/opendht/opendht-1.10.1-r1.ebuild |
113 |
@@ -0,0 +1,46 @@ |
114 |
+# Copyright 2021 Gentoo Authors |
115 |
+# Distributed under the terms of the GNU General Public License v2 |
116 |
+ |
117 |
+EAPI=6 |
118 |
+ |
119 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
120 |
+ |
121 |
+inherit eutils git-r3 cmake-utils python-r1 |
122 |
+ |
123 |
+DESCRIPTION="A lightweight C++11 Distributed Hash Table implementation" |
124 |
+HOMEPAGE="https://github.com/savoirfairelinux/opendht/blob/master/README.md" |
125 |
+EGIT_REPO_URI="https://github.com/savoirfairelinux/${PN}.git" |
126 |
+ |
127 |
+if [[ ${PV} == *9999* ]]; then |
128 |
+ EGIT_BRANCH="master" |
129 |
+ KEYWORDS="" |
130 |
+else |
131 |
+ EGIT_COMMIT="${PV}" |
132 |
+ KEYWORDS="~amd64 ~x86" |
133 |
+fi |
134 |
+ |
135 |
+LICENSE="GPL-3" |
136 |
+ |
137 |
+SLOT="0" |
138 |
+ |
139 |
+IUSE="doc python static-libs tools" |
140 |
+ |
141 |
+DEPEND=">=dev-libs/msgpack-2.0 |
142 |
+ >=net-libs/gnutls-3.3 |
143 |
+ python? ( dev-python/cython[$(python_gen_usedep python3_{7,8,9})] ) |
144 |
+ tools? ( sys-libs/readline:0 )" |
145 |
+RDEPEND="${DEPEND}" |
146 |
+ |
147 |
+src_configure() { |
148 |
+ local mycmakeargs=( |
149 |
+ -DOPENDHT_PYTHON=$(usex python) |
150 |
+ -DOPENDHT_STATIC=$(usex static-libs) |
151 |
+ -DOPENDHT_TOOLS=$(usex tools) |
152 |
+ ) |
153 |
+ cmake-utils_src_configure |
154 |
+} |
155 |
+ |
156 |
+src_install() { |
157 |
+ use !doc && rm README.md |
158 |
+ cmake-utils_src_install |
159 |
+} |