guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: ruby-method-source: Remove unnecessary dependency on git.


From: guix-commits
Subject: 01/02: gnu: ruby-method-source: Remove unnecessary dependency on git.
Date: Sat, 16 Jan 2021 06:13:56 -0500 (EST)

cbaines pushed a commit to branch master
in repository guix.

commit b52bf667394991affcfba77bc72ed3d6e0b4d540
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sat Jan 16 10:46:02 2021 +0000

    gnu: ruby-method-source: Remove unnecessary dependency on git.
    
    * gnu/packages/ruby.scm (ruby-method-source)[arguments]: Patch Rakefile to 
use
    find rather than git.
    [native-inputs]: Remove git.
---
 gnu/packages/ruby.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index c5b1af7..b811cbd 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5020,10 +5020,16 @@ both CSS3 selector and XPath 1.0 support.")
          "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
     (build-system ruby-build-system)
     (arguments
-     `(#:test-target "spec"))
+     `(#:test-target "spec"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'remove-git-ls-files
+           (lambda* (#:key outputs #:allow-other-keys)
+             (substitute* "Rakefile"
+               (("git ls-files") "find . -type f"))
+             #t)))))
     (native-inputs
-     `(("ruby-rspec" ,ruby-rspec)
-       ("git" ,git)))
+     `(("ruby-rspec" ,ruby-rspec)))
     (synopsis "Retrieve the source code for Ruby methods")
     (description "Method_source retrieves the source code for Ruby methods.
 Additionally, it can extract source code from Proc and Lambda objects or just



reply via email to

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