diff mbox

[3/4] gnu: Add libblocks-runtime.

Message ID 20161028150132.25730-4-ng0@we.make.ritual.n0.is
State New
Headers show

Commit Message

non such Oct. 28, 2016, 3:01 p.m. UTC
* gnu/packages/libdispatch.scm (libblocks-runtime): New variable.
---
 gnu/packages/libdispatch.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
diff mbox

Patch

diff --git a/gnu/packages/libdispatch.scm b/gnu/packages/libdispatch.scm
index 37d9195..3902a82 100644
--- a/gnu/packages/libdispatch.scm
+++ b/gnu/packages/libdispatch.scm
@@ -23,6 +23,7 @@ 
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
   #: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 ruby))
@@ -93,3 +94,36 @@  native kernel facilities.")
      "libpthread_workqueue is a POSIX threads workqueue library.")
     (synopsis "Portable implementation of the pthread_workqueue API")
     (license license:bsd-2)))
+
+(define-public libblocks-runtime
+  (package
+    (name "libblocks-runtime")
+    (version "0.4.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/mheily/blocks-runtime/releases/"
+                    "download/v" version "/" "libblocksruntime-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1g1a25g1qfy3w21dy0kaxnj6ylbjskmsif68fw7xkavcgn6y21vq"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'autogen
+           (lambda _
+             (zero? (system* "autoreconf" "--install" "--verbose")))))))
+    (native-inputs
+     `(("autoconf" ,(autoconf-wrapper))
+       ("automake" ,automake)
+       ("clang" ,clang)
+       ("libtool" ,libtool)
+       ("pkg-config" ,pkg-config)))
+    (home-page "https://github.com/mheily/blocks-runtime/")
+    (description
+     "Blocks are a proposed extension to the C, Objective C, and C++
+languages developed by Apple to support the Grand Central Dispatch
+concurrency engine.")
+    (synopsis "Blocks Runtime")
+    (license (list license:ncsa license:expat))))