1 |
commit: ed6bd85ba15c5e719e2b77b932b153d529aa622e |
2 |
Author: Josiah Mullins <jomull01 <AT> protonmail <DOT> com> |
3 |
AuthorDate: Tue Oct 16 22:47:24 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 22 20:21:40 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed6bd85b |
7 |
|
8 |
net-libs/tox: bump to version 0.2.8 |
9 |
|
10 |
This commit: |
11 |
adds the use flag ipv6 to enable ipv6 tests; |
12 |
removes a line that deleted .la files; |
13 |
src_config() was modified |
14 |
a new maintainer was added in metadata.xml. |
15 |
|
16 |
Bug: https://bugs.gentoo.org/668264 |
17 |
Bug: https://bugs.gentoo.org/629828 |
18 |
Closes: https://bugs.gentoo.org/661692 |
19 |
Signed-off-by: Josiah Mullins <JoMull01 <AT> protonmail.com> |
20 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
21 |
Closes: https://github.com/gentoo/gentoo/pull/10161 |
22 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
23 |
|
24 |
net-libs/tox/Manifest | 1 + |
25 |
net-libs/tox/metadata.xml | 9 +++- |
26 |
net-libs/tox/tox-0.2.8.ebuild | 99 +++++++++++++++++++++++++++++++++++++++++++ |
27 |
3 files changed, 108 insertions(+), 1 deletion(-) |
28 |
|
29 |
diff --git a/net-libs/tox/Manifest b/net-libs/tox/Manifest |
30 |
index a8f6d5d5509..6236ccd4992 100644 |
31 |
--- a/net-libs/tox/Manifest |
32 |
+++ b/net-libs/tox/Manifest |
33 |
@@ -1,4 +1,5 @@ |
34 |
DIST c-toxcore-0.1.10.tar.gz 820090 BLAKE2B 071e530db2dd6ca387a6cd88f1145515ab8741017626fcb744fdc9940263b6c2604b456b6d1357bc78be5e33b544ecf882e608bc7b4a4227d44c5507e5dbad56 SHA512 428fee2d811d0b6d5d005f082aa06f95765794b1a8bc77ec4411bb9ec9085b99675535b88db50f5ad7313850a0bb3c54c4e2e8d8864cea7c0c7d81be9879b157 |
35 |
DIST c-toxcore-0.2.5.tar.gz 482160 BLAKE2B b56511d9cf7bd3a9d2b9177b33bdbf60ac571f6c95d7ee26e6ecae7c9395d8cdd4f6650025f8b727ad9b825b304c4555efaee0f17d60a26bc5bf599905ec27ab SHA512 a425a106054f29533b43b14cb8916706d04158d91b66cdada0e9e007aebd3f68a253b8519a75ca94bffba3adc57362b4e7c44e9356fce416f081a7eda6a61e18 |
36 |
+DIST c-toxcore-0.2.8.tar.gz 502907 BLAKE2B 0ca2c861b3cd982b471fac5cf8bdacd21c3248118846cc17e51f33ba04cf3da12a64578744e47daa27bb8613762a6f562eb550f0b7af05a66696412f6d0a6360 SHA512 a23a87a74fe97091b00ea76676a22578ed1e2426ac777146bb6efc984f1bfd3fff0d7fb149691155b8e2db56e1e088a1884536e5b717ff5c45a87b437f275735 |
37 |
DIST tox-0.1.6.tar.lz 314837 BLAKE2B 087a6f5d5ef55709b5f6188d661d556326bb3e6eac33e55f9faf598d433e33dabbd983ab452e948bff97f82cdc336e0fd48d3f0a6ec57551914884a809b9118d SHA512 57ed7cee2c621c57e24f5ab36d68d99414d9820cdb3e8b7c4390818222f9d885f352f9cf76c8eb522c238bebc7d420bcf3cdd5f6ab65b9801aadbd225765166c |
38 |
DIST tox-0_pre20160904.tar.gz 395495 BLAKE2B d59358c5ff904b17e9c5297a0ce2aff39777f8dd4bfeba1e5e78a284a5016921794d0e0699f91a99f53428809a859ce959e17b4ae9fffdd691005c377834057d SHA512 c0da52ac908141e97e96510a05431cbfb4b9aae81faf4c136c95e21b90a23e3bbe6db88303e48c0f4f3c74ca954229787564b7aa41bfb462afb0d8f8430cdaa1 |
39 |
|
40 |
diff --git a/net-libs/tox/metadata.xml b/net-libs/tox/metadata.xml |
41 |
index 0dc9808e046..99359c3fc50 100644 |
42 |
--- a/net-libs/tox/metadata.xml |
43 |
+++ b/net-libs/tox/metadata.xml |
44 |
@@ -1,7 +1,14 @@ |
45 |
<?xml version="1.0" encoding="UTF-8"?> |
46 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
47 |
<pkgmetadata> |
48 |
- <!-- maintainer-needed --> |
49 |
+ <maintainer type="person"> |
50 |
+ <email>JoMull01@××××××××××.com</email> |
51 |
+ <name>Josiah Mullins</name> |
52 |
+ </maintainer> |
53 |
+ <maintainer type="project"> |
54 |
+ <email>proxy-maint@g.o</email> |
55 |
+ <name>Proxy Maintainers</name> |
56 |
+ </maintainer> |
57 |
<use> |
58 |
<flag name="av">Adds support for audio and video.</flag> |
59 |
<flag name="no-log">Log level: 0 (no debug info logged)</flag> |
60 |
|
61 |
diff --git a/net-libs/tox/tox-0.2.8.ebuild b/net-libs/tox/tox-0.2.8.ebuild |
62 |
new file mode 100644 |
63 |
index 00000000000..d10d777179d |
64 |
--- /dev/null |
65 |
+++ b/net-libs/tox/tox-0.2.8.ebuild |
66 |
@@ -0,0 +1,99 @@ |
67 |
+# Copyright 1999-2018 Gentoo Authors |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+ |
70 |
+EAPI=6 |
71 |
+ |
72 |
+inherit cmake-utils systemd user |
73 |
+ |
74 |
+MY_P="c-toxcore-${PV}" |
75 |
+DESCRIPTION="Encrypted P2P, messaging, and audio/video calling platform" |
76 |
+HOMEPAGE="https://tox.chat" |
77 |
+SRC_URI="https://github.com/TokTok/c-toxcore/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" |
78 |
+ |
79 |
+LICENSE="GPL-3+" |
80 |
+SLOT="0/0.2" |
81 |
+KEYWORDS="~amd64 ~arm ~x86" |
82 |
+IUSE="+av daemon ipv6 no-log log-trace log-debug log-info log-warn +log-error static-libs test" |
83 |
+ |
84 |
+REQUIRED_USE="^^ ( no-log log-trace log-debug log-info log-warn log-error )" |
85 |
+ |
86 |
+RDEPEND=" |
87 |
+ av? ( media-libs/libvpx:= |
88 |
+ media-libs/opus ) |
89 |
+ daemon? ( dev-libs/libconfig ) |
90 |
+ >=dev-libs/libsodium-0.6.1:=[asm,urandom,-minimal]" |
91 |
+DEPEND="${RDEPEND} |
92 |
+ virtual/pkgconfig" |
93 |
+ |
94 |
+S="${WORKDIR}/${MY_P}" |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ cmake-utils_src_prepare |
98 |
+ #remove faulty tests |
99 |
+ for testname in bootstrap lan_discovery save_compatibility tcp_relay; do |
100 |
+ sed -i -e "/^auto_test(${testname})$/d" CMakeLists.txt || die |
101 |
+ done |
102 |
+} |
103 |
+ |
104 |
+src_configure() { |
105 |
+ local mycmakeargs=( |
106 |
+ -DBUILD_TOXAV=$(usex av) |
107 |
+ -DMUST_BUILD_TOXAV=$(usex av) |
108 |
+ -DBOOTSTRAP_DAEMON=$(usex daemon) |
109 |
+ -DENABLE_STATIC=$(usex static-libs) |
110 |
+ -DENABLE_SHARED=ON |
111 |
+ -DBUILD_AV_TEST=$(usex test) |
112 |
+ -DUSE_IPV6=$(usex test && usex ipv6) |
113 |
+ ) |
114 |
+ if use test; then |
115 |
+ mycmakeargs+=(-DTEST_TIMEOUT_SECONDS=120) |
116 |
+ fi |
117 |
+ if use no-log; then |
118 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="") |
119 |
+ einfo "logging disable" |
120 |
+ elif use log-trace; then |
121 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="TRACE") |
122 |
+ einfo "Trace logging enabled" |
123 |
+ elif use log-debug; then |
124 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="DEBUG") |
125 |
+ einfo "debug logging enabled" |
126 |
+ elif use log-info; then |
127 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="INFO") |
128 |
+ einfo "info logging enabled" |
129 |
+ elif use log-warn; then |
130 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="WARNING") |
131 |
+ einfo "warning logging enabled" |
132 |
+ else |
133 |
+ mycmakeargs+=(-DMIN_LOGGER_LEVEL="ERROR") |
134 |
+ einfo "error logging enabled" |
135 |
+ fi |
136 |
+ |
137 |
+ cmake-utils_src_configure |
138 |
+} |
139 |
+ |
140 |
+src_install() { |
141 |
+ cmake-utils_src_install |
142 |
+ |
143 |
+ if use daemon; then |
144 |
+ newinitd "${FILESDIR}"/initd tox-dht-daemon |
145 |
+ newconfd "${FILESDIR}"/confd tox-dht-daemon |
146 |
+ insinto /etc |
147 |
+ doins "${FILESDIR}"/tox-bootstrapd.conf |
148 |
+ systemd_dounit "${FILESDIR}"/tox-bootstrapd.service |
149 |
+ fi |
150 |
+} |
151 |
+ |
152 |
+pkg_postinst() { |
153 |
+ if use daemon; then |
154 |
+ enewgroup tox |
155 |
+ enewuser tox -1 -1 -1 tox |
156 |
+ if [[ -f ${EROOT%/}/var/lib/tox-dht-bootstrap/key ]]; then |
157 |
+ ewarn "Backwards compatability with the bootstrap daemon might have been" |
158 |
+ ewarn "broken a while ago. To resolve this issue, REMOVE the following files:" |
159 |
+ ewarn " ${EROOT%/}/var/lib/tox-dht-bootstrap/key" |
160 |
+ ewarn " ${EROOT%/}/etc/tox-bootstrapd.conf" |
161 |
+ ewarn " ${EROOT%/}/run/tox-dht-bootstrap/tox-dht-bootstrap.pid" |
162 |
+ ewarn "Then just re-emerge net-libs/tox" |
163 |
+ fi |
164 |
+ fi |
165 |
+} |