gnu: ruby-asciidoctor-pdf: Update to 1.6.1.

* gnu/packages/ruby.scm (ruby-asciidoctor-pdf): Update to 1.6.1.
[arguments]: Remove trailing #t's.
This commit is contained in:
Marius Bakke 2021-12-11 20:02:12 +01:00
parent 539031ed86
commit 9896e828ca
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -1831,23 +1831,19 @@ web pages.")
(license license:expat))) (license license:expat)))
(define-public ruby-asciidoctor-pdf (define-public ruby-asciidoctor-pdf
;; Use the latest commit, as the last tag doesn't build with the
;; latest Ruby dependencies in Guix.
(let ((revision "1")
(commit "d257440df895d1595a3825ef58b32e4b290ba1c3"))
(package (package
(name "ruby-asciidoctor-pdf") (name "ruby-asciidoctor-pdf")
(version (git-version "1.5.3" revision commit)) (version "1.6.1")
(source (source
(origin (origin
(method git-fetch) ;no test suite in the distributed gem (method git-fetch) ;no test suite in the distributed gem
(uri (git-reference (uri (git-reference
(url "https://github.com/asciidoctor/asciidoctor-pdf") (url "https://github.com/asciidoctor/asciidoctor-pdf")
(commit commit))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1563d11ghzsrsg4inwfwj6b9hb5sk5b429f49fwq5qg3sq76kgjj")))) "1iyfy6n9d3rkyrfjmnnfb44c76mq1larmkv1x8n6p5nbm33wb9sf"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
`(#:test-target "spec" `(#:test-target "spec"
@ -1859,14 +1855,12 @@ web pages.")
;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965). ;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965).
(lambda _ (lambda _
(delete-file "spec/audio_spec.rb") (delete-file "spec/audio_spec.rb")
(delete-file "spec/video_spec.rb") (delete-file "spec/video_spec.rb")))
#t))
(add-after 'extract-gemspec 'strip-version-requirements (add-after 'extract-gemspec 'strip-version-requirements
(lambda _ (lambda _
(substitute* "asciidoctor-pdf.gemspec" (substitute* "asciidoctor-pdf.gemspec"
(("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped) (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
(string-append stripped "\n"))) (string-append stripped "\n")))))
#t))
;; The tests rely on the Gem being installed, so move the check phase ;; The tests rely on the Gem being installed, so move the check phase
;; after the install phase. ;; after the install phase.
(delete 'check) (delete 'check)
@ -1877,8 +1871,7 @@ web pages.")
(setenv "GEM_PATH" (setenv "GEM_PATH"
(string-append (getenv "GEM_PATH") ":" new-gem)) (string-append (getenv "GEM_PATH") ":" new-gem))
(when tests? (when tests?
(invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network")) (invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network"))))))))
#t))))))
(native-inputs (native-inputs
`(("ruby-chunky-png" ,ruby-chunky-png) `(("ruby-chunky-png" ,ruby-chunky-png)
("ruby-coderay" ,ruby-coderay) ("ruby-coderay" ,ruby-coderay)
@ -1924,7 +1917,7 @@ PDF library. It has features such as:
@item Double-sided printing mode (margins alternate on recto and verso pages) @item Double-sided printing mode (margins alternate on recto and verso pages)
@end itemize") @end itemize")
(home-page "https://asciidoctor.org/docs/asciidoctor-pdf") (home-page "https://asciidoctor.org/docs/asciidoctor-pdf")
(license license:expat)))) (license license:expat)))
(define-public ruby-ast (define-public ruby-ast
(package (package