From 096799516de9a71f93126187afe67807aeb0fac3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 30 Jan 2024 06:05:18 +0000 Subject: www-client/ungoogled-chromium : revision bump --- .../ungoogled-chromium/files/chromium-launcher.sh | 4 +- .../ungoogled-chromium-121.0.6167.85-r1.ebuild | 150 ++++++++++++++++++++ .../ungoogled-chromium-121.0.6167.85.ebuild | 154 --------------------- 3 files changed, 152 insertions(+), 156 deletions(-) create mode 100644 www-client/ungoogled-chromium/ungoogled-chromium-121.0.6167.85-r1.ebuild delete mode 100644 www-client/ungoogled-chromium/ungoogled-chromium-121.0.6167.85.ebuild (limited to 'www-client') diff --git a/www-client/ungoogled-chromium/files/chromium-launcher.sh b/www-client/ungoogled-chromium/files/chromium-launcher.sh index 1163ff3d..62d5cf7d 100644 --- a/www-client/ungoogled-chromium/files/chromium-launcher.sh +++ b/www-client/ungoogled-chromium/files/chromium-launcher.sh @@ -34,7 +34,7 @@ if [[ ${EUID} == 0 && -O ${XDG_CONFIG_HOME:-${HOME}} ]]; then fi # Select session type and platform -if @@OZONE_AUTO_SESSION@@; then +if true; then platform= if [[ ${XDG_SESSION_TYPE} == x11 ]]; then platform=x11 @@ -54,6 +54,6 @@ if @@OZONE_AUTO_SESSION@@; then fi # Set the .desktop file name -export CHROME_DESKTOP="chromium-browser-chromium.desktop" +export CHROME_DESKTOP="chromium-browser-ungoogled-chromium.desktop" exec -a "chromium-browser" "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins ${CHROMIUM_FLAGS} "$@" diff --git a/www-client/ungoogled-chromium/ungoogled-chromium-121.0.6167.85-r1.ebuild b/www-client/ungoogled-chromium/ungoogled-chromium-121.0.6167.85-r1.ebuild new file mode 100644 index 00000000..0da0ec8f --- /dev/null +++ b/www-client/ungoogled-chromium/ungoogled-chromium-121.0.6167.85-r1.ebuild @@ -0,0 +1,150 @@ +# Copyright 2006-2024 Redcore Linux Project +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit 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" +SRC_URI="http://mirrors.redcorelinux.org/redcorelinux/amd64/distfiles/${PN}_${PV}-1.1_linux.tar.xz" +RESTRICT="mirror" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +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-libs/libpulse + 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-71.1:=" + +RDEPEND="${CDEPEND} + x11-misc/xdg-utils + virtual/opengl + virtual/ttf-fonts + !www-client/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}/${PN}_${PV}-1.1_linux" + +src_install() { + local CHROMIUM_HOME="/opt/chromium-browser" + dodir "${CHROMIUM_HOME}" + + exeinto "${CHROMIUM_HOME}" + for i in chrome chrome_crashpad_handler chromedriver chrome_sandbox chrome-wrapper xdg-mime xdg-settings; do + doexe $i || die + done + + doexe "${FILESDIR}"/chromium-launcher.sh + fperms 4711 "${CHROMIUM_HOME}"/chrome_sandbox + + insinto "${CHROMIUM_HOME}" + for i in *.bin *.pak *.so *.so.1 icudtl.dat; do + doins $i || die + done + doins -r locales + doins -r resources + doins vk_swiftshader_icd.json + + dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser + dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium + + dodir /etc/chromium + insinto /etc/chromium + newins "${FILESDIR}"/chromium.default default + + newicon -s 48 product_logo_48.png chromium-browser.png + + local mime_types="text/html;text/xml;application/xhtml+xml;" + mime_types+="x-scheme-handler/http;x-scheme-handler/https;" + mime_types+="x-scheme-handler/ftp;" + mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" + + make_desktop_entry \ + chromium-browser \ + "Chromium Browser (unGoogled)" \ + chromium-browser \ + "Network;WebBrowser" \ + "MimeType=${mime_types}\nStartupWMClass=chromium-browser" + sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die + + dodir /usr/share/gnome-control-center/default-apps + insinto /usr/share/gnome-control-center/default-apps + doins "${FILESDIR}"/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." + + xdg_icon_cache_update + xdg_desktop_database_update + readme.gentoo_print_elog +} diff --git a/www-client/ungoogled-chromium/ungoogled-chromium-121.0.6167.85.ebuild b/www-client/ungoogled-chromium/ungoogled-chromium-121.0.6167.85.ebuild deleted file mode 100644 index d6e76f97..00000000 --- a/www-client/ungoogled-chromium/ungoogled-chromium-121.0.6167.85.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 2006-2024 Redcore Linux Project -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit 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" -SRC_URI="http://mirrors.redcorelinux.org/redcorelinux/amd64/distfiles/${PN}_${PV}-1.1_linux.tar.xz" -RESTRICT="mirror" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -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-libs/libpulse - 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-71.1:=" - -RDEPEND="${CDEPEND} - x11-misc/xdg-utils - virtual/opengl - virtual/ttf-fonts - !www-client/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}/${PN}_${PV}-1.1_linux" - -src_install() { - local CHROMIUM_HOME="/opt/chromium-browser" - dodir "${CHROMIUM_HOME}" - exeinto "${CHROMIUM_HOME}" - doexe "${FILESDIR}"/chromium-launcher.sh - doexe chrome - doexe chrome_crashpad_handler - doexe chromedriver - doexe chrome_sandbox - doexe chrome-wrapper - doexe xdg-mime - doexe xdg-settings - fperms 4711 "${CHROMIUM_HOME}"/chrome_sandbox - - insinto "${CHROMIUM_HOME}" - doins *.bin - doins *.pak - doins *.so - doins *.so.1 - doins icudtl.dat - doins -r locales - doins -r resources - doins vk_swiftshader_icd.json - - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium - - dodir /etc/chromium - insinto /etc/chromium - newins "${FILESDIR}"/chromium.default default - - newicon -s 48 product_logo_48.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 Browser (unGoogled)" \ - chromium-browser \ - "Network;WebBrowser" \ - "MimeType=${mime_types}\nStartupWMClass=chromium-browser" - sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die - - dodir /usr/share/gnome-control-center/default-apps - insinto /usr/share/gnome-control-center/default-apps - doins "${FILESDIR}"/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." - - xdg_icon_cache_update - xdg_desktop_database_update - readme.gentoo_print_elog -} -- cgit v1.2.3