build: ruby-build-system: Remove an extraneous binding.

* guix/build/ruby-build-system.scm (install): Remove the RUBY-VERSION binding,
no longer used.  Fix the indentation of a comment.
This commit is contained in:
Maxim Cournoyer 2020-07-18 00:22:37 -04:00
parent 1994c4c6e7
commit 89fbca9de6
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -136,11 +136,7 @@ (define* (install #:key inputs outputs (gem-flags '())
#:allow-other-keys)
"Install the gem archive SOURCE to the output store item. Additional
GEM-FLAGS are passed to the 'gem' invocation, if present."
(let* ((ruby-version
(match:substring (string-match "ruby-(.*)\\.[0-9]$"
(assoc-ref inputs "ruby"))
1))
(out (assoc-ref outputs "out"))
(let* ((out (assoc-ref outputs "out"))
(vendor-dir (string-append out "/lib/ruby/vendor_ruby"))
(gem-file (first-matching-file "\\.gem$"))
(gem-file-basename (basename gem-file))
@ -151,8 +147,8 @@ (define* (install #:key inputs outputs (gem-flags '())
(setenv "GEM_VENDOR" vendor-dir)
(or (zero?
;; 'zero? system*' allows the custom error handling to function as
;; expected, while 'invoke' raises its own exception.
;; 'zero? system*' allows the custom error handling to function as
;; expected, while 'invoke' raises its own exception.
(apply system* "gem" "install" gem-file
"--verbose"
"--local" "--ignore-dependencies" "--vendor"