commit:     76df94aa7aaf8f7f87191e4b571309cae407ef9a
Author:     Stephan Hartmann <sultan <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  7 18:40:40 2022 +0000
Commit:     Stephan Hartmann <sultan <AT> gentoo <DOT> org>
CommitDate: Fri Oct  7 18:40:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76df94aa

www-client/chromium-bin: add 107.0.5304.29

Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org>

 www-client/chromium-bin/Manifest                   |  11 +
 .../chromium-bin/chromium-bin-107.0.5304.29.ebuild | 239 +++++++++++++++++++++
 2 files changed, 250 insertions(+)

diff --git a/www-client/chromium-bin/Manifest b/www-client/chromium-bin/Manifest
index 1e3b01e86b68..22c9455c68b3 100644
--- a/www-client/chromium-bin/Manifest
+++ b/www-client/chromium-bin/Manifest
@@ -9,3 +9,14 @@ DIST chromium-bin-106.0.5249.103-1-wayland-x86_64.tar.xz 
85276328 BLAKE2B 393ca8
 DIST chromium-bin-106.0.5249.103-1-x11-aarch64.tar.xz 83236004 BLAKE2B 
72997175e32b8e101af3d9c682ecd8f3c07f49aba2770339b72bacc85a6f91a04ccdca2d415833e7c32b91f5fdf83eab98070e8d5ad88687d8bb0f2343f69971
 SHA512 
7fc2d20394f80767c65ff31f6c50e0ee970b2354e34f96e5884de94b85da510f5ba166bc3ef50b3e26b73920cce3593bfff9bd99ec4acdbfa8326be4a30377c5
 DIST chromium-bin-106.0.5249.103-1-x11-i686.tar.xz 85294364 BLAKE2B 
7117fc44323ffa1bb65f6ba03c1e0d04f929af8efaeafbf6b6b7b2583fc8bc65c3a1a592783a5a820e525ba2b71ef6838fe7366c21b2a74875a3554d5dbd2f5c
 SHA512 
dd92a82851fdb45cdb4c1d522b7a5dbb6a0289d7648507e1fe698c7ece14eb1aba3584da7e7142156d018788c935fed3d200e8e09d531790cd59d43543e7b367
 DIST chromium-bin-106.0.5249.103-1-x11-x86_64.tar.xz 85045040 BLAKE2B 
0f1173812f7a28903e348a5c066c27240fb436f6f5205b4386b564d7923e08c929b996e44b8711e92bd880174f5fd86e7f003e182d5862631022b83a02264fda
 SHA512 
9a806a6f90fffffbd6a4efb91b2583c7cddd7e60e82084e8eec64d406b567c2e30f51b6e7e5022fd922e77ff73cf5d5ac23a1a4ad2c93eedad1d500317ae20ce
+DIST chromium-bin-107.0.5304.29-1-common-aarch64.tar.xz 3211404 BLAKE2B 
c0ea1b64321de4455d1bc3aa67340df6a0b50581e927d0ca95cb2c90b088901c76b75705bd3a40d32c938d5307998c9311a962ecb01d64ee24a9928bedc5bdf8
 SHA512 
0b744d524bc01769cf7eb6bce31db6c2f384ac64948981309157853dc74966432f5aa0d22f9c108f0c2510450a53f22efc07f7825a7d6895a3d988af5aa0b110
+DIST chromium-bin-107.0.5304.29-1-common-i686.tar.xz 3253248 BLAKE2B 
508dfc7c08510af16f5ee439746c8b44d3d08e4b013127fe1f4dcce7b3423e478b6e29e05c61b002c41c213a9ea3cdf605e8d085b1d2b6b3dd8884e6d843576e
 SHA512 
933b8e5b13f17839cbd745ceb6f1afe96e74f9b4649ea6820c46f43bfc4e775fafdec87aaafbe9f8be3828f47eb11453c9857493887f0e7d3cd441bb779deccd
+DIST chromium-bin-107.0.5304.29-1-common-x86_64.tar.xz 3283228 BLAKE2B 
8bc70532c1e1da19f04495baee3a5be7ab69f04b62e457b3a4eb2b2a0b180b02a2bcc409726ae3e5383ebda3d5dc86c835ef7e034e724de52b41fb1184e3b205
 SHA512 
