Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/mumble/
Date: Wed, 07 Oct 2020 13:22:46
Message-Id: 1602076958.13a39f91ec37727d620a285aeca5e0ea45642a2f.polynomial-c@gentoo
1 commit: 13a39f91ec37727d620a285aeca5e0ea45642a2f
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 7 13:17:50 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 7 13:22:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13a39f91
7
8 media-sound/mumble: Bump to version 1.3.3
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-sound/mumble/Manifest | 1 +
14 media-sound/mumble/mumble-1.3.3.ebuild | 161 +++++++++++++++++++++++++++++++++
15 2 files changed, 162 insertions(+)
16
17 diff --git a/media-sound/mumble/Manifest b/media-sound/mumble/Manifest
18 index 2586c579c1e..64cd425a932 100644
19 --- a/media-sound/mumble/Manifest
20 +++ b/media-sound/mumble/Manifest
21 @@ -1,2 +1,3 @@
22 DIST mumble-1.3.1.tar.gz 8587417 BLAKE2B e0ff9911727ce74035cef658ff8ce21bfab6dcfd94306abe4a206853a1b2e2e4ddc7215e757f89559c30be64df4329dffc81618a0509df2b281f5b5b59d7de2f SHA512 f622ae5e4f7cd00ef60d225ee6db3cc13fcae5fdc1b03252d17ad6a18156526517e7d019f796b5600219e90e8662d095102fc6d61033fb20fd109afdf427a6d7
23 DIST mumble-1.3.2.tar.gz 8586828 BLAKE2B 38af4a0a2ab934388607745a2e31ea7310b7bc040bbe6ac32cc7128f2ac2949f5754090b6eaed3b0baaca6f76c42f004fdd093d88b8486d84187d063d01976e9 SHA512 22e23a682bc9c11420c6ae1d8ff01a80906ebbfb4f073ee25c6d2923d345d12031ddfeca3dabaaf5cf183b82b22eb3c788c88fa0f5313bc399e15795a945b874
24 +DIST mumble-1.3.3.tar.gz 8591354 BLAKE2B e5bf4d0a21f3c9af761b0892c4a5a7d86244d3283070976fe7a779a10567ffd857e0c19dad750cdbae40d851ce1dcf17b66c63a2cb5142a13358af6f272445dd SHA512 be4c6d4de82a1059bf30d4c7e3c44e41e4bb50dc4a811b7d0def808c52059ff7bcccf65140db940f18cc1bb66d58ea4dab23ba5dcfae3b8b904866751f32edb3
25
26 diff --git a/media-sound/mumble/mumble-1.3.3.ebuild b/media-sound/mumble/mumble-1.3.3.ebuild
27 new file mode 100644
28 index 00000000000..df7176498fd
29 --- /dev/null
30 +++ b/media-sound/mumble/mumble-1.3.3.ebuild
31 @@ -0,0 +1,161 @@
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 desktop multilib-build qmake-utils xdg
38 +
39 +DESCRIPTION="Mumble is an open source, low-latency, high quality voice chat software"
40 +HOMEPAGE="https://wiki.mumble.info"
41 +if [[ "${PV}" == 9999 ]] ; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://github.com/mumble-voip/mumble.git"
44 + EGIT_SUBMODULES=( '-*' celt-0.7.0-src celt-0.11.0-src themes/Mumble 3rdparty/rnnoise-src )
45 +else
46 + if [[ "${PV}" == *_pre* ]] ; then
47 + SRC_URI="https://dev.gentoo.org/~polynomial-c/dist/${P}.tar.xz"
48 + else
49 + MY_PV="${PV/_/-}"
50 + MY_P="${PN}-${MY_PV}"
51 + SRC_URI="https://github.com/mumble-voip/mumble/releases/download/${MY_PV}/${MY_P}.tar.gz
52 + https://dl.mumble.info/${MY_P}.tar.gz"
53 + S="${WORKDIR}/${P/_*}"
54 + fi
55 + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
56 +fi
57 +
58 +LICENSE="BSD MIT"
59 +SLOT="0"
60 +IUSE="+alsa +dbus debug g15 jack libressl +opus oss pch portaudio pulseaudio +rnnoise speech zeroconf"
61 +
62 +RDEPEND="
63 + dev-qt/qtcore:5
64 + dev-qt/qtgui:5
65 + dev-qt/qtnetwork:5[ssl]
66 + dev-qt/qtsql:5[sqlite]
67 + dev-qt/qtsvg:5
68 + dev-qt/qtwidgets:5
69 + dev-qt/qtxml:5
70 + >=dev-libs/protobuf-2.2.0:=
71 + >=media-libs/libsndfile-1.0.20[-minimal]
72 + >=media-libs/speex-1.2.0
73 + media-libs/speexdsp
74 + sys-apps/lsb-release
75 + x11-libs/libX11
76 + x11-libs/libXi
77 + alsa? ( media-libs/alsa-lib )
78 + dbus? ( dev-qt/qtdbus:5 )
79 + g15? ( app-misc/g15daemon )
80 + jack? ( virtual/jack )
81 + !libressl? ( >=dev-libs/openssl-1.0.0b:0= )
82 + libressl? ( dev-libs/libressl )
83 + opus? ( >=media-libs/opus-1.0.1 )
84 + portaudio? ( media-libs/portaudio )
85 + pulseaudio? ( media-sound/pulseaudio )
86 + speech? ( >=app-accessibility/speech-dispatcher-0.8.0 )
87 + zeroconf? ( net-dns/avahi[mdnsresponder-compat] )
88 +"
89 +DEPEND="${RDEPEND}
90 + >=dev-libs/boost-1.41.0
91 + x11-base/xorg-proto
92 +"
93 +BDEPEND="
94 + dev-qt/linguist-tools:5
95 + virtual/pkgconfig
96 +"
97 +
98 +# NB: qmake does not support multilib but it's fine to configure
99 +# for the native ABI here
100 +src_configure() {
101 + myuse() {
102 + [[ -n "${1}" ]] || die "myuse: No use option given"
103 + use ${1} || echo no-${1}
104 + }
105 +
106 + local conf_add=(
107 + bundled-celt
108 + no-bundled-opus
109 + no-bundled-speex
110 + no-embed-qt-translations
111 + no-server
112 + no-update
113 + $(myuse alsa)
114 + $(myuse dbus)
115 + $(usex debug 'symbols debug' release)
116 + $(myuse g15)
117 + $(usex jack '' no-jackaudio)
118 + $(myuse opus)
119 + $(myuse oss)
120 + $(myuse portaudio)
121 + $(myuse pulseaudio)
122 + $(myuse rnnoise)
123 + $(usex speech '' no-speechd)
124 + $(usex zeroconf '' no-bonjour)
125 + )
126 +
127 + use pch || conf_add+=( no-pch )
128 +
129 + eqmake5 "${S}/main.pro" -recursive \
130 + CONFIG+="${conf_add[*]}" \
131 + DEFINES+="PLUGIN_PATH=/usr/$(get_libdir)/mumble"
132 +}
133 +
134 +multilib_src_compile() {
135 + local emake_args=(
136 + # place libmumble* in a subdirectory
137 + DESTDIR_ADD="/${MULTILIB_ABI_FLAG}"
138 + {C,L}FLAGS_ADD="$(get_abi_CFLAGS)"
139 + )
140 + # build only overlay library for other ABIs
141 + multilib_is_native_abi || emake_args+=( -C overlay_gl )
142 + emake "${emake_args[@]}"
143 + emake clean
144 +}
145 +
146 +src_compile() {
147 + multilib_foreach_abi multilib_src_compile
148 +}
149 +
150 +multilib_src_install() {
151 + local dir=$(usex debug debug release)
152 + insinto /usr/$(get_libdir)/${PN}
153 + doins "${dir}/${MULTILIB_ABI_FLAG}"/libmumble.so*
154 + if multilib_is_native_abi; then
155 + dobin "${dir}"/mumble
156 + doins "${dir}"/libcelt0.so* "${dir}"/plugins/lib*.so*
157 + fi
158 +}
159 +
160 +src_install() {
161 + multilib_foreach_abi multilib_src_install
162 +
163 + newdoc README.Linux README
164 + dodoc CHANGES
165 + dobin scripts/mumble-overlay
166 +
167 + insinto /usr/share/services
168 + doins scripts/mumble.protocol
169 +
170 + domenu scripts/mumble.desktop
171 +
172 + doicon -s scalable icons/mumble.svg
173 +
174 + doman man/mumble-overlay.1
175 + doman man/mumble.1
176 +}
177 +
178 +pkg_preinst() {
179 + xdg_pkg_preinst
180 +}
181 +
182 +pkg_postinst() {
183 + xdg_pkg_postinst
184 + echo
185 + elog "Visit https://wiki.mumble.info/ for futher configuration instructions."
186 + elog "Run mumble-overlay to start the OpenGL overlay (after starting mumble)."
187 + echo
188 +}
189 +
190 +pkg_postrm() {
191 + xdg_pkg_postrm
192 +}