diff options
author | Esteve Varela Colominas <esteve.varela@gmail.com> | 2021-03-25 18:28:33 +0100 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-03-25 12:28:36 -0700 |
commit | 2bf7ec990e647dd5d6ba0599a8cda3a5289a2c20 (patch) | |
tree | 12efdee5bc8b062b54ebb6963d28a79b2aaec43b /media-libs/tg_owt | |
parent | virtual/qmail: drop removed qmail-ldap (diff) | |
download | gentoo-2bf7ec990e647dd5d6ba0599a8cda3a5289a2c20.tar.gz gentoo-2bf7ec990e647dd5d6ba0599a8cda3a5289a2c20.tar.bz2 gentoo-2bf7ec990e647dd5d6ba0599a8cda3a5289a2c20.zip |
media-libs/tg_owt: Take maintainership, bump to 0_pre20210309
Closes: https://bugs.gentoo.org/754012
Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'media-libs/tg_owt')
-rw-r--r-- | media-libs/tg_owt/Manifest | 3 | ||||
-rw-r--r-- | media-libs/tg_owt/metadata.xml | 9 | ||||
-rw-r--r-- | media-libs/tg_owt/tg_owt-0_pre20210309.ebuild | 76 |
3 files changed, 87 insertions, 1 deletions
diff --git a/media-libs/tg_owt/Manifest b/media-libs/tg_owt/Manifest index bc40b05702a9..bc7d4d6f8477 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 7a38bb900964..631cf5ff785f 100644 --- a/media-libs/tg_owt/metadata.xml +++ b/media-libs/tg_owt/metadata.xml @@ -1,5 +1,12 @@ <?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> </pkgmetadata> 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 000000000000..9b9e8fe2fc6d --- /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 +} |