|
@@ -73,6 +73,15 @@ setup_zypper() {
|
|
|
fontconfig-devel || return 1
|
|
fontconfig-devel || return 1
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+setup_emerge() {
|
|
|
|
|
+ EMERGE="$SUDO $1"
|
|
|
|
|
+
|
|
|
|
|
+ $EMERGE dev-util/cmake app-misc/jq net-misc/wget dev-util/pkgconf \
|
|
|
|
|
+ virtual/libudev media-libs/freetype dev-libs/expat \
|
|
|
|
|
+ net-misc/curl net-libs/libssh media-libs/fontconfig || return 1
|
|
|
|
|
+# sys-devel/clang failed, but it worked anyway
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
case "$(uname -s)" in
|
|
case "$(uname -s)" in
|
|
|
Linux)
|
|
Linux)
|
|
|
if command -v apt >/dev/null; then
|
|
if command -v apt >/dev/null; then
|
|
@@ -125,6 +134,13 @@ Linux)
|
|
|
exit 0
|
|
exit 0
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
+ if command -v emerge; then
|
|
|
|
|
+ echo "Setting up for emerge" >&2
|
|
|
|
|
+ setup_emerge "$(command -v emerge)" || exit 1
|
|
|
|
|
+ echo "Dependencies installed!" >&2
|
|
|
|
|
+ exit 0
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
echo "Error: Could not recognize your package manager." >&2
|
|
echo "Error: Could not recognize your package manager." >&2
|
|
|
exit 1
|
|
exit 1
|
|
|
;;
|
|
;;
|