public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/tg_owt/
Date: Wed, 21 May 2025 20:53:05 +0000 (UTC)	[thread overview]
Message-ID: <1747860712.9eb1e1f700c318f10c370d0f9a8febcd78de2649.sam@gentoo> (raw)

commit:     9eb1e1f700c318f10c370d0f9a8febcd78de2649
Author:     Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
AuthorDate: Wed May 21 19:30:34 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 21 20:51:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9eb1e1f7

media-libs/tg_owt: Bump to 0_pre20250515

Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42194
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/tg_owt/Manifest                    |   1 +
 media-libs/tg_owt/tg_owt-0_pre20250515.ebuild | 121 ++++++++++++++++++++++++++
 2 files changed, 122 insertions(+)

diff --git a/media-libs/tg_owt/Manifest b/media-libs/tg_owt/Manifest
index 1200b9bf8eca..ef566ce6c748 100644
--- a/media-libs/tg_owt/Manifest
+++ b/media-libs/tg_owt/Manifest
@@ -1,3 +1,4 @@
 DIST libsrtp-a566a9cfcd619e8327784aa7cff4a1276dc1e895.tar.gz 636836 BLAKE2B 496afcb80f67a8f76104e338408d4930475daadaf3f7cd2d673336aef938986876995e475a4d932424d7f99f6a339bad360f566d6fd3719316eaf8241970cf8d SHA512 930e665434e80e8a26d81b785563c915619b546a9a0af0455a14278816997074add852fae107027f4899415cb0ab47ffbf9492bea76b94b10f558b52098bbf92
 DIST libyuv-04821d1e7d60845525e8db55c7bcd41ef5be9406.tar.bz2 418856 BLAKE2B a72e1f75491785b272b0ded46368a67aadb643278e5764d16dcd902ab7e4139d8664ffbacd940f30113ce3171e0b0846fe0d6111ced17c5b08f326cd61b2af14 SHA512 ff9cfbb61a1361e959740d00c741dc6fbe71ca7c61770abc35f70aada402df3884d7d5992ae79472dfe3d7641154d4f13065593fee41bf8eae924e26cc654117
 DIST tg_owt-0_pre20241202.tar.gz 11722610 BLAKE2B effe7b833db593bdbf5d923b362cbc8839853e068d22ac1efd39ae8287eac0aeb71e74bf4476fa2a1a1b67c4e7370c6bc3b28d97e510c50b9621761b9b7be219 SHA512 10b7d0686fabc289694c659bcd138737b33375d0aad936e0cf8dcdebeebf30e7c0e1af7a9196c4275bcbb88b5867bcefa8179564980941895a6b7d9bfae822b2
+DIST tg_owt-0_pre20250515.tar.gz 11719653 BLAKE2B 804a72d97b535efb6e6319e609763f2b641cb9962e59d4afd5ea5b98b9b49b5c32344341ca6096899e806c3a115f784975a442c758896913a162a2d96a77703a SHA512 3930584575a61b5c8aeea871be85d0700ccc32b852adb10293ab4267066cfcf6857ceea51b267507f5d23e088c331fb7b42ebccbb71ef9b8a2ecdba60c2ca2e3

