mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-15 11:30:44 +02:00
gnu: ruby: Update to 2.3.0.
* gnu/packages/ruby.scm (ruby): Update to 2.3.0. [source]: Remove bundled libffi. [arguments]: Use parallel tests. (ruby-2.2): New variable.
This commit is contained in:
parent
9656b8bec5
commit
65e84e3176
1 changed files with 28 additions and 4 deletions
|
@ -46,7 +46,7 @@
|
||||||
(define-public ruby
|
(define-public ruby
|
||||||
(package
|
(package
|
||||||
(name "ruby")
|
(name "ruby")
|
||||||
(version "2.2.4")
|
(version "2.3.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -55,14 +55,19 @@
|
||||||
"/ruby-" version ".tar.xz"))
|
"/ruby-" version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0g3ps4q3iz7wj9m45n8xyxzw8nh29ljdqb87b0f6i0p3853gz2yj"))))
|
"15s0dsb5ynf3d2w5gzawnszq5594fqvapv2y7a0qw16przq5l4kh"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet `(begin
|
||||||
|
;; Remove bundled libffi
|
||||||
|
(delete-file-recursively
|
||||||
|
(string-append "ext/fiddle/libffi-3.2.1"))
|
||||||
|
#t))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "test"
|
`(#:test-target "test"
|
||||||
#:parallel-tests? #f
|
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'configure 'replace-bin-sh
|
(add-before 'configure 'replace-bin-sh-and-remove-libffi
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* '("Makefile.in"
|
(substitute* '("Makefile.in"
|
||||||
"ext/pty/pty.c"
|
"ext/pty/pty.c"
|
||||||
|
@ -95,6 +100,25 @@ a focus on simplicity and productivity.")
|
||||||
(home-page "https://ruby-lang.org")
|
(home-page "https://ruby-lang.org")
|
||||||
(license license:ruby)))
|
(license license:ruby)))
|
||||||
|
|
||||||
|
(define-public ruby-2.2
|
||||||
|
(package (inherit ruby)
|
||||||
|
(version "2.2.4")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
|
||||||
|
(version-major+minor version)
|
||||||
|
"/ruby-" version ".tar.xz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0g3ps4q3iz7wj9m45n8xyxzw8nh29ljdqb87b0f6i0p3853gz2yj"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet `(begin
|
||||||
|
;; Remove bundled libffi
|
||||||
|
(delete-file-recursively
|
||||||
|
(string-append "ext/fiddle/libffi-3.2.1"))
|
||||||
|
#t))))))
|
||||||
|
|
||||||
(define-public ruby-2.1
|
(define-public ruby-2.1
|
||||||
(package (inherit ruby)
|
(package (inherit ruby)
|
||||||
(version "2.1.6")
|
(version "2.1.6")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue