all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: 28885@debbugs.gnu.org
Subject: [bug#28885] [PATCH 5/9] gnu: Add ruby-czmq-ffi-gen.
Date: Sat, 24 Feb 2018 16:39:48 +0000	[thread overview]
Message-ID: <20180224163952.7441-5-mail@cbaines.net> (raw)
In-Reply-To: <20180224163952.7441-1-mail@cbaines.net>

* gnu/packages/ruby.scm (ruby-czmq-ffi-gen): New variable.
---
 gnu/packages/ruby.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 456afb3f5..a9725af81 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -36,6 +36,7 @@
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages java)
   #:use-module (gnu packages libffi)
+  #:use-module (gnu packages networking)
   #:use-module (gnu packages python)
   #:use-module (gnu packages ragel)
   #:use-module (gnu packages tls)
@@ -635,6 +636,46 @@ format.")
     (home-page "https://github.com/nicksieger/ci_reporter")
     (license license:expat)))
 
+(define-public ruby-czmq-ffi-gen
+  (package
+    (name "ruby-czmq-ffi-gen")
+    (version "0.13.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "czmq-ffi-gen" version))
+       (sha256
+        (base32
+         "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:tests? #f ;; Tests are not included in the release on rubygems.org
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-lib_dirs
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
+               (("lib\\_dirs = \\[.*\\]")
+                (string-append "lib_dirs = ['"
+                               (assoc-ref inputs "czmq") "/lib"
+                               "']")))
+             (substitute* "lib/czmq-ffi-gen/libzmq.rb"
+               (("lib\\_dirs = \\[.*\\]")
+                (string-append "lib_dirs = ['"
+                               (assoc-ref inputs "zeromq") "/lib"
+                               "']"))))))))
+    (inputs
+     `(("zeromq" ,zeromq)
+       ("czmq" ,czmq)))
+    (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
+    (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
+    (description
+     "These Ruby bindings are not intended to be directly used, but rather
+used by higher level bindings like those provided by CZTop.")
+    (home-page
+     "https://github.com/paddor/czmq-ffi-gen")
+    (license license:isc)))
+
 (define-public ruby-saikuro-treemap
   (package
     (name "ruby-saikuro-treemap")
-- 
2.16.1

  parent reply	other threads:[~2018-02-24 16:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-18  5:58 [bug#28885] [PATCH] Add ruby-iruby and dependencies Christopher Baines
2017-10-18  6:03 ` [bug#28885] [PATCH 1/9] gnu: networking: Add czmq Christopher Baines
2017-10-18  6:03   ` [bug#28885] [PATCH 2/9] gnu: Add ruby-mocha-on-bacon Christopher Baines
2017-10-18  6:03   ` [bug#28885] [PATCH 3/9] gnu: Add ruby-bacon-bits Christopher Baines
2017-10-18  6:03   ` [bug#28885] [PATCH 4/9] gnu: Add ruby-bond Christopher Baines
2017-10-18  6:03   ` [bug#28885] [PATCH 5/9] gnu: Add ruby-czmq-ffi-gen Christopher Baines
2017-10-18  6:03   ` [bug#28885] [PATCH 6/9] gnu: Add ruby-cztop Christopher Baines
2017-10-18  6:03   ` [bug#28885] [PATCH 7/9] gnu: Add ruby-data_uri Christopher Baines
2017-10-18  6:03   ` [bug#28885] [PATCH 8/9] gnu: Add ruby-mimemagic Christopher Baines
2017-10-18  6:03   ` [bug#28885] [PATCH 9/9] gnu: Add ruby-iruby Christopher Baines
2018-02-24 16:39 ` [bug#28885] [PATCH 1/9] gnu: networking: Add czmq Christopher Baines
2018-02-24 16:39   ` [bug#28885] [PATCH 2/9] gnu: Add ruby-mocha-on-bacon Christopher Baines
2018-02-24 16:39   ` [bug#28885] [PATCH 3/9] gnu: Add ruby-bacon-bits Christopher Baines
2018-02-24 16:39   ` [bug#28885] [PATCH 4/9] gnu: Add ruby-bond Christopher Baines
2018-02-24 16:39   ` Christopher Baines [this message]
2018-02-24 16:39   ` [bug#28885] [PATCH 6/9] gnu: Add ruby-cztop Christopher Baines
2018-02-24 16:39   ` [bug#28885] [PATCH 7/9] gnu: Add ruby-data_uri Christopher Baines
2018-02-24 16:39   ` [bug#28885] [PATCH 8/9] gnu: Add ruby-mimemagic Christopher Baines
2018-02-24 16:39   ` [bug#28885] [PATCH 9/9] gnu: Add ruby-iruby Christopher Baines
2018-02-24 16:48 ` [bug#28885] [PATCH] Add ruby-iruby and dependencies Christopher Baines
2018-03-03 13:13   ` bug#28885: " Christopher Baines

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

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

  git send-email \
    --in-reply-to=20180224163952.7441-5-mail@cbaines.net \
    --to=mail@cbaines.net \
    --cc=28885@debbugs.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.