diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
commit | 8d5dbd847cbc704a6a06405856e94b461011afe3 (patch) | |
tree | 4d26462d027b14926335894749d2e01d982234d0 /media-libs/libtgvoip | |
parent | 5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (diff) |
gentoo resync : 27.03.2021
Diffstat (limited to 'media-libs/libtgvoip')
-rw-r--r-- | media-libs/libtgvoip/Manifest | 4 | ||||
-rw-r--r-- | media-libs/libtgvoip/libtgvoip-2.4.4_p20210302.ebuild | 63 | ||||
-rw-r--r-- | media-libs/libtgvoip/metadata.xml | 9 |
3 files changed, 74 insertions, 2 deletions
diff --git a/media-libs/libtgvoip/Manifest b/media-libs/libtgvoip/Manifest index ee5edad420ed..332c7dc77c8c 100644 --- a/media-libs/libtgvoip/Manifest +++ b/media-libs/libtgvoip/Manifest @@ -1,3 +1,5 @@ DIST libtgvoip-2.4.4_p20201030.tar.gz 1091098 BLAKE2B 81815a0c9c7f62175493af8f3f56064f6a6a0167351d4f8baf5c846744dc03d325c106dfafb49589702e4f461865e5528395f379142af49b8722f490fdd57d1b SHA512 58dfd537c378c7e9772eab374f25b7d68d26b6db1f71bb9a88e6405e2f2e3cd0ebc2fc94733ce787288365ac9669fc50f8d5a3ab2f2900683c6399ca43172945 +DIST libtgvoip-2.4.4_p20210302.tar.gz 1097895 BLAKE2B 36551fb915ee5b5895d8ea68196be5a910739e46886c879bd9f932fa2294a94c22ec3215a94d9bad05a5d24519291676a686c594b74f513f594eb063c83de012 SHA512 d8e27be18e521f367a30c63665300496dbd8fe250261fddf5576325afc27d855e280ee31e46d5fcc2294d79a91c4003732e22f2bfb6db0472e357508b5053d29 EBUILD libtgvoip-2.4.4_p20201030.ebuild 1182 BLAKE2B 061dd2a7e004bc6b725c5980068cd9e20f1fb93d9d936db1aa56401e9a5d08726d4a5cb685b3f80dcb942b129b85cfd0ff9e0413ff1c15643cecf9de2e31b51e SHA512 92fdc837c12aecf4867243ff81e19d7794208366f55f9aad0e3b2a00f24366d2e36dc4fbb70e28a3c4dd12a171031b970e7d4912820347c3fb3d22a813de86ed -MISC metadata.xml 300 BLAKE2B 0c717bfe3ade5077d80410fa8829818fe603d0937dc7b1770794e227f86d42248f86b7243f08c21bd57fe9fecc284c6b9dadbab49b3cc66518c66b1839fc124a SHA512 af4492f640c0cf0a67429b0e1a164c1cf35bb397ddd460598e5efe35d6105c2689d984d7918035b925893e4a32b26a588d3157730f292e96c4263c34ddcb61f1 +EBUILD libtgvoip-2.4.4_p20210302.ebuild 1510 BLAKE2B 8507d049a316d35705639658944aafdc71e7406d4fe15651651fc0cbd9fe4eba365a5226411e5335134767489c3df7a9fa9a9e5ea969a6ea29d90a7fa49b20ad SHA512 38b1b68315f3984168a65868ff1475a7e39e5c5f97280b9cc2e4ff8de3dfe7e7e3eab37d6f9e305dbae76178f968b757f4589cfb045c92c7836fa415ae0d371c +MISC metadata.xml 542 BLAKE2B ddf38189857cb4216e85e9a958daa176e8d030b907735f9d57e25ce5b71d0a6179300bb9064960e4a82532dedf329fc85ee98025faf0494b17b74a00fcb8d056 SHA512 e455e7c38f6171064d6c3923fa04373bd6e902e40d6e2c63f7a1ca8adc8245b93ef5b67051ee3fd3986a3efd0868c3c631b7ae36613f7978eba7441322711c72 diff --git a/media-libs/libtgvoip/libtgvoip-2.4.4_p20210302.ebuild b/media-libs/libtgvoip/libtgvoip-2.4.4_p20210302.ebuild new file mode 100644 index 000000000000..d2e68c759f60 --- /dev/null +++ b/media-libs/libtgvoip/libtgvoip-2.4.4_p20210302.ebuild @@ -0,0 +1,63 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic autotools + +LIBTGVOIP_COMMIT="0c0a6e476df58ee441490da72ca7a32f83e68dbd" + +DESCRIPTION="VoIP library for Telegram clients" +HOMEPAGE="https://github.com/telegramdesktop/libtgvoip" +SRC_URI="https://github.com/telegramdesktop/libtgvoip/archive/${LIBTGVOIP_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" +IUSE="+dsp libressl pulseaudio" + +DEPEND=" + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + media-libs/opus:= + media-libs/alsa-lib + !pulseaudio? ( media-sound/apulse[sdk] ) + pulseaudio? ( media-sound/pulseaudio ) + dsp? ( media-libs/tg_owt ) +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/${PN}-${LIBTGVOIP_COMMIT}" + +src_prepare() { + # Will be controlled by us + sed -i -e '/^CFLAGS += -DTGVOIP_NO_DSP/d' Makefile.am || die + default + # https://bugs.gentoo.org/717210 + echo 'libtgvoip_la_LIBTOOLFLAGS = --tag=CXX' >> Makefile.am || die + eautoreconf +} + +src_configure() { + local myconf=( + --disable-static + --with-alsa + --with-pulse + --disable-dsp # WebRTC is linked from tg_owt + ) + append-cppflags '-DNDEBUG' + if use dsp; then + append-cppflags '-I/usr/include/tg_owt' + append-cppflags '-I/usr/include/tg_owt/third_party/abseil-cpp' + append-libs '-ltg_owt' + else + append-cppflags '-DTGVOIP_NO_DSP' + fi + econf "${myconf[@]}" +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die +} diff --git a/media-libs/libtgvoip/metadata.xml b/media-libs/libtgvoip/metadata.xml index 442b636ea787..d05783cd3861 100644 --- a/media-libs/libtgvoip/metadata.xml +++ b/media-libs/libtgvoip/metadata.xml @@ -1,7 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="person" proxied="yes"> + <email>esteve.varela@gmail.com</email> + <name>Esteve Varela Colominas</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> <use> <flag name="dsp">Enable signal processing (echo cancellation, noise suppression, and automatic gain control)</flag> </use> |