1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-29 13:31:16 +02:00

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

* gnu/packages/ruby-xyz.scm (ruby-asciidoctor-pdf): Update to 2.3.24.
[native-inputs]: Add poppler.
[arguments]<#:test-target>: Remove unused argument.
<#:phases>{relax-dependencies}: Add/restore phase.
{check}: Update tests.

Fixes: guix/guix#6050
Change-Id: I6b81683cba2b3131fa3c44471739309f35c89554
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Aaron Covrig
2026-03-02 07:36:42 -05:00
committed by Andreas Enge
parent 6d65f8815d
commit b6f7a95dc1

View File

@@ -1304,7 +1304,7 @@ configurable levels.")
(define-public ruby-asciidoctor-pdf
(package
(name "ruby-asciidoctor-pdf")
(version "2.3.19")
(version "2.3.24")
(source
(origin
(method git-fetch) ;no test suite in the distributed gem
@@ -1314,16 +1314,19 @@ configurable levels.")
(file-name (git-file-name name version))
(sha256
(base32
"1l8my8jj4aww2yad80n6f7hs76lq5gicld8dy014pw90pk3x43mp"))
"0njpbgfdwzw7rbjj5vg5xjmykm55x588fk437nvaqg6bq7pv66mw"))
(patches
(search-patches
"ruby-asciidoctor-pdf-support-prawn-svg-0_36.patch"))))
(build-system ruby-build-system)
(arguments
(list
#:test-target "spec"
#:phases
#~(modify-phases %standard-phases
(add-after 'extract-gemspec 'relax-dependencies
(lambda _
(substitute* "asciidoctor-pdf.gemspec"
(("~>") ">="))))
;; The tests rely on the Gem being installed, so move the check
;; phase after the install phase.
(delete 'check)
@@ -1333,10 +1336,28 @@ configurable levels.")
(getenv "GEM_PATH") ":"
#$output "/lib/ruby/vendor_ruby"))
(when tests?
(invoke "rspec" "-t" "~visual" "-t" "~cli"
"-t" "~network")))))))
(let ((skippedtests
(list ;; Disable tests requiring write access
"should render linear gradient in SVG"
;; Disable visual+cli tests requiring network access
"should allow remote image in SVG to be read if allow"
"should warn if remote image is missing and allow"
"should replace video with poster image if allow"
"should read remote image over"
"should embed remote image")))
(setenv "SPEC_OPTS"
(string-append
"--warnings" " "
;; Disable tests failing in the guix environment:
"--example-matches "
"'(^(?!.*(" (string-join skippedtests "|") ")).*)'")))
;; The Fontconfig error: No writable cache directories errors
;; are caused by our read-only test environment and are
;; non-failing
(invoke "rspec" "-t" "~network")))))))
(native-inputs
(list ruby-chunky-png
(list poppler
ruby-chunky-png
ruby-coderay
ruby-pdf-inspector
ruby-rouge