1 |
commit: ea88da7129af23664f97ef7c5e439a0cf654b951 |
2 |
Author: Josiah Mullins <jomull01 <AT> protonmail <DOT> com> |
3 |
AuthorDate: Wed Mar 25 14:02:08 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 28 14:21:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea88da71 |
7 |
|
8 |
net-libs/tox: bump to version 0.2.11 |
9 |
|
10 |
Changed from eclass "cmake-utlils" to eclass "cmake". |
11 |
Upstream made some minor changes. They disabled the test |
12 |
"tcp_relay" that the ebuild disabled in prior versions; |
13 |
removed the option "BUILD_AV_TEST" and they appear to |
14 |
have fixed the test "tox_many_tcp". |
15 |
|
16 |
Signed-off-by: Josiah Mullins <JoMUll01 <AT> protonmail.com> |
17 |
Closes: https://github.com/gentoo/gentoo/pull/15109 |
18 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
19 |
|
20 |
net-libs/tox/Manifest | 1 + |
21 |
net-libs/tox/tox-0.2.11.ebuild | 115 +++++++++++++++++++++++++++++++++++++++++ |
22 |
2 files changed, 116 insertions(+) |
23 |
|
24 |
diff --git a/net-libs/tox/Manifest b/net-libs/tox/Manifest |
25 |
index a8104b5ef54..c8133bf407b 100644 |
26 |
--- a/net-libs/tox/Manifest |
27 |
+++ b/net-libs/tox/Manifest |
28 |
@@ -1 +1,2 @@ |
29 |
DIST c-toxcore-0.2.10.tar.gz 515842 BLAKE2B 8e79f9a5045b5fef7825e5eb21644625607d86e472ec75ff45ff826712efa515682f9439181d52444b2a6a21472c6e78a3bea5bb7e356373faf733e2644a315d SHA512 8a6a78c52a67be0b727d0d3a8d1cece20ad716a2e694df0aa747eee7764f64c957458584f59db5e727a9803ed7b21adc1ad8d7e80fd6651e7774ca3504b38fc7 |
30 |
+DIST c-toxcore-0.2.11.tar.gz 507476 BLAKE2B 67e86a5e5c8da1c387a319e6726eaccec28608f165f0b165d12e379cc7d8080baf9b89f438804ab8e59a8690a11bebba7f2ef689554800312fe039da77e70cac SHA512 616b30423a170463b4445f6940e038fd9af820946c970260fcf72cc54d08d2615364b9f086869180e3ae26154ea92fea6e9a602366306bc40c3e1575e86350df |
31 |
|
32 |
diff --git a/net-libs/tox/tox-0.2.11.ebuild b/net-libs/tox/tox-0.2.11.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..4dbce23e16a |
35 |
--- /dev/null |
36 |
+++ b/net-libs/tox/tox-0.2.11.ebuild |
37 |
@@ -0,0 +1,115 @@ |
38 |
+# Copyright 1999-2020 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+ |
43 |
+inherit cmake systemd |
44 |
+ |
45 |
+MY_P="c-toxcore-${PV}" |
46 |
+DESCRIPTION="Encrypted P2P, messaging, and audio/video calling platform" |
47 |
+HOMEPAGE="https://tox.chat" |
48 |
+SRC_URI="https://github.com/TokTok/c-toxcore/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="GPL-3+" |
51 |
+SLOT="0/0.2" |
52 |
+KEYWORDS="~amd64 ~arm ~x86" |
53 |
+IUSE="+av daemon dht-node ipv6 log-debug +log-error log-info log-trace log-warn static-libs test" |
54 |
+ |
55 |
+REQUIRED_USE="?? ( log-debug log-error log-info log-trace log-warn ) |
56 |
+ daemon? ( dht-node )" |
57 |
+RESTRICT="!test? ( test )" |
58 |
+ |
59 |
+BDEPEND="virtual/pkgconfig" |
60 |
+DEPEND=" |
61 |
+ >dev-libs/libsodium-0.6.1:=[asm,urandom,-minimal] |
62 |
+ av? ( |
63 |
+ media-libs/libvpx |
64 |
+ media-libs/opus |
65 |
+ ) |
66 |
+ daemon? ( dev-libs/libconfig )" |
67 |
+RDEPEND=" |
68 |
+ ${DEPEND} |
69 |
+ daemon? ( |
70 |
+ acct-group/tox |
71 |
+ acct-user/tox |
72 |
+ )" |
73 |
+ |
74 |
+S="${WORKDIR}/${MY_P}" |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ cmake_src_prepare |
78 |
+ #remove faulty tests |
79 |
+ for testname in bootstrap lan_discovery save_compatibility; do |
80 |
+ sed -i -e "/^auto_test(${testname})$/d" CMakeLists.txt || die |
81 |
+ done |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ local mycmakeargs=( |
86 |
+ -DAUTOTEST=$(usex test) |
87 |
+ -DBOOTSTRAP_DAEMON=$(usex daemon) |
88 |
+ -DBUILD_MISC_TESTS=$(usex test) |
89 |
+ -DBUILD_TOXAV=$(usex av) |
90 |
+ -DDHT_BOOTSTRAP=$(usex dht-node) |
91 |
+ -DENABLE_SHARED=ON |
92 |
+ -DENABLE_STATIC=$(usex static-libs) |
93 |
+ -DMUST_BUILD_TOXAV=$(usex av)) |
94 |
+ if use test; then |
95 |
+ mycmakeargs+=( |
96 |
+ -DTEST_TIMEOUT_SECONDS=120 |
97 |
+ -DUSE_IPV6=$(usex ipv6)) |
98 |
+ else |
99 |
+ mycmakeargs+=(-DUSE_IPV6=OFF) |
100 |
+ fi |
101 |
+ |
102 |
+ if use log-trace; then |
103 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="TRACE") |
104 |
+ elif use log-debug; then |
105 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="DEBUG") |
106 |
+ elif use log-info; then |
107 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="INFO") |
108 |
+ elif use log-warn; then |
109 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="WARNING") |
110 |
+ elif use log-error; then |
111 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="ERROR") |
112 |
+ else |
113 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="") |
114 |
+ einfo "Logging disabled" |
115 |
+ fi |
116 |
+ |
117 |
+ cmake_src_configure |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ cmake_src_install |
122 |
+ |
123 |
+ if use daemon; then |
124 |
+ newinitd "${FILESDIR}"/initd tox-dht-daemon |
125 |
+ newconfd "${FILESDIR}"/confd tox-dht-daemon |
126 |
+ insinto /etc |
127 |
+ doins "${FILESDIR}"/tox-bootstrapd.conf |
128 |
+ systemd_dounit "${FILESDIR}"/tox-bootstrapd.service |
129 |
+ fi |
130 |
+} |
131 |
+ |
132 |
+pkg_postinst() { |
133 |
+ if use dht-node; then |
134 |
+ ewarn "The QA notice regarding libmisc_tools.so is known by the upstream" |
135 |
+ ewarn "developers and is on their TODO list." |
136 |
+ ewarn "" |
137 |
+ ewarn "There is currently an unresolved issue with tox DHT Bootstrap node" |
138 |
+ ewarn "that causes the program to be built with a null library reference." |
139 |
+ ewarn "This causes an infinite loop for certain revdep-rebuild commands." |
140 |
+ ewarn "If you aren't running a node, please consider disabling the dht-node use flag." |
141 |
+ fi |
142 |
+ if use daemon; then |
143 |
+ if [[ -f ${EROOT}/var/lib/tox-dht-bootstrap/key ]]; then |
144 |
+ ewarn "Backwards compatability with the bootstrap daemon might have been" |
145 |
+ ewarn "broken a while ago. To resolve this issue, REMOVE the following files:" |
146 |
+ ewarn " ${EROOT}/var/lib/tox-dht-bootstrap/key" |
147 |
+ ewarn " ${EROOT}/etc/tox-bootstrapd.conf" |
148 |
+ ewarn " ${EROOT}/run/tox-dht-bootstrap/tox-dht-bootstrap.pid" |
149 |
+ ewarn "Then just re-emerge net-libs/tox" |
150 |
+ fi |
151 |
+ fi |
152 |
+} |