From ce643e6befe5f8fb5be8fca9cbb745d6e51882bf Mon Sep 17 00:00:00 2001 From: shimataro Date: Tue, 30 Apr 2024 08:08:22 +0900 Subject: [PATCH] Add Gentoo support to Linux dependency script (#11141) This PR adds dependencies for Gentoo Linux. Release Notes: - N/A --- script/linux | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/script/linux b/script/linux index 56a000692e..5ec0de37b4 100755 --- a/script/linux +++ b/script/linux @@ -102,4 +102,22 @@ if [[ -n $xbps ]]; then exit 0 fi +# Gentoo +# https://packages.gentoo.org/ +emerge=$(command -v emerge || true) +if [[ -n $emerge ]]; then + deps=( + app-arch/zstd + dev-libs/openssl + dev-libs/wayland + media-libs/alsa-lib + media-libs/fontconfig + media-libs/vulkan-loader + x11-libs/libxcb + x11-libs/libxkbcommon + ) + $maysudo "$emerge" -u "${deps[@]}" + exit 0 +fi + echo "Unsupported Linux distribution in script/linux"