Put back Gentoo stuff (fix #295)

I didn't even realize that it was missing
This commit is contained in:
LukeZGD 2023-06-19 16:54:58 +08:00
parent 4c52b7506d
commit 5296e1fa17

View File

@ -136,6 +136,8 @@ set_tool_paths() {
distro="fedora" distro="fedora"
elif [[ $ID == "opensuse-tumbleweed" ]]; then elif [[ $ID == "opensuse-tumbleweed" ]]; then
distro="opensuse" distro="opensuse"
elif [[ $ID == "gentoo" || $ID_LIKE == "gentoo" || $ID == "pentoo" ]]; then
distro="gentoo"
else else
error "Your distro ($platform_ver) is not detected/supported. See the repo README for supported OS versions/distros" error "Your distro ($platform_ver) is not detected/supported. See the repo README for supported OS versions/distros"
fi fi
@ -328,6 +330,9 @@ install_depends() {
elif [[ $distro == "opensuse" ]]; then elif [[ $distro == "opensuse" ]]; then
sudo zypper -n in curl jq libimobiledevice-1_0-6 openssl-3 python3 usbmuxd unzip vim zenity zip sudo zypper -n in curl jq libimobiledevice-1_0-6 openssl-3 python3 usbmuxd unzip vim zenity zip
elif [[ $distro == "gentoo" ]]; then
sudo emerge -av net-misc/curl app-misc/jq libimobiledevice openssh python udev unzip usbmuxd usbutils vim zenity
elif [[ $platform == "macos" ]]; then elif [[ $platform == "macos" ]]; then
log "Installing Xcode Command Line Tools" log "Installing Xcode Command Line Tools"
xcode-select --install xcode-select --install