From ae78c7d6c4164e9f91a6514b546e4d3478df2d77 Mon Sep 17 00:00:00 2001 From: TANIGUCHI Masaya Date: Sun, 10 Apr 2022 06:03:50 +0900 Subject: [PATCH] get-deps for Gentoo (#1843) Support Gentoo --- get-deps | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/get-deps b/get-deps index 20768680e..bea5461de 100755 --- a/get-deps +++ b/get-deps @@ -116,6 +116,29 @@ if test -e /etc/arch-release ; then exit $? fi +if test -e /etc/gentoo-release ; then + portageq envvar USE | xargs -n 1 | grep '^X$' \ + || (echo 'X is not found in USE flags' && exit 1) + EMERGE="$SUDO emerge" + $EMERGE --select \ + 'cmake' \ + 'fontconfig' \ + 'openssl' \ + 'git' \ + 'libX11' \ + 'libxkbcommon' \ + 'pkgconf' \ + 'python' \ + 'perl' \ + 'wayland' \ + 'mesa' \ + 'xcb-util' \ + 'xcb-util-image' \ + 'xcb-util-keysyms' \ + 'xcb-util-wm' + exit $? +fi + case $OSTYPE in darwin*|msys) exit 0