guix-commits
[Top][All Lists]
Advanced

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

04/19: gnu: ruby-benchmark-ips: Update to 2.12.0.


From: guix-commits
Subject: 04/19: gnu: ruby-benchmark-ips: Update to 2.12.0.
Date: Thu, 29 Jun 2023 07:06:02 -0400 (EDT)

cbaines pushed a commit to branch ruby-team
in repository guix.

commit 13842b50f633fa08cc1beb333f6e6db211a682d1
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Thu Jun 29 10:56:19 2023 +0100

    gnu: ruby-benchmark-ips: Update to 2.12.0.
    
    * gnu/packages/ruby.scm (ruby-benchmark-ips): Update to 2.12.0.
    [source]: Switch to git repository.
    [arguments]: Patch Gemfile and gemspec.
---
 gnu/packages/ruby.scm | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index cdad4ee407..d8960d00f2 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -8967,15 +8967,30 @@ abstraction for Ruby.")
 (define-public ruby-benchmark-ips
   (package
     (name "ruby-benchmark-ips")
-    (version "2.8.2")
+    (version "2.12.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (rubygems-uri "benchmark-ips" version))
+       (method git-fetch)               ;no tests in distributed gem
+       (uri (git-reference
+             (url "https://github.com/evanphx/benchmark-ips";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
         (base32
-         "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
+         "19pa2a1lgjzrxcz6vxwfiq5qq337vr15bbbpc2mfwzljdlx5059s"))))
     (build-system ruby-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch
+            (lambda _
+              (substitute* "Gemfile"
+                (("gem 'rake'.*")
+                 "gem 'rake'"))
+              (substitute* "benchmark-ips.gemspec"
+                (("git ls-files -- examples lib")
+                 "find examples lib -type f | sort")))))))
     (native-inputs
      (list ruby-hoe))
     (synopsis "Iterations per second enhancement for the Ruby Benchmark 
module")



reply via email to

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