From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 080571382C5 for ; Thu, 25 Mar 2021 19:31:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3DCEDE07A5; Thu, 25 Mar 2021 19:31:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 15E7FE07B3 for ; Thu, 25 Mar 2021 19:31:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CBD97340CCF for ; Thu, 25 Mar 2021 19:31:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DAB335CF for ; Thu, 25 Mar 2021 19:31:32 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1616700516.2bf7ec990e647dd5d6ba0599a8cda3a5289a2c20.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/tg_owt/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/tg_owt/Manifest media-libs/tg_owt/metadata.xml media-libs/tg_owt/tg_owt-0_pre20210309.ebuild X-VCS-Directories: media-libs/tg_owt/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 2bf7ec990e647dd5d6ba0599a8cda3a5289a2c20 X-VCS-Branch: master Date: Thu, 25 Mar 2021 19:31:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6abbb525-3777-4f12-958f-996b1a9d52f8 X-Archives-Hash: 42a0dd98fca14c9fa094be644bbf38e5 commit: 2bf7ec990e647dd5d6ba0599a8cda3a5289a2c20 Author: Esteve Varela Colominas gmail com> AuthorDate: Thu Mar 25 17:28:33 2021 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Mar 25 19:28:36 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bf7ec99 media-libs/tg_owt: Take maintainership, bump to 0_pre20210309 Closes: https://bugs.gentoo.org/754012 Signed-off-by: Esteve Varela Colominas gmail.com> Signed-off-by: Georgy Yakovlev gentoo.org> media-libs/tg_owt/Manifest | 3 ++ media-libs/tg_owt/metadata.xml | 9 +++- media-libs/tg_owt/tg_owt-0_pre20210309.ebuild | 76 +++++++++++++++++++++++++++ 3 files changed, 87 insertions(+), 1 deletion(-) diff --git a/media-libs/tg_owt/Manifest b/media-libs/tg_owt/Manifest index bc40b05702a..bc7d4d6f847 100644 --- a/media-libs/tg_owt/Manifest +++ b/media-libs/tg_owt/Manifest @@ -1,2 +1,5 @@ +DIST libvpx-5b63f0f821e94f8072eb483014cfc33b05978bb9.tar.gz 5337558 BLAKE2B 795f613cee5efc4f6382b09063978b772ebb283fb1f5f621f5fbac018a6aca4721319de89dba02cf66202fe92bf9df681c27b94657a67acea66293b9cf3e1b0c SHA512 ad151972dc6077ddc520d7b6aa14d64e3183e010ceddd5acc6e2d9407f3476006a92461f61662b826feab623a65e748df60d5478af56bd657fbacbdb71dddec6 +DIST libyuv-ad890067f661dc747a975bc55ba3767fe30d4452.tar.gz 473845 BLAKE2B 664be51c166440e6b03fa98f65d907efc446800804058a5ea7fdf944e12cb1237a1487e83fbe9a2f1ce4c73521234e43632f921ad0333507737d81e1cb23ce8f SHA512 f97529b80a786e2e92443caabebd6d85a42641e10c3d2940b0f69bedf3b8a96c69c3247abddd059c4ddd6f78107ab7214222a4267a559fc2086c8edf5ea1afbc DIST tg_owt-0_pre20201105.tar.gz 18390526 BLAKE2B 115e93eb9dfd158779d2a521de9bca8cf0e0a38cff7d7a470b59d2941212a79cc7c33abf330c348ad70321486cd80d44644ceea61f9a86bbaee3ef6463a9e23d SHA512 de9d4490c3e68f17dd75e523596683395e67e91b51c5c7af61c0a51517779129cc965bc97d63b5054bdddb76d385ab33d6995d72b08316941fa2a72a93d1c3fa DIST tg_owt-0_pre20201112.tar.gz 18391959 BLAKE2B 85ad2880e9067daad94389708c0cb3638c090fa8281b8bf55d990dcdbf8eb898a70a930a0c0e904b0a682b9ebdb021134e18270ab760191b12cccba12dae95d5 SHA512 10f6ca1a6a82e9bd9af9e815b4d849fdace39332df61d32a9b706bffc3e8647b20f58e63a2fcc4e714e1480768ddd8f7ad21588f1e9762b3c056b205abfd5806 +DIST tg_owt-0_pre20210309.tar.gz 16159542 BLAKE2B 354992fca17f6217daa7294a8b60aa96f16b1198a07c79599ce676770cde068bf3ebf83c3935613ab181d4f7f23abbf2e4dd3ba41988b7505f27f537ada87fc2 SHA512 eca2c249d4837f8564218ea969390579b7f07c40879a80249310d978ba6d8865b85ec12e324fdba92af2d0b9bd501f2328fad5475028211013239dc35f508bb0 diff --git a/media-libs/tg_owt/metadata.xml b/media-libs/tg_owt/metadata.xml index 7a38bb90096..631cf5ff785 100644 --- a/media-libs/tg_owt/metadata.xml +++ b/media-libs/tg_owt/metadata.xml @@ -1,5 +1,12 @@ - + + esteve.varela@gmail.com + Esteve Varela Colominas + + + proxy-maint@gentoo.org + Proxy Maintainers + diff --git a/media-libs/tg_owt/tg_owt-0_pre20210309.ebuild b/media-libs/tg_owt/tg_owt-0_pre20210309.ebuild new file mode 100644 index 00000000000..9b9e8fe2fc6 --- /dev/null +++ b/media-libs/tg_owt/tg_owt-0_pre20210309.ebuild @@ -0,0 +1,76 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +TG_OWT_COMMIT="7f965710b93c4dadd7e6f1ac739e708694df7929" +LIBVPX_COMMIT="5b63f0f821e94f8072eb483014cfc33b05978bb9" +LIBYUV_COMMIT="ad890067f661dc747a975bc55ba3767fe30d4452" + +DESCRIPTION="WebRTC build for Telegram" +HOMEPAGE="https://github.com/desktop-app/tg_owt" +SRC_URI="https://github.com/desktop-app/tg_owt/archive/${TG_OWT_COMMIT}.tar.gz -> ${P}.tar.gz + https://github.com/webmproject/libvpx/archive/${LIBVPX_COMMIT}.tar.gz -> libvpx-${LIBVPX_COMMIT}.tar.gz + https://archive.org/download/libyuv-${LIBYUV_COMMIT}.tar/libyuv-${LIBYUV_COMMIT}.tar.gz" +# Fetch libyuv archive from: https://chromium.googlesource.com/libyuv/libyuv/+archive/${LIBYUV_COMMIT}.tar.gz + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" +IUSE="pulseaudio" + +# Bundled libs: +# - libvpx (media-libs/libvpx, requires git version, post v1.9.0) +# - libyuv (no stable versioning) +# - libsrtp (project uses private APIs) +# - pffft (no stable versioning, patched) +# Bundled libs that will be unbundled at a later date (upstream support is in the works): +# - net-libs/usrsctp +# - dev-libs/libevent:= +# - dev-cpp/abseil-cpp +# - media-libs/openh264:= +# dev-lang/yasm is required for libvpx +# media-libs/libjpeg-turbo is required for libyuv +DEPEND=" + dev-libs/openssl:= + dev-libs/protobuf:= + media-libs/alsa-lib + media-libs/libjpeg-turbo:= + media-libs/opus + media-video/ffmpeg:= + !pulseaudio? ( media-sound/apulse[sdk] ) + pulseaudio? ( media-sound/pulseaudio ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + virtual/pkgconfig + amd64? ( dev-lang/yasm ) +" + +S="${WORKDIR}/${PN}-${TG_OWT_COMMIT}" + +src_unpack() { + unpack "${P}.tar.gz" + unpack "libvpx-${LIBVPX_COMMIT}.tar.gz" + mv -T "libvpx-${LIBVPX_COMMIT}" "$S/src/third_party/libvpx/source/libvpx" || die + cd "$S/src/third_party/libyuv" || die + unpack "libyuv-${LIBYUV_COMMIT}.tar.gz" +} + +src_prepare() { + # Can cause race conditions when no webcam is available or webcam is blocked + # See https://bugs.debian.org/982556 + sed -i -e 's/#ifndef NO_MAIN_THREAD_WRAPPING/#if 0/' src/rtc_base/thread.cc || die + cmake_src_prepare +} + +src_configure() { + # Defined by -DCMAKE_BUILD_TYPE=Release, avoids crashes + # see https://bugs.gentoo.org/754012 + append-cppflags '-DNDEBUG' + + append-flags '-fPIC' + cmake_src_configure +}