Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add Gentoo support to Linux dependency script (#11141)

shimataroce643e6befe5
diff --git a/script/linux b/script/linux
index 56a000692eb..5ec0de37b4a 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"