guix-commits
[Top][All Lists]
Advanced

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

01/23: gnu: Add ruby-open4.


From: guix-commits
Subject: 01/23: gnu: Add ruby-open4.
Date: Mon, 4 Mar 2019 15:33:32 -0500 (EST)

cbaines pushed a commit to branch master
in repository guix.

commit 433e3154302246b3009b44e7d8da266919ef0af8
Author: Christopher Baines <address@hidden>
Date:   Sun Feb 17 17:09:07 2019 +0000

    gnu: Add ruby-open4.
    
    Also add a copyright line, as I've obviously neglected to do that in the 
past.
    
    * gnu/packages/ruby.scm (ruby-open4): New variable.
---
 gnu/packages/ruby.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index a81535a..89ee521 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -10,6 +10,7 @@
 ;;; Copyright © 2017, 2018 Efraim Flashner <address@hidden>
 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <address@hidden>
 ;;; Copyright © 2017 Clément Lassieur <address@hidden>
+;;; Copyright © 2017, 2018, 2019 Christopher Baines <address@hidden>
 ;;; Copyright © 2018 Vasile Dumitrascu <address@hidden>
 ;;; Copyright © 2018 Alex Vong <address@hidden>
 ;;;
@@ -1172,6 +1173,40 @@ complexity.")
     (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap";)
     (license license:expat)))
 
+(define-public ruby-open4
+  (package
+  (name "ruby-open4")
+  (version "1.3.4")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (rubygems-uri "open4" version))
+      (sha256
+        (base32
+          "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
+  (build-system ruby-build-system)
+  (arguments
+   '(#:phases
+     (modify-phases %standard-phases
+       (add-after 'unpack 'patch
+         (lambda _
+           (substitute* "rakefile"
+             ;; Update the Rakefile so it works
+             (("-rubygems") "-rrubygems")
+             (("Config") "RbConfig"))
+           #t))
+       (add-before 'check 'set-LIB
+         (lambda _
+           ;; This is used in the rakefile when running the tests
+           (setenv "LIB" "open4")
+           #t)))))
+  (synopsis "Open child processes from Ruby and manage them easily")
+  (description
+    "@code{Open4} is a Ruby library to run child processes and manage their
+input and output.")
+  (home-page "https://github.com/ahoward/open4";)
+  (license license:ruby)))
+
 (define-public ruby-options
   (package
     (name "ruby-options")



reply via email to

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