guix-commits
[Top][All Lists]
Advanced

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

08/08: gnu: Add ruby-tins.


From: Ricardo Wurmus
Subject: 08/08: gnu: Add ruby-tins.
Date: Mon, 30 Nov 2015 13:45:53 +0000

rekado pushed a commit to branch master
in repository guix.

commit 70b002aa1d721b207879a3e4a0fa33e7f302d723
Author: Ricardo Wurmus <address@hidden>
Date:   Tue Nov 24 16:54:09 2015 +0100

    gnu: Add ruby-tins.
    
    * gnu/packages/ruby.scm (ruby-tins): New variable.
---
 gnu/packages/ruby.scm |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 7e02d41..c51a5f0 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1862,6 +1862,36 @@ documentation for Ruby code.")
     (home-page "http://github.com/voloko/sdoc";)
     (license license:expat)))
 
+(define-public ruby-tins
+  (package
+    (name "ruby-tins")
+    (version "1.7.0")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "tins" version))
+              (sha256
+               (base32
+                "1060h8dgnjl9az0sv1b74yrni8d4mh3x858wq6yfbfdf5dxrfl0a"))))
+    (build-system ruby-build-system)
+    ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
+    ;; at runtime.  To avoid the dependency on gem-hadar we disable rebuilding
+    ;; the gemspec.
+    (arguments
+     `(#:tests? #f ; there are no tests
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'build
+          (lambda _
+            ;; "lib/spruz" is a symlink.  Leaving it in the gemspec file
+            ;; causes an error.
+            (substitute* "tins.gemspec"
+              (("\"lib/spruz\", ") ""))
+            (zero? (system* "gem" "build" "tins.gemspec")))))))
+    (synopsis "Assorted tools for Ruby")
+    (description "Tins is a Ruby library providing assorted tools.")
+    (home-page "https://github.com/flori/tins";)
+    (license license:expat)))
+
 (define-public ruby-json
   (package
     (name "ruby-json")



reply via email to

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