Patchwork [2/4] gnu: Add libpthread_workqueue.

login
register
mail settings
Submitter non such
Date Oct. 28, 2016, 3:01 p.m.
Message ID <20161028150132.25730-3-ng0@we.make.ritual.n0.is>
Download mbox | patch
Permalink /patch/16916/
State New
Headers show

Comments

non such - Oct. 28, 2016, 3:01 p.m.
* gnu/packages/libdispatch.scm (libpthread_workqueue): New variable.
---
 gnu/packages/libdispatch.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Patch

diff --git a/gnu/packages/libdispatch.scm b/gnu/packages/libdispatch.scm
index 77c80c0..37d9195 100644
--- a/gnu/packages/libdispatch.scm
+++ b/gnu/packages/libdispatch.scm
@@ -62,3 +62,34 @@  native kernel facilities.")
     (synopsis "kqueue(2) compatibility library")
     ;; event.h is bsd-2
     (license (list license:expat license:bsd-2))))
+
+(define-public libpthread_workqueue
+  (package
+    (name "libpthread_workqueue")
+    (version "0.9.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/mheily/libpwq/archive/v"
+                    version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0gi8l6jy5d7w3fff684qfjdj16snbc8vkf27y68w91xl5jy16xri"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'autogen
+           (lambda _
+             (zero? (system* "autoreconf" "--install" "--verbose")))))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("autoconf" ,(autoconf-wrapper))
+       ("automake" ,automake)
+       ("libtool" ,libtool)))
+    (home-page "https://github.com/mheily/libpwq")
+    (description
+     "libpthread_workqueue is a POSIX threads workqueue library.")
+    (synopsis "Portable implementation of the pthread_workqueue API")
+    (license license:bsd-2)))