Skip to content
Snippets Groups Projects
Commit a2e1b81a authored by Stepan Salenikovich's avatar Stepan Salenikovich Committed by gerrit2
Browse files

add openSUSE support to make-ring.py


Change-Id: Id143071d8f4026c0b93e936f32f0a8921bfbd8f9
Reviewed-by: default avatarAlexandre Viau <alexandre.viau@savoirfairelinux.com>
parent a4343af9
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,10 @@ PACMAN_BASED_DISTROS = [
'Arch Linux',
]
SUSE_BASED_DISTROS = [
'openSUSE',
]
APT_INSTALL_SCRIPT = [
'apt-get update',
'apt-get install -y %(packages)s'
......@@ -49,6 +53,27 @@ PACMAN_INSTALL_SCRIPT = [
'sudo pacman -S %(packages)s'
]
ZYPPER_INSTALL_SCRIPT = [
'sudo zypper update',
'sudo zypper install -y %(packages)s'
]
OPENSUSE_DEPENDENCIES = [
# build system
'autoconf', 'automake', 'cmake', 'patch', 'gcc-c++', 'libtool',
# daemon
'speexdsp-devel', 'speex-devel', 'libdbus-c++-devel', 'jsoncpp-devel', 'yaml-cpp-devel',
'libupnp-devel', 'boost-devel', 'yasm', 'libuuid-devel', 'libsamplerate-devel',
'libnettle-devel', 'libopus-devel', 'libgnutls-devel', 'msgpack-devel', 'libavcodec-devel',
'libavdevice-devel', 'pcre-devel', 'libogg-devel', 'libsndfile-devel', 'libvorbis-devel',
'flac-devel', 'libgsm-devel', 'alsa-devel', 'libpulse-devel', 'libudev-devel',
# lrc
'libQt5Core-devel', 'libQt5DBus-devel', 'libqt5-linguist-devel',
# gnome client
'gtk3-devel', 'clutter-gtk-devel', 'qrencode-devel', 'evolution-data-server-devel',
'gettext-tools', 'libnotify-devel', 'libappindicator3-devel',
]
FEDORA_DEPENDENCIES = [
'autoconf', 'automake', 'cmake', 'speexdsp-devel', 'pulseaudio-libs-devel',
'libsamplerate-devel', 'libtool', 'dbus-devel', 'expat-devel', 'pcre-devel',
......@@ -143,6 +168,12 @@ def run_dependencies(args):
{"packages": ' '.join(ARCH_LINUX_DEPENDENCIES)}
)
elif args.distribution == "openSUSE":
execute_script(
ZYPPER_INSTALL_SCRIPT,
{"packages": ' '.join(OPENSUSE_DEPENDENCIES)}
)
elif args.distribution == "OSX":
execute_script(
BREW_INSTALL_SCRIPT,
......@@ -190,6 +221,8 @@ def run_install(args):
os.chdir("./client-android")
execute_script(["./compile.sh"])
else:
if args.distribution == "openSUSE":
os.environ['JSONCPP_LIBS'] = "-ljsoncpp" #fix jsoncpp pkg-config bug, remove when jsoncpp package bumped
install_args += ' -c client-gnome'
execute_script(["./scripts/install.sh " + install_args])
......@@ -286,7 +319,7 @@ def validate_args(parsed_args):
"""Validate the args values, exit if error is found"""
# Check arg values
supported_distros = ['Android', 'Ubuntu', 'Debian', 'OSX', 'Fedora', 'Arch Linux', 'Automatic']
supported_distros = ['Android', 'Ubuntu', 'Debian', 'OSX', 'Fedora', 'Arch Linux', 'openSUSE', 'Automatic']
if parsed_args.distribution not in supported_distros:
print('Distribution not supported.\nChoose one of: %s' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment