Gentoo Archives: gentoo-commits

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