From 74d56f28a2f607d00d00419054c0951ae60167dd Mon Sep 17 00:00:00 2001
From: Igor V Belousov <igor@belousovv.ru>
Date: Wed, 27 Sep 2023 19:28:03 +0300
Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?=
 =?UTF-8?q?=D0=BD=D1=8B=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC=D0=BC?=
 =?UTF-8?q?=D1=8B=20=09=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=BE:?=
 =?UTF-8?q?=20=20=20=20=20=20dev-util/mongodb-compass-bin/Manifest=20=09?=
 =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5=D0=BD=D0=BE=D0=B2?=
 =?UTF-8?q?=D0=B0=D0=BD=D0=BE:=20dev-util/mongodb-compass-bin/mongodb-comp?=
 =?UTF-8?q?ass-bin-1.39.4.ebuild=20->=20dev-util/mongodb-compass-bin/mongo?=
 =?UTF-8?q?db-compass-bin-1.40.0.ebuild=20=09=D0=B8=D0=B7=D0=BC=D0=B5?=
 =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=BE:=20=20=20=20=20=20www-client/yandex-br?=
 =?UTF-8?q?owser/Manifest=20=09=D0=BF=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?=
 =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BD=D0=BE:=20www-client/yandex-brows?=
 =?UTF-8?q?er/yandex-browser-23.7.1.1215=5Fp1.ebuild=20->=20www-client/yan?=
 =?UTF-8?q?dex-browser/yandex-browser-23.7.5.717=5Fp1.ebuild=20=09=D1=83?=
 =?UTF-8?q?=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=BE:=20=20=20=20=20=20=20www-p?=
 =?UTF-8?q?lugins/yandex-browser-ffmpeg-codecs-bin/Manifest=20=09=D1=83?=
 =?UTF-8?q?=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=BE:=20=20=20=20=20=20=20www-p?=
 =?UTF-8?q?lugins/yandex-browser-ffmpeg-codecs-bin/yandex-browser-ffmpeg-c?=
 =?UTF-8?q?odecs-bin-110.0.5481.100.ebuild?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 dev-util/mongodb-compass-bin/Manifest         |  2 +-
 ...uild => mongodb-compass-bin-1.40.0.ebuild} |  0
 www-client/yandex-browser/Manifest            |  2 +-
 ...ld => yandex-browser-23.7.5.717_p1.ebuild} |  6 +++-
 .../yandex-browser-ffmpeg-codecs-bin/Manifest |  1 -
 ...er-ffmpeg-codecs-bin-110.0.5481.100.ebuild | 31 -------------------
 6 files changed, 7 insertions(+), 35 deletions(-)
 rename dev-util/mongodb-compass-bin/{mongodb-compass-bin-1.39.4.ebuild => mongodb-compass-bin-1.40.0.ebuild} (100%)
 rename www-client/yandex-browser/{yandex-browser-23.7.1.1215_p1.ebuild => yandex-browser-23.7.5.717_p1.ebuild} (95%)
 delete mode 100644 www-plugins/yandex-browser-ffmpeg-codecs-bin/Manifest
 delete mode 100644 www-plugins/yandex-browser-ffmpeg-codecs-bin/yandex-browser-ffmpeg-codecs-bin-110.0.5481.100.ebuild

diff --git a/dev-util/mongodb-compass-bin/Manifest b/dev-util/mongodb-compass-bin/Manifest
index 692c42b..62b70fd 100644
--- a/dev-util/mongodb-compass-bin/Manifest
+++ b/dev-util/mongodb-compass-bin/Manifest
@@ -1 +1 @@
-DIST mongodb-compass_1.39.4_amd64.deb 101996014 BLAKE2B cf2f8d9eeaefcda7abb20fd491d7ff2f805f37eb2df5b238b47a6ca976a3f2a8d173d6e07388f028ddd8b7cd0af9426bd1842fc53d307c67c2cf403ff29487d3 SHA512 f1cfa9d5927e27ea9e43e1554b4dacfab8c3d55e69ad17af50556866832aac87276d348e167acf210d010c43ec1a03a76e9e57643f02b7ff2893b338cc3c2d1d
+DIST mongodb-compass_1.40.0_amd64.deb 103756968 BLAKE2B e805bb7d4bace9c371d4fcb20895e729f0d4d8cd49335e8fedfbb3b29a05a5c507358d54172240f98f96a39d79765f358e4e0c3d100c7e769792fa62a2bc309f SHA512 b5efccd063eb7f748e46abb146b572f8e3e8816756e4e2d64f23bc7053c6585c4cc1a2a73414663144027cfbe4fc1c0c7b6dc8184e83c377d47fc8cef1c023a9
diff --git a/dev-util/mongodb-compass-bin/mongodb-compass-bin-1.39.4.ebuild b/dev-util/mongodb-compass-bin/mongodb-compass-bin-1.40.0.ebuild
similarity index 100%
rename from dev-util/mongodb-compass-bin/mongodb-compass-bin-1.39.4.ebuild
rename to dev-util/mongodb-compass-bin/mongodb-compass-bin-1.40.0.ebuild
diff --git a/www-client/yandex-browser/Manifest b/www-client/yandex-browser/Manifest
index 1057ee2..3f9749a 100644
--- a/www-client/yandex-browser/Manifest
+++ b/www-client/yandex-browser/Manifest
@@ -1 +1 @@
-DIST yandex-browser-23.7.1.1215_p1.deb 135816048 BLAKE2B 3765f3a91bd981531e58a3bb0704d9ea3f2b60726991fe1697acc9b63fcc8a915179cde39694e2f56da3b87d31ec0bdb9b629f3285f6f0b536ae1ca7f98d4aa4 SHA512 b73bf132aa9fa182df3ce5ec311e9d8df4c7c9f4a86957f5673fdf0fcdb08d08322d4bc7dcfc787b8305bd2f7a66a4853ac0e206b1d40d569af81c22330a5e4d
+DIST yandex-browser-23.7.5.717_p1.deb 138245848 BLAKE2B 16a5c29a13297638f85d807d40ed1caeee6280b1edc4f013e4319b25190ddb4227f4222c6f05685ef0ae4633c39e05de56eebf02ea1e5905680c48a95ca993e2 SHA512 7d2d6241e1df25b0f944ae023eaae901ee481db69c33a2b22b6bef94d8d4230cc4513f559db6977df0db5a4cf7cff1a8536c148da4e1e9b35d28efba2c97e296
diff --git a/www-client/yandex-browser/yandex-browser-23.7.1.1215_p1.ebuild b/www-client/yandex-browser/yandex-browser-23.7.5.717_p1.ebuild
similarity index 95%
rename from www-client/yandex-browser/yandex-browser-23.7.1.1215_p1.ebuild
rename to www-client/yandex-browser/yandex-browser-23.7.5.717_p1.ebuild
index dc9379f..3a6550e 100644
--- a/www-client/yandex-browser/yandex-browser-23.7.1.1215_p1.ebuild
+++ b/www-client/yandex-browser/yandex-browser-23.7.5.717_p1.ebuild
@@ -56,7 +56,7 @@ RDEPEND="
 	x11-libs/pango[X]
 	x11-misc/xdg-utils
 	sys-libs/libudev-compat
