guix_mirror_bot pushed a commit to branch ruby-team
in repository guix.
commit c62a3ea0288ed0988bac27d65ca88bf01f8d28bd
Author: Zheng Junjie <[email protected]>
AuthorDate: Wed Oct 7 22:59:51 2026 +0800
gnu: ruby-3.4: Use G-exp.
* gnu/packages/ruby.scm (ruby-3.4)[arguments]: Use G-expressions.
---
gnu/packages/ruby.scm | 62 +++++++++++++++++++++++++--------------------------
1 file changed, 31 insertions(+), 31 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 7058aab2b43..792b3677aa1 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -174,37 +174,37 @@ a focus on simplicity and productivity.")
"1irh0l7g75p0arnah58ismzixa80qxn99x3qfnalcxg0ys35lhnv"))))
(build-system gnu-build-system)
(arguments
- `(#:test-target "test"
- #:configure-flags
- ,(if (%current-target-system)
- '(list (string-append
- "LDFLAGS=-Wl,-rpath="
- (assoc-ref %outputs "out") "/lib")
- "--enable-shared")
- ''("--enable-shared")) ; dynamic linking
- #:phases
- (modify-phases %standard-phases
- (add-before 'configure 'replace-bin-sh-and-remove-libffi
- (lambda _
- (substitute* '("configure.ac"
- "template/Makefile.in"
- "lib/rubygems/installer.rb"
- "ext/pty/pty.c"
- "io.c"
- "lib/mkmf.rb"
- "process.c"
- "test/rubygems/test_gem_ext_configure_builder.rb"
- "test/rdoc/rdoc_parser_test.rb"
- "test/ruby/test_rubyoptions.rb"
- "test/ruby/test_process.rb"
- "test/ruby/test_system.rb"
- "tool/rbinstall.rb")
- (("/bin/sh") (which "sh")))))
- ,@(if (system-hurd?)
- '((add-after 'unpack 'skip-tests
- (lambda _
- (delete-file "bootstraptest/test_ractor.rb"))))
- '()))))
+ (list #:test-target "test"
+ #:configure-flags
+ #~(list
+ "--enable-shared" ; dynamic linking
+ #$@(if (%current-target-system)
+ #~(list
+ (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib"))
+ #~()))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'replace-bin-sh-and-remove-libffi
+ (lambda _
+ (substitute* '("configure.ac"
+ "template/Makefile.in"
+ "lib/rubygems/installer.rb"
+ "ext/pty/pty.c"
+ "io.c"
+ "lib/mkmf.rb"
+ "process.c"
+
"test/rubygems/test_gem_ext_configure_builder.rb"
+ "test/rdoc/rdoc_parser_test.rb"
+ "test/ruby/test_rubyoptions.rb"
+ "test/ruby/test_process.rb"
+ "test/ruby/test_system.rb"
+ "tool/rbinstall.rb")
+ (("/bin/sh") (which "sh")))))
+ #$@(if (system-hurd?)
+ '((add-after 'unpack 'skip-tests
+ (lambda _
+ (delete-file "bootstraptest/test_ractor.rb"))))
+ '()))))
(native-inputs
(append (if (%current-target-system)
(list this-package)