d118323f54c1a48fc684dfd082bab83c9edb1d73acae5e44498bb4cc14a5beab0609f0143b6ca7c0a21db25e7c9b65968a1448c8eefcbc48771e96b6f15295a6
+DIST chromium-bin-107.0.5304.29-1-common.tar.xz 4430104 BLAKE2B 
a1d111c1d6ed9cf12a3a02a27b8e32155478e1b418cc889b71d2ca490e02794cce158944ad5d03ad292629f2b813332962eead7d058ac2a9bfff25137c45a473
 SHA512 
82c56e625a2e5675dd1a68966bc41150d49c0d75b7d40d5f7e11c0b17d83cc767f8494f235a239e97c7fa47b3f5cb4c16d37e068c4263083905ce8cd8d1a7ed1
+DIST chromium-bin-107.0.5304.29-1-l10n.tar.xz 5223852 BLAKE2B 
a025bad668cefb4ab50486fad3fffae95975dcfdc40f4bf0eca09022c504ffffa262c8ca57692c347dce19a225ebde9665013aecc375ca371dafb103d5e6a36a
 SHA512 
2b026a3110f9662476901b9b29e092d676147e82b8645378a3528cf6b1a7b00fe15442983a5f4c283d73309ae7cba770ba2a034bb0b90e8d121ab6dac80bdc53
+DIST chromium-bin-107.0.5304.29-1-wayland-aarch64.tar.xz 83926632 BLAKE2B 
063061cd6dd3cd545bf3ede8855f3858ed5a89755c2b04c84effd103b1fb2df90e8df588966ab21b89f23b8fff5a51ccf42293c6f91517a4200cb1fe60447527
 SHA512 
cb244d290dc7f2d5001c5a422437ce47a2628773a693330a933d6dfc3176dd3e672119cc7932261db5c98be5824562b7b70211d1f8425b80227c45cb4f4034e2
+DIST chromium-bin-107.0.5304.29-1-wayland-i686.tar.xz 85616652 BLAKE2B 
9584c172decf03d9e611a9e6f4f0032c701bfc5f63120f1c0c013753e8ec3f8a9d44750ef4a8daa8805f3b21184ba86a8668a9d92619b05d27e0f57b64d8b03f
 SHA512 
8ef8f781ee6556d86fafb99755143ae51c49d035d99b90b2b162beb6aeeff49d797ec525cfb429a5fc386caf53ab82f068c21eb2b4ddc0557704f7f96e94292e
+DIST chromium-bin-107.0.5304.29-1-wayland-x86_64.tar.xz 85979708 BLAKE2B 
1693b87ebc8ad04392abda4cac972a740176dd99cf9d38410c25857457add83fe50002fa0afc89c3353cdecbc32e9c689b457c00b62303bf6309b5e2c0946520
 SHA512 
2376294b6d03ebb7355754109dd1b37d432c86baa63b663ef4c060f215705c918c5086dce4102b4e96249a953596e6dfcbbc02b455f7ac58ee514fe7d0cbee7f
+DIST chromium-bin-107.0.5304.29-1-x11-aarch64.tar.xz 83690600 BLAKE2B 
6f23bbf9f10e248f5effc8be11de2d9c5e27cf7231e42c153b298b3589a7d89b3719e40f017682331a6d90ae6fbed31693f05bf17ff8eff7c54540d2eaabfa38
 SHA512 
f13d16780f06eef28a9a1a2f4f12bb7c40f8a7d20064f42c7435467d848b062922730a4d0f03c35660ed18df7803878c87de7749012a1de4c7582bf305a8d03d
+DIST chromium-bin-107.0.5304.29-1-x11-i686.tar.xz 85389512 BLAKE2B 
715330c9a6c1430290e955262ba0d3dd61147f2a767134fc35738432b5334d093dc8a940cbaf4d2b191f58d495b9e557cb999d8841f4cfa12b5d5d2a43a24082
 SHA512 
6ab2690d5486b36849e76e758590b65c1bb5b0a4d3ccb86ba909f086c076eee7cb7aaec9eda24629f2acf62774e45cdd5091d0aff26962c1835478e62ae52714
+DIST chromium-bin-107.0.5304.29-1-x11-x86_64.tar.xz 85727940 BLAKE2B 
f94a00102c93078a147e4dc66333c7cb2ad6820ea61afd4a8be3837d620a29bd31f8bcf0e983008abe280722219c605e2aab0a961778596319ac596fe254a537
 SHA512 
2202dc504f9cec5eb38a5c7299d5fe9c7af834b1e0ae3162aa2df7e929d6dadf13b2391c7bdf1f4790c532f80364d3d53a1e99c53602f80ca48d10ecfd6b9ffd

