diff --git a/www-client/ungoogled-chromium-bin/Manifest b/www-client/ungoogled-chromium-bin/Manifest index f845be37c..8a18d331e 100644 --- a/www-client/ungoogled-chromium-bin/Manifest +++ b/www-client/ungoogled-chromium-bin/Manifest @@ -2,5 +2,7 @@ DIST ungoogled-chromium-bin-115.0.5790.170-i686.tar.bz2 114369359 BLAKE2B 4e9bc7 DIST ungoogled-chromium-bin-115.0.5790.170-x86-64.tar.bz2 120229360 BLAKE2B 96b1bdc0139bed6116deae9724b9a0157984ee44a8c6aaee8e1aeffbf3a22b91548fe868978862da72b1f25d941e221c9d3d895339aa6d2be6f614a1e3e59e5b SHA512 2cefef0aa833b946d3a8ff1e45fe0142ba565993a9d39ef5812b819d36278b41f1976606d60ce0c7f3d7da6fd35e1dfeecb4127b9ab15881985ce3d1b87a79cd DIST ungoogled-chromium-bin-116.0.5845.110-i686.tar.bz2 115648356 BLAKE2B 28841590354c6a36dad93f54872e2a64c0097c16781edde4c85c696bd2ee4eaf0cb518f8caabe13278d007d8c2a3c42deba88abe1c461eb744184baadd000fbf SHA512 a03145e56588b34f8a95c30b4c3767bbaa03b8b1722087c5ffe45b24debdebe8eac25235b58772c60c01c836a7a4ef7c0644497de38444d962489ca088739b5d DIST ungoogled-chromium-bin-116.0.5845.110-x86-64.tar.bz2 121435476 BLAKE2B 5141aaa91e85104e0a6feea06418a944f6bd5752f678ffaf54e3c99f9eda80332d5246b07a91bf9c5c8549e90dee26dbfad944f717f4ee17f4cb63dc04c011fa SHA512 1d9fdc1f63a788d189b2bce1121a4c2274af13250d17fdc02541e50d7d63092d635f1105c9b864e38ffaf65732fcddf2f071c4c6314fef34872d2cb59c0d9163 +DIST ungoogled-chromium-bin-116.0.5845.140-i686.tar.bz2 115651459 BLAKE2B f6698257ad1929bfd1b855bf9aa6f1bf1f694aaaca90616c3be7b73ff62908555e75cdb2803e0c6fadc4e64a9f3c1b42b133fb3df7eebe301632ebc8e0f63bef SHA512 db3c44cde60baf49cc732374c32e9081cecdd41b1fb05b56c9f572d319785be1f3167ab022718165080e8904d9f4a6756ba1b497636a123013582be3b76ddf5f +DIST ungoogled-chromium-bin-116.0.5845.140-x86-64.tar.bz2 121406600 BLAKE2B ac62533639592ce2fdc6ada7e0cf9b171d1cc47dbed077c5be607cf94ffbfd3d311b562d257c0fa9a3db56acae1c42e9ff984326ba327fddb48987d6ce921c39 SHA512 319bccfba797f3a496138408c3f75dadcd3b06c73be6e58a17db1f80d7c8089545532ce48239015f2cf624bf0995020f3715cc2772c8e76aa1865f91afd442ca DIST ungoogled-chromium-bin-116.0.5845.96-i686.tar.bz2 115673926 BLAKE2B e30faea3d47f70a010aae0b9e078d655f53ea22c11f65c39f54f86081db5971afda47e8d7b2a62b47e5d6ccc1f7a5b46f5cd8afc2d4302a3855478db322a2f87 SHA512 b6bca86a9afb92454a27195bf5028520e4fbe1e6c8e6dd0fe5374e5c07a58fd97c0c47c3b815d488c60305cfbe4dedc9a043b184bcf070de767df5021bd210a1 DIST ungoogled-chromium-bin-116.0.5845.96-x86-64.tar.bz2 121724363 BLAKE2B 823022b4e0a705d29f250b74cc7fba1459e84d7ba14bf5d1f7171ceae51ed898347c90bd56e63a6dbb43e8a394671f2fd013b72efd18a905a063037764ab559d SHA512 8851685003be71d0d5b908ecc2649a125ec53a8effffe1ad5866036d6355303fe50fb874eaf46ba866e8f18c77711c13b91c485066471dad5c9f7c53bcde19cb diff --git a/www-client/ungoogled-chromium-bin/ungoogled-chromium-bin-116.0.5845.140.ebuild b/www-client/ungoogled-chromium-bin/ungoogled-chromium-bin-116.0.5845.140.ebuild new file mode 100644 index 000000000..51a894ca8 --- /dev/null +++ b/www-client/ungoogled-chromium-bin/ungoogled-chromium-bin-116.0.5845.140.ebuild @@ -0,0 +1,193 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he + hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr + sv sw ta te th tr uk vi zh-CN zh-TW" + +inherit chromium-2 desktop readme.gentoo-r1 xdg-utils + +DESCRIPTION="Modifications to Chromium for removing Google integration and enhancing privacy" +HOMEPAGE="https://www.chromium.org/Home https://github.com/ungoogled-software/ungoogled-chromium" +DL_URL="https://github.com/PF4Public/${PN}/releases/download/${PV}" +SRC_URI=" + amd64? ( ${DL_URL}/x86-64.tar.bz2 -> ${PF}-x86-64.tar.bz2 ) + x86? ( ${DL_URL}/i686.tar.bz2 -> ${PF}-i686.tar.bz2 )" + +RESTRICT="mirror" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="convert-dict widevine" + +REQUIRED_USE=" + x86? ( !widevine )" + +CDEPEND=" + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + >=x11-libs/libXi-1.6.0 + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/libxcb + media-libs/libva + >=net-print/cups-1.3.11 + dev-libs/expat + dev-libs/glib:2 + >=dev-libs/libxml2-2.9.4-r3[icu] + dev-libs/nspr + >=dev-libs/nss-3.26 + >=media-libs/alsa-lib-1.0.19 + media-libs/fontconfig + media-libs/freetype + media-libs/libjpeg-turbo + media-libs/libpng + || ( + media-sound/pulseaudio + >=media-sound/apulse-0.1.9 + ) + sys-apps/dbus + sys-apps/pciutils + virtual/udev + x11-libs/cairo + x11-libs/pango + media-libs/flac + >=media-libs/libwebp-0.4.0 + sys-libs/zlib[minizip] + app-accessibility/at-spi2-core + x11-libs/gtk+:3[X] + media-libs/lcms + dev-libs/libxslt + =dev-libs/icu-73*:0" + +RDEPEND="${CDEPEND} + x11-misc/xdg-utils + virtual/opengl + virtual/ttf-fonts + !www-client/chromium + !www-client/chromium-bin + !www-client/ungoogled-chromium" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +Some web pages may require additional fonts to display properly. +Try installing some of the following packages if some characters +are not displayed properly: +- media-fonts/arphicfonts +- media-fonts/droid +- media-fonts/ipamonafont +- media-fonts/noto +- media-fonts/noto-emoji +- media-fonts/ja-ipafonts +- media-fonts/takao-fonts +- media-fonts/wqy-microhei +- media-fonts/wqy-zenhei + +To fix broken icons on the Downloads page, you should install an icon +theme that covers the appropriate MIME types, and configure this as your +GTK+ icon theme. + +For native file dialogs in KDE, install kde-apps/kdialog." + +QA_PREBUILT="*" +S="${WORKDIR}" + +pkg_pretend() { + if ! use widevine; then + ewarn + ewarn "widevine was enabled in this build" + ewarn "If you think this is a mistake let me know in #193" + ewarn + fi +} + +src_install() { + local CHROMIUM_HOME="/opt/chromium-browser" + exeinto "${CHROMIUM_HOME}" + doexe ./usr/$(get_libdir)/chromium-browser/chrome + + if use convert-dict; then + newexe "./usr/$(get_libdir)/chromium-browser/update-dicts.sh" update-dicts.sh + doexe ./usr/$(get_libdir)/chromium-browser/convert_dict + fi + + if has_version ">=media-sound/apulse-0.1.9" ; then + sed -i 's/exec -a "chromium-browser"/exec -a "chromium-browser" apulse/' ./usr/$(get_libdir)/chromium-browser/chromium-launcher.sh + fi + + doexe ./usr/$(get_libdir)/chromium-browser/chromium-launcher.sh + + # It is important that we name the target "chromium-browser", + # xdg-utils expect it; bug #355517. + dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser + # keep the old symlink around for consistency + dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium + + # Allow users to override command-line options, bug #357629. + insinto /etc/chromium + doins ./etc/chromium/default + + pushd ./usr/$(get_libdir)/chromium-browser/locales > /dev/null || die + chromium_remove_language_paks + popd + + insinto "${CHROMIUM_HOME}" + doins ./usr/$(get_libdir)/chromium-browser/*.bin + doins ./usr/$(get_libdir)/chromium-browser/*.pak + doins ./usr/$(get_libdir)/chromium-browser/*.so + doins ./usr/$(get_libdir)/chromium-browser/icudtl.dat + + doins -r ./usr/$(get_libdir)/chromium-browser/locales + + use widevine && dosym "../../usr/$(get_libdir)/chromium-browser/WidevineCdm" "${CHROMIUM_HOME}/WidevineCdm" + + # Install icons and desktop entry + newicon -s 48 ./usr/share/icons/hicolor/256x256/apps/chromium-browser.png chromium-browser.png + + local mime_types="text/html;text/xml;application/xhtml+xml;" + mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 + mime_types+="x-scheme-handler/ftp;" # bug #412185 + mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 + make_desktop_entry \ + chromium-browser \ + "Chromium" \ + chromium-browser \ + "Network;WebBrowser" \ + "MimeType=${mime_types}\nStartupWMClass=chromium-browser" + sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die + + # Install GNOME default application entry (bug #303100). + insinto /usr/share/gnome-control-center/default-apps + doins ./usr/share/gnome-control-center/default-apps/chromium-browser.xml + + readme.gentoo_create_doc +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postinst() { + elog "VA-API is disabled by default at runtime. You have to enable it" + elog "by adding --enable-features=VaapiVideoDecoder and " + elog "--disable-features=UseChromeOSDirectVideoDecoder to CHROMIUM_FLAGS" + elog "in /etc/chromium/default." + + if use widevine; then + elog "widevine requires binary plugins, which are distributed separately" + elog "Make sure you have www-plugins/chrome-binary-plugins installed" + fi + + xdg_icon_cache_update + xdg_desktop_database_update + readme.gentoo_print_elog +}