commit:     9c60f686d350f72a1ed9b000adb8161227de21fa
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 16 01:16:34 2021 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Wed Jun 16 01:33:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c60f686

www-client/chromium: add ppc64le support to 92.0.4515.51

but no ~ppc64 keyword.
Chromium is always unstable-keyworded on ppc64, we don't want
users to get ver 92.x and use stable channel by default.
users are welcome to accept-keywords 92.x branch for testing.

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 www-client/chromium/chromium-92.0.4515.51.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/www-client/chromium/chromium-92.0.4515.51.ebuild 
b/www-client/chromium/chromium-92.0.4515.51.ebuild
index 744bf4df8d5..338eee1281c 100644
--- a/www-client/chromium/chromium-92.0.4515.51.ebuild
+++ b/www-client/chromium/chromium-92.0.4515.51.ebuild
@@ -15,10 +15,12 @@ DESCRIPTION="Open-source version of Google Chrome web 
browser"
 HOMEPAGE="https://chromium.org/";
 PATCHSET="6"
 PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}"
+PPC64LE_PATCHSET="91-ppc64le-6"
 
SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz
        
https://files.pythonhosted.org/packages/ed/7b/bbf89ca71e722b7f9464ebffe4b5ee20a9e5c9a555a56e2d3914bb9119a6/setuptools-44.1.0.zip
        
https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz
-       arm64? ( 
https://github.com/google/highway/archive/refs/tags/0.12.1.tar.gz -> 
highway-0.12.1.tar.gz )"
+       arm64? ( 
https://github.com/google/highway/archive/refs/tags/0.12.1.tar.gz -> 
highway-0.12.1.tar.gz )
+       ppc64? ( 
https://dev.gentoo.org/~gyakovlev/distfiles/${PN}-${PPC64LE_PATCHSET}.tar.xz )"
 
 LICENSE="BSD"
 SLOT="0"
@@ -243,6 +245,8 @@ src_prepare() {
                )
        fi
 
+       use ppc64 && eapply -p0 "${WORKDIR}/${PN}"-ppc64le
+
        default
 
        mkdir -p third_party/node/linux/node-linux-x64/bin || die
@@ -749,6 +753,9 @@ src_configure() {
                append-cxxflags -flax-vector-conversions
        fi
 
+       # highway/libjxl fail on ppc64 without extra patches, disable for now.
+       use ppc64 && myconf_gn+=" enable_jxl_decoder=false"
+
        # Disable unknown warning message from clang.
        tc-is-clang && append-flags -Wno-unknown-warning-option
 

Reply via email to