diff --git a/www-client/chromium-bin/chromium-bin-107.0.5304.29.ebuild 
b/www-client/chromium-bin/chromium-bin-107.0.5304.29.ebuild
new file mode 100644
index 000000000000..be7bc277c890
--- /dev/null
+++ b/www-client/chromium-bin/chromium-bin-107.0.5304.29.ebuild
@@ -0,0 +1,239 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_LANGS="af 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 ur vi zh-CN zh-TW"
+
+inherit chromium-2 desktop pax-utils readme.gentoo-r1 unpacker xdg-utils
+
+DESCRIPTION="Open-source version of Google Chrome web browser"
+HOMEPAGE="https://chromium.org/";
+
+MY_P=${P}-1
+
+SRC_URI="https://dev.gentoo.org/~sultan/distfiles/www-client/chromium-bin/${MY_P}-common.tar.xz
+       
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium-bin/${MY_P}-l10n.tar.xz
+       amd64? (
+               
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium-bin/${MY_P}-common-x86_64.tar.xz
+               wayland? ( 
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium-bin/${MY_P}-wayland-x86_64.tar.xz
 )
+               !wayland? ( 
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium-bin/${MY_P}-x11-x86_64.tar.xz
 )
+       )
+       arm64? (
+               
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium-bin/${MY_P}-common-aarch64.tar.xz
+               wayland? ( 
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium-bin/${MY_P}-wayland-aarch64.tar.xz
 )
+               !wayland? ( 
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium-bin/${MY_P}-x11-aarch64.tar.xz
 )
+       )
+       x86? (
+               
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium-bin/${MY_P}-common-i686.tar.xz
+               wayland? ( 
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium-bin/${MY_P}-wayland-i686.tar.xz
 )
+               !wayland? ( 
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium-bin/${MY_P}-x11-i686.tar.xz
 )
+       )"
+
+LICENSE="BSD"
+SLOT="0/beta"
+KEYWORDS="-* ~amd64 ~arm64"
+IUSE="cpu_flags_x86_sse2 +suid wayland widevine"
+
+RDEPEND="
+       || (
+               >=app-accessibility/at-spi2-core-2.46.0:2
+               ( app-accessibility/at-spi2-atk dev-libs/atk )
+       )
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/libxml2[icu]
+       dev-libs/libxslt
+       dev-libs/nspr
+       >=dev-libs/nss-3.26
+       media-libs/alsa-lib
+       media-libs/flac:0/10-12
+       media-libs/fontconfig
+       >=media-libs/freetype-2.11.0-r1
+       media-libs/libjpeg-turbo
+       media-libs/libwebp
+       media-libs/mesa[gbm(+)]
+       media-libs/openh264:0/6.1
+       net-misc/curl[ssl]
+       net-print/cups
+       sys-apps/dbus
+       sys-apps/pciutils
+       >=sys-devel/gcc-9.3.0
+       >=sys-libs/glibc-2.32
+       sys-libs/zlib[minizip]
+       virtual/ttf-fonts
+       virtual/udev
+       x11-libs/cairo
+       x11-libs/libdrm
+       x11-libs/gdk-pixbuf:2
+       || (
+               x11-libs/gtk+:3[X,wayland?]
+               gui-libs/gtk:4[X,wayland?]
+       )
+       x11-libs/libX11
+       x11-libs/libXcomposite
+       x11-libs/libXdamage
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXrandr
+       x11-libs/libXtst
+       x11-libs/libxcb
+       x11-libs/libxkbcommon
+       x11-libs/libxshmfence
+       x11-libs/pango
+       x11-misc/xdg-utils
+       amd64? (
+               widevine? ( www-plugins/chrome-binary-plugins )
+       )
+       wayland? ( dev-libs/wayland )
+"
+
+S=${WORKDIR}
+QA_PREBUILT="*"
+
+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/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.
+
+To make password storage work with your desktop environment you may
+have install one of the supported credentials management applications:
+- app-crypt/libsecret (GNOME)
+- kde-frameworks/kwallet (KDE)
+If you have one of above packages installed, but don't want to use
+them in Chromium, then add --password-store=basic to CHROMIUM_BIN_FLAGS
+in /etc/chromium-bin/default.
+"
+
+pkg_pretend() {
+       if use amd64 || use x86; then
+               if ! use cpu_flags_x86_sse2; then
+                       eerror "This package requires a CPU supporting the SSE2 
instruction set."
+                       die "SSE2 support missing"
+               fi
+       fi
+}
+
+pkg_setup() {
+       chromium_suid_sandbox_check_kernel_config
+
+       if ! use amd64 && use widevine; then
+               ewarn "Widevine CDM plugin is not available for your 
architecture."
+       fi
+}
+
+src_unpack() {
+       :
+}
+
+src_install() {
+       dodir /
+       cd "${ED}" || die
+       unpacker
+
+       local CHROMIUM_BIN_HOME="opt/chromium-bin"
+
+       if ! use suid; then
+               rm "${CHROMIUM_BIN_HOME}/chrome-sandbox" || die
+       fi
+
+       # Clean unneeded languages
+       pushd "${CHROMIUM_BIN_HOME}/locales" > /dev/null || die
+       chromium_remove_language_paks
+       popd > /dev/null || die
+
+       # Install icons
+       local size
+       for size in 16 24 32 48 64 128 256 ; do
+               newicon -s ${size} 
"${CHROMIUM_BIN_HOME}/icons/hicolor/${size}x${size}/apps/chromium-browser.png" 
${PN}-browser.png
+       done
+       rm -r "${CHROMIUM_BIN_HOME}/icons"
+
+       # Allow users to override command-line options, bug #357629.
+       insinto /etc/chromium-bin
+       newins "${FILESDIR}/chromium-bin.default" "default"
+
+       # Install desktop entry
+       domenu "${FILESDIR}/chromium-bin-browser-chromium.desktop"
+
+       # Install GNOME default application entry (bug #303100).
+       insinto /usr/share/gnome-control-center/default-apps
+       newins "${FILESDIR}/chromium-bin-browser.xml" chromium-bin-browser.xml
+
+       # Install manpage; bug #684550
+       doman "${FILESDIR}/chromium-bin-browser.1"
+       dosym chromium-bin-browser.1 /usr/share/man/man1/chromium-bin.1
+
+       pax-mark m "${CHROMIUM_BIN_HOME}/chrome"
+
+       # Symlink Widevine CDM
+       if use widevine; then
+               dosym "../../usr/$(get_libdir)/chromium-browser/WidevineCdm" 
"${CHROMIUM_BIN_HOME}/WidevineCdm"
+       fi
+
+       # Install launcher
+       exeinto "${CHROMIUM_BIN_HOME}"
+       doexe "${FILESDIR}/chromium-bin-launcher.sh"
+
+       # It is important that we name the target "chromium-bin-browser",
+       # xdg-utils expect it; bug #355517.
+       dosym "../../${CHROMIUM_BIN_HOME}/chromium-bin-launcher.sh" 
/usr/bin/chromium-bin-browser
+       # keep the old symlink around for consistency
+       dosym "../../${CHROMIUM_BIN_HOME}/chromium-bin-launcher.sh" 
/usr/bin/chromium-bin
+
+       dosym "../../${CHROMIUM_BIN_HOME}/chromedriver" 
/usr/bin/chromedriver-bin
+
+       readme.gentoo_create_doc
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+       readme.gentoo_print_elog
+
+       elog "For VA-API support you need to install x11-libs/libva with"
+       elog "USE=X enabled."
+       elog
+       elog "VA-API is disabled by default at runtime. You have to enable it"
+       elog "by adding --enable-features=VaapiVideoDecoder to 
CHROMIUM_BIN_FLAGS"
+       elog "in /etc/chromium-bin/default."
+
+       if use wayland; then
+               elog
+               elog "For screencast support you need to install 
media-video/pipewire."
+               elog
+               elog "Screencast is disabled by default at runtime. Either 
enable it"
+               elog "by navigating to 
chrome://flags/#enable-webrtc-pipewire-capturer"
+               elog "inside Chromium or add 
--enable-features=WebRTCPipeWireCapturer"
+               elog "to CHROMIUM_BIN_FLAGS in /etc/chromium-bin/default."
+       fi
+
+       elog
+       elog "chromium-bin profile defaults to \${HOME}/.config/chromium-bin."
+       elog "Some extensions (e.g. KeepassXC) expect default chromium profile"
+       elog "at \${HOME}/.config/chromium. You can overwrite this by adding"
+       elog "--user-data-dir=\${HOME}/.config/chromium to CHROMIUM_BIN_FLAGS"
+       elog "in /etc/chromium-bin/default."
+}

Reply via email to