From f6c65a0c8ebec97166ee4c43082debb71712174f Mon Sep 17 00:00:00 2001 From: Igor V Belousov Date: Sun, 5 Feb 2023 19:13:19 +0300 Subject: [PATCH] Update yandex browser --- www-client/yandex-browser/Manifest | 2 +- .../yandex-browser-22.11.3.838_p1.ebuild | 128 ------------------ 2 files changed, 1 insertion(+), 129 deletions(-) delete mode 100644 www-client/yandex-browser/yandex-browser-22.11.3.838_p1.ebuild diff --git a/www-client/yandex-browser/Manifest b/www-client/yandex-browser/Manifest index 1af926b..23ab962 100644 --- a/www-client/yandex-browser/Manifest +++ b/www-client/yandex-browser/Manifest @@ -1 +1 @@ -DIST yandex-browser-22.11.3.838_p1.deb 113216876 BLAKE2B 5e213e38e1b377824a607c9ce207ab7910dfba8c0fed226817b0063baabc323c1b2771ec1cbe0bb0922600fcfc7ac34bfb123972332f99550422da76307fde7e SHA512 c74a83202806010da8db9bc948fb8d6eefec081616bfcfcd37f395a51bda8a23376418b5b06419f84031dea4385b38c8a2ecb3d163a9fe73a1060ab3708075d8 +DIST yandex-browser-23.1.1.1114_p1.deb 119777068 BLAKE2B c9a8743427e97e5dda5821c4ab2511e814457ecd0b4ccbc5fd87798c4d0cca23fc9a75691386f12ab5055bf7a294cc8becbfb023fb9deedfbdbff58531de8b62 SHA512 1df64e3e86957aca31bc875470c5a60c96f84b5dae9a675cff5c1a928375aab09e2be908f04d949949ea17a101fe8d62c8aee04e2d7c4c223aea5c8b000faf54 diff --git a/www-client/yandex-browser/yandex-browser-22.11.3.838_p1.ebuild b/www-client/yandex-browser/yandex-browser-22.11.3.838_p1.ebuild deleted file mode 100644 index dc9379f..0000000 --- a/www-client/yandex-browser/yandex-browser-22.11.3.838_p1.ebuild +++ /dev/null @@ -1,128 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -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 unpacker desktop wrapper pax-utils - -RESTRICT="bindist mirror strip" - -MY_PV="${PV/_p/-}" - -if [[ ${PN} == yandex-browser ]]; then - MY_PN=${PN}-stable -else - MY_PN=${PN} -fi - -DESCRIPTION="The web browser from Yandex" -HOMEPAGE="https://browser.yandex.ru/" -LICENSE="Yandex-EULA" -SLOT="0" -SRC_URI=" - amd64? ( https://repo.yandex.ru/yandex-browser/deb/pool/main/y/${MY_PN}/${MY_PN}_${MY_PV}_amd64.deb -> ${P}.deb ) -" -KEYWORDS="~amd64" - -RDEPEND=" - dev-libs/expat - dev-libs/glib:2 - dev-libs/nspr - dev-libs/nss - >=dev-libs/openssl-1.0.1:0 - gnome-base/gconf:2 - media-libs/alsa-lib - media-libs/fontconfig - media-libs/freetype - net-misc/curl - net-print/cups - sys-apps/dbus - sys-libs/libcap - virtual/libudev - x11-libs/cairo - x11-libs/gdk-pixbuf - x11-libs/gtk+:2 - x11-libs/libX11 - x11-libs/libXScrnSaver - x11-libs/libXcomposite - x11-libs/libXcursor - x11-libs/libXdamage - x11-libs/libXext - x11-libs/libXfixes - x11-libs/libXi - x11-libs/libXrandr - x11-libs/libXrender - x11-libs/libXtst - x11-libs/pango[X] - x11-misc/xdg-utils - sys-libs/libudev-compat - www-plugins/yandex-browser-ffmpeg-codecs-bin -" - -DEPEND=" - >=dev-util/patchelf-0.9 -" - -QA_PREBUILT="*" -QA_DESKTOP_FILE="usr/share/applications/yandex-browser.*\\.desktop" -S=${WORKDIR} -YANDEX_HOME="opt/${PN/-//}" - -pkg_setup() { - chromium_suid_sandbox_check_kernel_config -} - -src_unpack() { - unpack_deb ${A} -} - -src_prepare() { - rm usr/bin/${MY_PN} || die "Failed to remove bundled wrapper" - - rm -r etc || die "Failed to remove etc" - - rm -r "${YANDEX_HOME}/cron" || die "Failed ro remove cron hook" - - 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" - - pushd "${YANDEX_HOME}/locales" > /dev/null || die - chromium_remove_language_paks - popd > /dev/null || die - - default - - sed -r \ - -e 's|\[(NewWindow)|\[X-\1|g' \ - -e 's|\[(NewIncognito)|\[X-\1|g' \ - -e 's|^TargetEnvironment|X-&|g' \ - -i usr/share/applications/${PN}.desktop || die - - patchelf --remove-rpath "${S}/${YANDEX_HOME}/yandex_browser-sandbox" || die "Failed to fix library rpath (yandex_browser-sandbox)" - patchelf --remove-rpath "${S}/${YANDEX_HOME}/yandex_browser" || die "Failed to fix library rpath (yandex_browser)" - patchelf --remove-rpath "${S}/${YANDEX_HOME}/find_ffmpeg" || die "Failed to fix library rpath (find_ffmpeg)" - patchelf --remove-rpath "${S}/${YANDEX_HOME}/nacl_helper" || die "Failed to fix library rpath (nacl_helper)" -} - -src_install() { - mv * "${D}" || die - dodir /usr/$(get_libdir)/${MY_PN}/lib - mv "${D}"/usr/share/appdata "${D}"/usr/share/metainfo - - make_wrapper "${PN}" "./${PN}" "/${YANDEX_HOME}" "/usr/$(get_libdir)/${MY_PN}/lib" || die "Failed to mae wrapper" - - # 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 - - for icon in "${D}/${YANDEX_HOME}/product_logo_"*.png; do - size="${icon##*/product_logo_}" - size=${size%.png} - dodir "/usr/share/icons/hicolor/${size}x${size}/apps" - newicon -s "${size}" "$icon" "${MY_PN}.png" - done - - fowners root:root "/${YANDEX_HOME}/yandex_browser-sandbox" - fperms 4711 "/${YANDEX_HOME}/yandex_browser-sandbox" - pax-mark m "${ED}${YANDEX_HOME}/yandex_browser-sandbox" -}