|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
|
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
CHROMIUM_LANGS="cs de en-US es fr it ja kk pt-BR pt-PT ru tr uk uz zh-CN zh-TW"
|
|
|
|
|
EAPI=8
|
|
|
|
|
#CHROMIUM_LANGS="cs de en-US es fr it ja kk pt-BR pt-PT ru tr uk uz zh-CN zh-TW"
|
|
|
|
|
inherit chromium-2 desktop unpacker pax-utils xdg
|
|
|
|
|
|
|
|
|
|
DESCRIPTION="The web browser from Yandex"
|
|
|
|
@ -68,8 +68,7 @@ RDEPEND="
|
|
|
|
|
x11-libs/pango
|
|
|
|
|
x11-misc/xdg-utils
|
|
|
|
|
ffmpeg-codecs? (
|
|
|
|
|
app-misc/jq
|
|
|
|
|
>=sys-libs/glibc-2.34
|
|
|
|
|
media-video/ffmpeg-chromium:114
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
DEPEND="
|
|
|
|
@ -111,9 +110,11 @@ src_prepare() {
|
|
|
|
|
# Fix Gentoo bug https://bugs.gentoo.org/709450
|
|
|
|
|
mv usr/share/appdata usr/share/metainfo
|
|
|
|
|
|
|
|
|
|
pushd "${BROWSER_HOME}/locales" > /dev/null || die
|
|
|
|
|
chromium_remove_language_paks
|
|
|
|
|
popd > /dev/null || die
|
|
|
|
|
if use ffmpeg-codecs; then
|
|
|
|
|
rm -f ${BROWSER_HOME}/libffmpeg.so || die
|
|
|
|
|
ln -s /usr/lib64/chromium/libffmpeg.so.114 ${BROWSER_HOME}/libffmpeg.so && \
|
|
|
|
|
elog "Ffmpeg codec update for yandex-browser completed in /${BROWSER_HOME}/libffmpeg.so"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
default
|
|
|
|
|
|
|
|
|
@ -145,12 +146,12 @@ src_install() {
|
|
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
|
xdg_desktop_database_update
|
|
|
|
|
if use ffmpeg-codecs; then
|
|
|
|
|
bash "/${BROWSER_HOME}/update-ffmpeg" && elog "Ffmpeg codec update for yandex-browser completed"
|
|
|
|
|
else
|
|
|
|
|
ewarn "For a complete support for video and audio in the HTML5 format"
|
|
|
|
|
ewarn "see: https://yandex.ru/support/browser/working-with-files/video.html#problems__video-linux"
|
|
|
|
|
fi
|
|
|
|
|
# if use ffmpeg-codecs; then
|
|
|
|
|
# bash "/${BROWSER_HOME}/update-ffmpeg" && elog "Ffmpeg codec update for yandex-browser completed"
|
|
|
|
|
# else
|
|
|
|
|
# ewarn "For a complete support for video and audio in the HTML5 format"
|
|
|
|
|
# ewarn "see: https://yandex.ru/support/browser/working-with-files/video.html#problems__video-linux"
|
|
|
|
|
# fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pkg_postrm() {
|