gnu: ruby-asciidoctor: Update to 2.0.10.
* gnu/packages/ruby.scm (ruby-asciidoctor): Update to 2.0.10. [origin]: Use git-fetch. [phases]: Remove 'remove-circular-tests. Add 'strip-version-requirements. [native-inputs]: Add ruby-erubis, ruby-cucumber, ruby-haml, ruby-rouge, ruby-rspec-expectations, ruby-simplecov, ruby-slim and ruby-tilt.master
parent
751bf33d47
commit
5df1126c3a
|
@ -1097,31 +1097,50 @@ syntax to the minimum while remaining clear.")
|
||||||
(define-public ruby-asciidoctor
|
(define-public ruby-asciidoctor
|
||||||
(package
|
(package
|
||||||
(name "ruby-asciidoctor")
|
(name "ruby-asciidoctor")
|
||||||
(version "1.5.7.1")
|
(version "2.0.10")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch) ;the gem release lacks a Rakefile
|
||||||
(uri (rubygems-uri "asciidoctor" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/asciidoctor/asciidoctor.git")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
|
"0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "test:all"
|
`(#:test-target "test:all"
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'check 'remove-circular-tests
|
(replace 'replace-git-ls-files
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Remove tests that require circular dependencies to load or pass.
|
;; TODO: Remove after the fix of using 'cut' to better mimic the
|
||||||
(delete-file "test/invoker_test.rb")
|
;; git ls-files output is merged in ruby-build-system.
|
||||||
(delete-file "test/converter_test.rb")
|
(substitute* "asciidoctor.gemspec"
|
||||||
(delete-file "test/options_test.rb")
|
(("`git ls-files -z`")
|
||||||
|
"`find . -type f -print0 |sort -z|cut -zc3-`"))
|
||||||
|
#t))
|
||||||
|
(add-after 'extract-gemspec 'strip-version-requirements
|
||||||
|
(lambda _
|
||||||
|
(delete-file "Gemfile")
|
||||||
|
(substitute* "asciidoctor.gemspec"
|
||||||
|
(("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
|
||||||
|
(string-append stripped "\n")))
|
||||||
#t)))))
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("ruby-minitest" ,ruby-minitest)
|
`(("ruby-erubis" ,ruby-erubis)
|
||||||
|
("ruby-minitest" ,ruby-minitest)
|
||||||
("ruby-nokogiri" ,ruby-nokogiri)
|
("ruby-nokogiri" ,ruby-nokogiri)
|
||||||
("ruby-asciimath" ,ruby-asciimath)
|
("ruby-asciimath" ,ruby-asciimath)
|
||||||
("ruby-coderay" ,ruby-coderay)))
|
("ruby-coderay" ,ruby-coderay)
|
||||||
|
("ruby-cucumber" ,ruby-cucumber)
|
||||||
|
("ruby-haml" ,ruby-haml)
|
||||||
|
("ruby-rouge" ,ruby-rouge)
|
||||||
|
("ruby-rspec-expectations" ,ruby-rspec-expectations)
|
||||||
|
("ruby-simplecov" ,ruby-simplecov)
|
||||||
|
("ruby-slim" ,ruby-slim)
|
||||||
|
("ruby-tilt" ,ruby-tilt)))
|
||||||
(synopsis "Converter from AsciiDoc content to other formats")
|
(synopsis "Converter from AsciiDoc content to other formats")
|
||||||
(description "Asciidoctor is a text processor and publishing toolchain for
|
(description "Asciidoctor is a text processor and publishing toolchain for
|
||||||
converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
|
converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
|
||||||
|
|
Reference in New Issue