emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/pdf-tools 7a8d5c24f7: Add support for openSUSE except Micr


From: ELPA Syncer
Subject: [nongnu] elpa/pdf-tools 7a8d5c24f7: Add support for openSUSE except Micro
Date: Tue, 26 Apr 2022 13:58:35 -0400 (EDT)

branch: elpa/pdf-tools
commit 7a8d5c24f7ac0632afdfc9924bdf17bcf52065a4
Author: Pi-Cla <pirateclip@protonmail.com>
Commit: Vedang Manerikar <ved.manerikar@gmail.com>

    Add support for openSUSE except Micro
    
    I am not qualified to add support for the Micros versions of openSUSE, but 
this supports the most commonly used versions.
---
 server/autobuild | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/server/autobuild b/server/autobuild
index f0b18f34ff..24db24a542 100755
--- a/server/autobuild
+++ b/server/autobuild
@@ -443,6 +443,32 @@ os_void() {
     return 0
 }
 
+# openSUSE (TODO: add support for micro versions)
+os_opensuse() {
+    if [ -f "/etc/os-release" ]; then
+        . /etc/os-release
+        if [ "$ID" != "opensuse-leap" ] && [ "$ID" != "opensuse-tumbleweed" ]; 
then
+          return 1
+        fi
+    else
+      return 1
+    fi
+    PACKAGES="make
+              automake
+              autoconf
+              gcc
+              gcc-c++
+              libpng16-devel
+              libpng16-compat-devel
+              zlib-devel
+              libpoppler-devel
+              libpoppler-glib-devel
+              glib2-devel"
+    PKGCMD=zypper
+    PKGARGS="install"
+    return 0
+}
+
 # By Parameter --os
 os_argument() {
     [ -z "$OS" ] && return 1
@@ -458,6 +484,7 @@ os_argument() {
         msys2)   os_msys2   "$@";;
         nixos)   os_nixos   "$@";;
         void)    os_void    "$@";;
+        opensuse) os_opensuse "$@";;
         *)       echo "Invalid --os argument: $OS"
                  exit 1
     esac || {
@@ -484,6 +511,7 @@ os_gentoo   "$@" || \
 os_msys2    "$@" || \
 os_nixos    "$@" || \
 os_void     "$@" || \
+os_opensuse "$@" || \
 {
     OS_IS_HANDLED=
     if [ -z "$DRY_RUN" ]; then



reply via email to

[Prev in Thread] Current Thread [Next in Thread]