diff --git a/media-libs/tg_owt/tg_owt-0_pre20250515.ebuild b/media-libs/tg_owt/tg_owt-0_pre20250515.ebuild
new file mode 100644
index 000000000000..1630229e5248
--- /dev/null
+++ b/media-libs/tg_owt/tg_owt-0_pre20250515.ebuild
@@ -0,0 +1,121 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="WebRTC build for Telegram"
+HOMEPAGE="https://github.com/desktop-app/tg_owt"
+
+TG_OWT_COMMIT="232ec410502e773024e8d83cfae83a52203306c0"
+LIBYUV_COMMIT="04821d1e7d60845525e8db55c7bcd41ef5be9406"
+LIBSRTP_COMMIT="a566a9cfcd619e8327784aa7cff4a1276dc1e895"
+SRC_URI="https://github.com/desktop-app/tg_owt/archive/${TG_OWT_COMMIT}.tar.gz -> ${P}.tar.gz
+	https://gitlab.com/chromiumsrc/libyuv/-/archive/${LIBYUV_COMMIT}/libyuv-${LIBYUV_COMMIT}.tar.bz2"
+S="${WORKDIR}/${PN}-${TG_OWT_COMMIT}"
+# Upstream libyuv: https://chromium.googlesource.com/libyuv/libyuv
+
+LICENSE="BSD"
+SLOT="0/${PV##*pre}"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv"
+IUSE="screencast +X"
+
+# This package's USE flags may change the ABI and require a rebuild of
+#  dependent pacakges. As such, one should make sure to depend on
+#  media-libs/tg_owt[x=,y=,z=] for any package that uses this.
+# Furthermore, the -DNDEBUG preprocessor flag should be defined by any
+#  dependent package, failure to do so will change the ABI in the header files.
+
+# Bundled libs:
+# - libyuv (no stable versioning, www-client/chromium and media-libs/libvpx bundle it)
+# - pffft (no stable versioning, patched)
+RDEPEND="
+	>=dev-cpp/abseil-cpp-20240722.0:=
+	dev-libs/openssl:=
+	dev-libs/protobuf:=
+	media-libs/libjpeg-turbo:=
+	>=media-libs/libvpx-1.10.0:=
+	media-libs/openh264:=
+	media-libs/opus
+	media-video/ffmpeg:=
+	net-libs/libsrtp:2=
+	dev-libs/crc32c
+	screencast? (
+		dev-libs/glib:2
+		>=media-video/pipewire-1.0.7:=
+	)
+	X? (
+		x11-libs/libX11
+		x11-libs/libXcomposite
+		x11-libs/libXdamage
+		x11-libs/libXext
+		x11-libs/libXfixes
+		x11-libs/libXrender
+		x11-libs/libXrandr
+		x11-libs/libXtst
+	)
+"
+DEPEND="${RDEPEND}
+	screencast? (
+		media-libs/libglvnd[X]
+		media-libs/mesa
+		x11-libs/libdrm
+	)
+"
+BDEPEND="
+	virtual/pkgconfig
+	X? ( x11-base/xorg-proto )
+"
+
+src_unpack() {
+	default
+
+	mv -T "libyuv-${LIBYUV_COMMIT}" "${S}/src/third_party/libyuv" || die
+}
+
+src_prepare() {
+	# The sources for these aren't available, avoid needing them
+	sed -e '/include(cmake\/libcrc32c.cmake)/d' \
+		-e '/include(cmake\/libabsl.cmake)/d' -i CMakeLists.txt || die
+
+	# "lol" said the scorpion, "lmao"
+	sed -i '/if (BUILD_SHARED_LIBS)/{n;n;s/WARNING/DEBUG/}' CMakeLists.txt || die
+
+	cmake_src_prepare
+}
+
+src_configure() {
+	# Defined by -DCMAKE_BUILD_TYPE=Release, avoids crashes
+	# See https://bugs.gentoo.org/754012
+	# EAPI 8 still wipes this flag.
+	append-cppflags '-DNDEBUG'
+
+	local mycmakeargs=(
+		-DTG_OWT_USE_X11=$(usex X)
+		-DTG_OWT_USE_PIPEWIRE=$(usex screencast)
+	)
+	cmake_src_configure
+}
+
+src_install() {
+	cmake_src_install
+
+	# Save about 15MB of useless headers
+	rm -r "${ED}/usr/include/tg_owt/rtc_base/third_party" || die
+	rm -r "${ED}/usr/include/tg_owt/common_audio/third_party" || die
+	rm -r "${ED}/usr/include/tg_owt/modules/third_party" || die
+	rm -r "${ED}/usr/include/tg_owt/third_party" || die
+
+	# Install a few headers anyway, as required by net-im/telegram-desktop...
+	local headers=(
+		third_party/libyuv/include
+		rtc_base/third_party/sigslot
+		rtc_base/third_party/base64
+	)
+	for dir in "${headers[@]}"; do
+		pushd "${S}/src/${dir}" > /dev/null || die
+		find -type f -name "*.h" -exec install -Dm644 '{}' "${ED}/usr/include/tg_owt/${dir}/{}" \; || die
+		popd > /dev/null || die
+	done
+}


             reply	other threads:[~2025-05-21 20:53 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-21 20:53 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-09-23 12:08 [gentoo-commits] repo/gentoo:master commit in: media-libs/tg_owt/ Arthur Zamarin
2025-06-22 19:27 Arthur Zamarin
2025-01-06  2:05 Yixun Lan
2025-01-03 17:22 Sam James
2025-01-03  1:17 Yixun Lan
2025-01-03  1:17 Yixun Lan
2024-12-04  3:14 Yixun Lan
2024-10-23 10:49 Yixun Lan
2024-09-07 23:36 Yixun Lan
2024-09-04  2:32 Yixun Lan
2024-03-03 22:12 Sam James
2024-01-02  6:06 WANG Xuerui
2023-10-31  1:07 Yixun Lan
2023-10-07 22:26 Ionen Wolkens
2023-05-18  7:12 Joonas Niilola
2023-05-18  7:12 Joonas Niilola
2023-05-07  7:22 Sam James
2023-03-30 17:57 Arthur Zamarin
2023-01-22 23:36 Georgy Yakovlev
2023-01-21 16:53 Sam James
2022-12-02 22:49 Georgy Yakovlev
2022-08-03 17:40 Georgy Yakovlev
2022-07-20  5:15 Sam James
2022-03-20 20:40 Arthur Zamarin
2022-02-07  6:32 Sam James
2022-01-10  8:38 Agostino Sarubbo
2022-01-07 17:01 Georgy Yakovlev
2022-01-07 17:01 Georgy Yakovlev
2022-01-07 17:01 Georgy Yakovlev
2021-12-10 21:31 Georgy Yakovlev
2021-11-16 10:08 Jakov Smolić
2021-09-24 17:33 Georgy Yakovlev
2021-08-24 18:41 Georgy Yakovlev
2021-08-04  6:39 Agostino Sarubbo
2021-06-28  8:38 Georgy Yakovlev
2021-06-28  8:38 Georgy Yakovlev
2021-06-28  8:38 Georgy Yakovlev
2021-06-12  1:18 Sam James
2021-05-03 17:01 Georgy Yakovlev
2021-04-23 19:06 Georgy Yakovlev
2021-04-22 12:08 Sam James
2021-03-26 21:30 Georgy Yakovlev
2021-03-26  0:04 Sam James
2021-03-25 21:54 Georgy Yakovlev
2021-03-25 21:48 Georgy Yakovlev
2021-03-25 19:31 Georgy Yakovlev
2021-03-25 19:31 Georgy Yakovlev
2021-02-28 20:26 Georgy Yakovlev
2020-11-24  5:53 Georgy Yakovlev
2020-11-10 21:20 Georgy Yakovlev
2020-11-10 21:20 Georgy Yakovlev
2020-11-05 17:54 Georgy Yakovlev
2020-11-01  5:30 Sam James
2020-10-31  0:40 Georgy Yakovlev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1747860712.9eb1e1f700c318f10c370d0f9a8febcd78de2649.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox