unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <ng0@we.make.ritual.n0.is>
To: guix-devel@gnu.org
Subject: [PATCH 4/4] gnu: Add libdispatch.
Date: Fri, 28 Oct 2016 15:01:32 +0000	[thread overview]
Message-ID: <20161028150132.25730-5-ng0@we.make.ritual.n0.is> (raw)
In-Reply-To: <20161028150132.25730-1-ng0@we.make.ritual.n0.is>

* gnu/packages/libdispatch.scm (libdispatch): New variable.
---
 gnu/packages/libdispatch.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/libdispatch.scm b/gnu/packages/libdispatch.scm
index 3902a82..1e58296 100644
--- a/gnu/packages/libdispatch.scm
+++ b/gnu/packages/libdispatch.scm
@@ -21,11 +21,14 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system cmake)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages llvm)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages python)
   #:use-module (gnu packages ruby))
 
 (define-public libkqueue
@@ -127,3 +130,44 @@ languages developed by Apple to support the Grand Central Dispatch
 concurrency engine.")
     (synopsis "Blocks Runtime")
     (license (list license:ncsa license:expat))))
+
+;; This commit includes a commit which drops click.
+(define-public libdispatch
+  (let ((commit "bd1808980b04830cbbd79c959b8bc554085e38a1")
+        (revision "1"))
+    (package
+      (name "libdispatch")
+      (version (string-append "0.1.3.1" "-" revision "." (string-take commit 7)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/nickhutchinson/libdispatch")
+                      (commit commit)))
+                (file-name (string-append name "-" version "-checkout"))
+                (sha256
+                 (base32
+                  "00a6xkzrd7svk7pbi59w0rq7wxszp888lg00kzaim2ikagw67ihi"))))
+      (native-inputs
+       `(("python-2" ,python-2)))
+      (inputs
+       `(("libpthread_workqueue" ,libpthread_workqueue)
+         ("libkqueue" ,libkqueue)
+         ("libblocks-runtime" ,libblocks-runtime)))
+      (build-system cmake-build-system)
+      (arguments
+       ;;`(#:tests? #f))
+       `(#:configure-flags (list "-DDISPATCH_ENABLE_TEST_SUITE=1")))
+         ;; #:phases
+         ;; (modify-phases %standard-phases
+         ;;   (add-after 'unpack 'autogen
+         ;;     (lambda _
+      (home-page "http://nickhutchinson.me/libdispatch/")
+      (synopsis "GNU-linux port of Apple's concurrency library")
+      (description
+       "libdispatch, aka Grand Central Dispatch (GCD) is Apple's
+high-performance event-handling library.  It provides asynchronous
+task queues, monitoring of file descriptor read and write-ability,
+asynchronous I/O (for sockets and regular files), readers-writer locks,
+parallel for-loops, sane signal handling, periodic timers, semaphores
+and more.")
+      (license license:asl2.0))))
-- 
2.10.1

  parent reply	other threads:[~2016-10-28 15:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-28 15:01 [PATCH] Add libdispatch ng0
2016-10-28 15:01 ` [PATCH 1/4] gnu: Add libkqueue ng0
2016-10-28 15:01 ` [PATCH 2/4] gnu: Add libpthread_workqueue ng0
2016-10-28 15:01 ` [PATCH 3/4] gnu: Add libblocks-runtime ng0
2016-10-28 15:01 ` ng0 [this message]
2016-10-28 22:20 ` [PATCH] Add libdispatch Ricardo Wurmus
2016-10-29  7:22   ` ng0

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161028150132.25730-5-ng0@we.make.ritual.n0.is \
    --to=ng0@we.make.ritual.n0.is \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).