[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/15: gnu: ruby-rbnacl: Use new package style.
From: |
guix-commits |
Subject: |
04/15: gnu: ruby-rbnacl: Use new package style. |
Date: |
Mon, 10 Jul 2023 07:40:27 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit f6e6d5981fdd38fab8cedea6f2d8460f7a0488bd
Author: gemmaro <gemmaro.dev@gmail.com>
AuthorDate: Sun Jul 9 14:57:20 2023 +0900
gnu: ruby-rbnacl: Use new package style.
* gnu/packages/ruby.scm (ruby-rbnacl): Use new package style.
[arguments]: Use gexp.
[source, propagated-inputs, inputs, native-inputs]: Restyle format.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/ruby.scm | 84 +++++++++++++++++++++++++--------------------------
1 file changed, 42 insertions(+), 42 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 9426a95f01..e47e3a01c9 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3250,50 +3250,50 @@ same log file.")
(package
(name "ruby-rbnacl")
(version "7.1.1")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "rbnacl" version))
- (sha256
- (base32
- "0y8yzianlkc9w6sbqy8iy8l0yym0y6x7p5rjflkfixq76fqmhvzk"))))
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rbnacl" version))
+ (sha256
+ (base32
+ "0y8yzianlkc9w6sbqy8iy8l0yym0y6x7p5rjflkfixq76fqmhvzk"))))
(build-system ruby-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'remove-unnecessary-dependencies
- (lambda _
- ;; Coveralls relates to a network service, and Rubocop to code
- ;; linting and both are unnecessary to run the tests
- (substitute* "Gemfile"
- ((".*rubocop.*") "\n")
- ((".*guard-rspec.*") "\n")
- ((".*coveralls.*") "\n"))
- (substitute* "spec/spec_helper.rb"
- (("require \"coveralls\"") "")
- (("Coveralls.wear!") ""))
- #t))
- (add-after 'unpack 'use-libsodium-from-store
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* '("lib/rbnacl/init.rb"
- "lib/rbnacl/sodium.rb")
- (("ffi_lib \\[.+\\]")
- (string-append "ffi_lib [\""
- (assoc-ref inputs "libsodium")
"/lib/libsodium.so"
- "\"]")))
- #t))
- ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "rspec"))
- #t)))))
- (propagated-inputs
- (list ruby-ffi))
- (inputs
- (list libsodium))
- (native-inputs
- (list bundler ruby-rspec))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-unnecessary-dependencies
+ (lambda _
+ ;; Coveralls relates to a network service, and Rubocop to code
+ ;; linting and both are unnecessary to run the tests
+ (substitute* "Gemfile"
+ ((".*rubocop.*")
+ "\n")
+ ((".*guard-rspec.*")
+ "\n")
+ ((".*coveralls.*")
+ "\n"))
+ (substitute* "spec/spec_helper.rb"
+ (("require \"coveralls\"")
+ "")
+ (("Coveralls.wear!")
+ ""))))
+ (add-after 'unpack 'use-libsodium-from-store
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* '("lib/rbnacl/init.rb"
+ "lib/rbnacl/sodium.rb")
+ (("ffi_lib \\[.+\\]")
+ (string-append "ffi_lib [\""
+ (assoc-ref inputs "libsodium")
+ "/lib/libsodium.so" "\"]")))))
+ ;; Run Rspec directly to avoid the Rubocop dependency in the
+ ;; Rakefile
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (propagated-inputs (list ruby-ffi))
+ (inputs (list libsodium))
+ (native-inputs (list bundler ruby-rspec))
(synopsis "Ruby FFI binding to libsodium")
(description
"This package provides Ruby FFI bindings to the Networking and
- branch master updated (d0296970fb -> b7be0a999d), guix-commits, 2023/07/10
- 01/15: gnu: Add ruby-bcrypt-pbkdf., guix-commits, 2023/07/10
- 13/15: gnu: python-blessed: Add missing dependency., guix-commits, 2023/07/10
- 04/15: gnu: ruby-rbnacl: Use new package style.,
guix-commits <=
- 05/15: gnu: Add ruby-x25519., guix-commits, 2023/07/10
- 12/15: gnu: ruby-hamster: Fix build., guix-commits, 2023/07/10
- 11/15: gnu: ruby-terraform: Update to 1.7.0., guix-commits, 2023/07/10
- 10/15: gnu: Add ruby-faker., guix-commits, 2023/07/10
- 14/15: gnu: python-curtsies: Update to 0.4.1., guix-commits, 2023/07/10
- 07/15: gnu: ruby-i18n: Update to 1.13.0., guix-commits, 2023/07/10
- 06/15: gnu: ruby-net-ssh: Update to 7.1.0., guix-commits, 2023/07/10
- 09/15: gnu: Add ruby-immutable-struct., guix-commits, 2023/07/10
- 02/15: gnu: Add ruby-ed25519., guix-commits, 2023/07/10
- 08/15: gnu: ruby-lino: Update to 3.1.0., guix-commits, 2023/07/10