From 74d685193e0ff5500b2891d69f61fd0294de9e90 Mon Sep 17 00:00:00 2001 From: skwerlman Date: Wed, 31 Aug 2016 09:06:16 -0400 Subject: [PATCH] Add support for the Equo package manager --- tools/utils/PlatformSetup.hx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tools/utils/PlatformSetup.hx b/tools/utils/PlatformSetup.hx index 6ae2b3920..b6b64f0ef 100644 --- a/tools/utils/PlatformSetup.hx +++ b/tools/utils/PlatformSetup.hx @@ -45,6 +45,7 @@ class PlatformSetup { private static var linuxAptPackages = "ia32-libs-multiarch gcc-multilib g++-multilib"; private static var linuxUbuntuSaucyPackages = "gcc-multilib g++-multilib libxext-dev"; private static var linuxYumPackages = "gcc gcc-c++"; + private static var linuxEquoPackages = "media-libs/mesa sys-devel/gcc"; private static var linuxPacman32Packages = "multilib-devel mesa mesa-libgl glu"; private static var linuxPacman64Packages = "multilib-devel lib32-mesa lib32-mesa-libgl lib32-glu"; private static var tizenSDKURL = "https://developer.tizen.org/downloads/tizen-sdk"; @@ -1715,6 +1716,18 @@ class PlatformSetup { } + var whichEquo = ProcessHelper.runProcess ("", "which", ["equo"], true,true, true); + var hasEquo = whichEquo != null && whichEquo != ""; + + if (hasEquo) { + + // Sabayon docs reccomend not using sudo with equo, and instead using a root login shell + var parameters = [ "-l", "-c", "equo", "i", "-av" ].concat (linuxEquoPackages.split (" ")); + ProcessHelper.runCommand ("", "su", parameters, false); + return; + + } + var whichPacman = ProcessHelper.runProcess ("", "which", ["pacman"], true, true, true); var hasPacman = whichPacman != null && whichPacman != ""; @@ -1738,7 +1751,7 @@ class PlatformSetup { } LogHelper.println ("Unable to find a supported package manager on your Linux distribution."); - LogHelper.println ("For now, only apt-get, yum, and pacman are supported."); + LogHelper.println ("For now, only apt-get, yum, equo, and pacman are supported."); Sys.exit (1);