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

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

[nongnu] elpa/pdf-tools 997467ad3b 15/16: autobuild: Recognize NetBSD an


From: ELPA Syncer
Subject: [nongnu] elpa/pdf-tools 997467ad3b 15/16: autobuild: Recognize NetBSD and install packages via pkgin
Date: Tue, 29 Nov 2022 01:59:32 -0500 (EST)

branch: elpa/pdf-tools
commit 997467ad3bcd23de22624c538d14863479b27cba
Author: Sunil Nimmagadda <sunil@nimmagadda.net>
Commit: Vedang Manerikar <ved.manerikar@gmail.com>

    autobuild: Recognize NetBSD and install packages via pkgin
    
    Closes: #170
---
 README.org       |  1 +
 server/autobuild | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/README.org b/README.org
index 103dd6c92a..09ed930718 100644
--- a/README.org
+++ b/README.org
@@ -112,6 +112,7 @@ The following Operating Systems / package managers are 
supported. *Note*: The pa
 - Apline Linux: ~apk~
 - FreeBSD: ~pkg~
 - OpenBSD: ~pkg_add~
+- NetBSD: ~pkgin~
 - Arch Linux: ~pacman~
 - Gentoo: ~emerge~
 - CentOS: ~yum~
diff --git a/server/autobuild b/server/autobuild
index 4b33bfdb67..517a30c48a 100755
--- a/server/autobuild
+++ b/server/autobuild
@@ -239,6 +239,17 @@ os_freebsd() {
     return 0
 }
 
+# NetBSD
+os_netbsd() {
+    if ! which uname >/dev/null 2>&1 || [ "$(uname -s)" != "NetBSD" ]; then
+        return 1
+    fi
+    PKGCMD=pkgin
+    PKGARGS=install
+    PACKAGES="autoconf automake poppler-glib png pkgconf"
+    return 0
+}
+
 # OpenBSD
 os_openbsd() {
     if ! which uname >/dev/null 2>&1 || [ "$(uname -s)" != "OpenBSD" ]; then
@@ -485,6 +496,7 @@ os_argument() {
         freebsd) os_freebsd "$@";;
         arch)    os_arch    "$@";;
         centos)  os_centos  "$@";;
+        netbsd)  os_netbsd  "$@";;
         openbsd) os_openbsd "$@";;
         fedora)  os_fedora  "$@";;
         debian)  os_debian  "$@";;
@@ -514,6 +526,7 @@ os_macos    "$@" || \
 os_freebsd  "$@" || \
 os_arch     "$@" || \
 os_centos   "$@" || \
+os_netbsd   "$@" || \
 os_openbsd  "$@" || \
 os_fedora   "$@" || \
 os_debian   "$@" || \



reply via email to

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