guix-commits
[Top][All Lists]
Advanced

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

38/59: gnu: ruby-protobuf: Fix build.


From: guix-commits
Subject: 38/59: gnu: ruby-protobuf: Fix build.
Date: Wed, 28 Jun 2023 05:55:16 -0400 (EDT)

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

commit 1f9176a67cd7f68e28d6a01cbca2e7eefad19f80
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Wed Jun 28 08:22:34 2023 +0100

    gnu: ruby-protobuf: Fix build.
    
    * gnu/packages/protobuf.scm (ruby-protobuf)[arguments]: Update style.
    [native-inputs]: Remove ruby-pry-byebug.
---
 gnu/packages/protobuf.scm | 78 +++++++++++++++++++++++------------------------
 1 file changed, 39 insertions(+), 39 deletions(-)

diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
index 7269f01c62..8cd805799e 100644
--- a/gnu/packages/protobuf.scm
+++ b/gnu/packages/protobuf.scm
@@ -563,49 +563,49 @@ source files.")
                 "12hp1clg83jfl35x1h2ymzpj5w83wrnqw7hjfc6mqa8lsvpw535r"))))
     (build-system ruby-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'do-not-use-bundler-for-tests
-           (lambda _
-             (substitute* "spec/spec_helper.rb"
-               (("Bundler\\.setup.*") ""))))
-         (add-after 'unpack 'relax-version-requirements
-           (lambda _
-             (substitute* ((@@ (guix build ruby-build-system) first-gemspec))
-               (("'rake',.*")
-                "'rake'\n")
-               (("\"rubocop\",.*")
-                "'rubocop'\n")
-               (("\"parser\",.*")
-                "'parser'\n"))))
-         (add-after 'unpack 'patch-protoc
-           (lambda* (#:key inputs #:allow-other-keys)
-             (substitute* "lib/protobuf/tasks/compile.rake"
-               (("\"protoc\"")
-                (string-append "\"" (search-input-file inputs "bin/protoc")
-                               "\"")))))
-         (add-after 'unpack 'skip-failing-test
-           ;; See: https://github.com/ruby-protobuf/protobuf/issues/419
-           (lambda _
-             (substitute* "spec/lib/protobuf/rpc/connectors/ping_spec.rb"
-               (("expect\\(::IO\\)\\.to receive\\(:select\\).*" all)
-                (string-append "        pending\n" all)))))
-         (add-after 'replace-git-ls-files 'replace-more-git-ls-files
-           (lambda _
-             (substitute* ((@@ (guix build ruby-build-system) first-gemspec))
-               (("`git ls-files -- \\{test,spec,features\\}/*`")
-                "`find test spec features -type f | sort`")
-               (("`git ls-files -- bin/*`")
-                "`find bin -type f | sort`"))))
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             (when tests?
-               (invoke "rspec")))))))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'do-not-use-bundler-for-tests
+            (lambda _
+              (substitute* "spec/spec_helper.rb"
+                (("Bundler\\.setup.*") ""))))
+          (add-after 'unpack 'relax-version-requirements
+            (lambda _
+              (substitute* ((@@ (guix build ruby-build-system) first-gemspec))
+                (("'rake',.*")
+                 "'rake'\n")
+                (("\"rubocop\",.*")
+                 "'rubocop'\n")
+                (("\"parser\",.*")
+                 "'parser'\n"))))
+          (add-after 'unpack 'patch-protoc
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* "lib/protobuf/tasks/compile.rake"
+                (("\"protoc\"")
+                 (string-append "\"" (search-input-file inputs "bin/protoc")
+                                "\"")))))
+          (add-after 'unpack 'skip-failing-test
+            ;; See: https://github.com/ruby-protobuf/protobuf/issues/419
+            (lambda _
+              (substitute* "spec/lib/protobuf/rpc/connectors/ping_spec.rb"
+                (("expect\\(::IO\\)\\.to receive\\(:select\\).*" all)
+                 (string-append "        pending\n" all)))))
+          (add-after 'replace-git-ls-files 'replace-more-git-ls-files
+            (lambda _
+              (substitute* ((@@ (guix build ruby-build-system) first-gemspec))
+                (("`git ls-files -- \\{test,spec,features\\}/*`")
+                 "`find test spec features -type f | sort`")
+                (("`git ls-files -- bin/*`")
+                 "`find bin -type f | sort`"))))
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (invoke "rspec")))))))
     (native-inputs
      (list ruby-benchmark-ips
            ruby-ffi-rzmq
            ruby-parser
-           ruby-pry-byebug
            ruby-pry-stack-explorer
            ruby-rake
            ruby-rspec



reply via email to

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