Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libtgvoip/
Date: Mon, 28 Jun 2021 08:38:53
Message-Id: 1624869514.e17cfc3afda880e35680657ea8d01437a285817c.gyakovlev@gentoo
1 commit: e17cfc3afda880e35680657ea8d01437a285817c
2 Author: Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 27 22:01:57 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 28 08:38:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e17cfc3a
7
8 media-libs/libtgvoip: Revbump 2.4.4_p20210302-r2
9
10 Added slotted dependency for media-libs/tg_owt, so this package is
11 rebuilt when appropriate without bumping in the future.
12
13 Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com>
14 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
15
16 .../libtgvoip/libtgvoip-2.4.4_p20210302-r2.ebuild | 61 ++++++++++++++++++++++
17 1 file changed, 61 insertions(+)
18
19 diff --git a/media-libs/libtgvoip/libtgvoip-2.4.4_p20210302-r2.ebuild b/media-libs/libtgvoip/libtgvoip-2.4.4_p20210302-r2.ebuild
20 new file mode 100644
21 index 00000000000..96b273ee47f
22 --- /dev/null
23 +++ b/media-libs/libtgvoip/libtgvoip-2.4.4_p20210302-r2.ebuild
24 @@ -0,0 +1,61 @@
25 +# Copyright 2020-2021 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +inherit flag-o-matic autotools
31 +
32 +DESCRIPTION="VoIP library for Telegram clients"
33 +HOMEPAGE="https://github.com/telegramdesktop/libtgvoip"
34 +
35 +LIBTGVOIP_COMMIT="0c0a6e476df58ee441490da72ca7a32f83e68dbd"
36 +SRC_URI="https://github.com/telegramdesktop/libtgvoip/archive/${LIBTGVOIP_COMMIT}.tar.gz -> ${P}.tar.gz"
37 +S="${WORKDIR}/${PN}-${LIBTGVOIP_COMMIT}"
38 +
39 +LICENSE="Unlicense"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~ppc64"
42 +IUSE="+dsp +alsa pulseaudio"
43 +
44 +DEPEND="
45 + media-libs/opus:=
46 + alsa? ( media-libs/alsa-lib )
47 + dsp? ( media-libs/tg_owt:= )
48 + pulseaudio? ( media-sound/pulseaudio )
49 +"
50 +RDEPEND="${DEPEND}"
51 +BDEPEND="virtual/pkgconfig"
52 +REQUIRED_USE="
53 + || ( alsa pulseaudio )
54 +"
55 +
56 +src_prepare() {
57 + # Will be controlled by us
58 + sed -i -e '/^CFLAGS += -DTGVOIP_NO_DSP/d' Makefile.am || die
59 + # https://bugs.gentoo.org/717210
60 + echo 'libtgvoip_la_LIBTOOLFLAGS = --tag=CXX' >> Makefile.am || die
61 + default
62 + eautoreconf
63 +}
64 +
65 +src_configure() {
66 + local myconf=(
67 + --disable-static
68 + --disable-dsp # WebRTC is linked from tg_owt
69 + $(use_with alsa)
70 + $(use_with pulseaudio pulse)
71 + )
72 + if use dsp; then
73 + append-cppflags '-I/usr/include/tg_owt'
74 + append-cppflags '-I/usr/include/tg_owt/third_party/abseil-cpp'
75 + append-libs '-ltg_owt'
76 + else
77 + append-cppflags '-DTGVOIP_NO_DSP'
78 + fi
79 + econf "${myconf[@]}"
80 +}
81 +
82 +src_install() {
83 + default
84 + find "${D}" -name '*.la' -delete || die
85 +}