Gentoo Archives: gentoo-commits

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