-	www-plugins/yandex-browser-ffmpeg-codecs-bin
+	~media-video/ffmpeg-chromium-114
 "
 
 DEPEND="
@@ -83,6 +83,8 @@ src_prepare() {
 
 	rm -r "${YANDEX_HOME}/cron" || die "Failed ro remove cron hook"
 
+	rm "${YANDEX_HOME}/libffmpeg.so"
+
 	mv usr/share/doc/${MY_PN} usr/share/doc/${PF} || die "Failed to move docdir"
 
 	gunzip "usr/share/doc/${PF}/changelog.gz" "usr/share/man/man1/${MY_PN}.1.gz" || die "Failed to decompress docs"
@@ -115,6 +117,8 @@ src_install() {
 	# yandex_browser binary loads libudev.so.0 at runtime
 	dosym /usr/$(get_libdir)/libudev.so.0 /usr/$(get_libdir)/${MY_PN}/lib/libudev.so.0
 
+	dosym /usr/$(get_libdir)/chromium/libffmpeg.so.114 "${YANDEX_HOME}/libffmpeg.so" 
+
 	for icon in "${D}/${YANDEX_HOME}/product_logo_"*.png; do
 		size="${icon##*/product_logo_}"
 		size=${size%.png}
diff --git a/www-plugins/yandex-browser-ffmpeg-codecs-bin/Manifest b/www-plugins/yandex-browser-ffmpeg-codecs-bin/Manifest
deleted file mode 100644
index bad456d..0000000
--- a/www-plugins/yandex-browser-ffmpeg-codecs-bin/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST chromium-codecs-ffmpeg-extra_110.0.5481.100-0ubuntu0.18.04.1_amd64.deb 1108300 BLAKE2B befca27cdd764d9ee6442674f817576313b566f6b249e90962e1d6200362d27e000d26578de32f4c4f7c0400326c74bc26b1ec85906d912d6b17304dfc63f021 SHA512 d3c716d571594de19df219239fa3d34971b68ffcd78cb4bdfe18fd24ff26662fd43a382a4b9e0aa9d1f3e13c9dce551ab9cd5f47321acb0e58689ba0a02aa684
diff --git a/www-plugins/yandex-browser-ffmpeg-codecs-bin/yandex-browser-ffmpeg-codecs-bin-110.0.5481.100.ebuild b/www-plugins/yandex-browser-ffmpeg-codecs-bin/yandex-browser-ffmpeg-codecs-bin-110.0.5481.100.ebuild
deleted file mode 100644
index f4120f5..0000000
--- a/www-plugins/yandex-browser-ffmpeg-codecs-bin/yandex-browser-ffmpeg-codecs-bin-110.0.5481.100.ebuild
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit unpacker
-
-KEYWORDS="~amd64"
-DESCRIPTION="Multi-threaded ffmpeg codecs needed for the HTML5 <audio> and <video> tags"
-HOMEPAGE="http://www.chromium.org/Home"
-SLOT="0"
-LICENSE="BSD"
-RESTRICT="bindist strip mirror"
-
-DEBIAN_REVISION="0ubuntu0.18.04.1"
-_FULL_VERSION="${PV}-${DEBIAN_REVISION}"
-BASE_URI="http://launchpadlibrarian.net/651923070"
-SRC_URI="
-	amd64? ( ${BASE_URI}/chromium-codecs-ffmpeg-extra_${_FULL_VERSION}_amd64.deb )
-"
-S="${WORKDIR}"
-QA_PREBUILT="*"
-
-src_unpack() {
-	unpack_deb ${A}
-}
-
-src_install() {
-	insinto /opt/yandex/browser
-	doins usr/lib/chromium-browser/libffmpeg.so
-}