gnu: ruby-asciimath: Update to 2.0.1.

* gnu/packages/maths.scm (ruby-asciimath): Update to 2.0.1.
[arguments]: Remove.
[native-inputs]: Remove bundler, add ruby-nokogiri.
This commit is contained in:
Maxim Cournoyer 2020-07-09 01:54:41 -04:00
parent 3e26bec042
commit b17a48d035
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -2616,28 +2616,17 @@ (define-public mumps-metis-openmpi
(define-public ruby-asciimath (define-public ruby-asciimath
(package (package
(name "ruby-asciimath") (name "ruby-asciimath")
(version "1.0.4") (version "2.0.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (rubygems-uri "asciimath" version)) (uri (rubygems-uri "asciimath" version))
(sha256 (sha256
(base32 (base32
"1d80kiph5mc78zps7si1hv48kv4k12mzaq8jk5kb3pqpjdr72qmc")))) "1aapydwwkydbwgz07n7ma3a5jy9n3v0shy6q6j8mi4wr3crhx45a"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
;; Apply this patch
;; https://github.com/asciidoctor/asciimath/commit/1c06fdc8086077f4785479f78b0823a4a72d7948
(add-after 'unpack 'patch-remove-spurious-backslashes
(lambda _
(substitute* "spec/parser_spec.rb"
(("\\\\\"")
"\""))
#t)))))
(native-inputs (native-inputs
`(("bundler" ,bundler) `(("ruby-nokogiri" ,ruby-nokogiri)
("ruby-rspec" ,ruby-rspec))) ("ruby-rspec" ,ruby-rspec)))
(synopsis "AsciiMath parsing and conversion library") (synopsis "AsciiMath parsing and conversion library")
(description (description