diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-01-06 13:05:11 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-01-08 00:41:05 -0500 |
commit | 6d83856422677441624a0f942442377b51877234 (patch) | |
tree | b569dc28d529ea95c56646966a29504af136ee3d /gnu/packages/ruby.scm | |
parent | a0b73c4be5dcbcb228e7c80f0be368059c77126b (diff) | |
download | guix-6d83856422677441624a0f942442377b51877234.tar guix-6d83856422677441624a0f942442377b51877234.tar.gz |
gnu: ruby-asciidoctor-pdf: Update to 2.3.4.
* gnu/packages/ruby.scm (ruby-asciidoctor-pdf): Update to 2.3.4.
[arguments]: Use gexps. Streamline check phase. Delete remove-failing-tests
phase.
[native-inputs]: Break on multiple lines.
[propagated-inputs]: Remove labels.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r-- | gnu/packages/ruby.scm | 81 |
1 files changed, 39 insertions, 42 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 4108bc177e..07a7d6d568 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1844,7 +1844,7 @@ web pages.") (define-public ruby-asciidoctor-pdf (package (name "ruby-asciidoctor-pdf") - (version "1.6.1") + (version "2.3.4") (source (origin (method git-fetch) ;no test suite in the distributed gem @@ -1854,52 +1854,49 @@ web pages.") (file-name (git-file-name name version)) (sha256 (base32 - "1iyfy6n9d3rkyrfjmnnfb44c76mq1larmkv1x8n6p5nbm33wb9sf")))) + "07krhpj2ylz7h7hy8vg0js8yv828qxh3mkhx0bsrfh0p24xwbjrm")))) (build-system ruby-build-system) (arguments - `(#:test-target "spec" - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'remove-failing-tests - ;; Two tests module fail for unknown reasons, *only* when - ;; ran in the build container (see: - ;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965). - (lambda _ - (delete-file "spec/audio_spec.rb") - (delete-file "spec/video_spec.rb"))) - (add-after 'extract-gemspec 'strip-version-requirements - (lambda _ - (substitute* "asciidoctor-pdf.gemspec" - (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped) - (string-append stripped "\n"))))) - ;; The tests rely on the Gem being installed, so move the check phase - ;; after the install phase. - (delete 'check) - (add-after 'install 'check - (lambda* (#:key outputs tests? #:allow-other-keys) - (let ((new-gem (string-append (assoc-ref outputs "out") - "/lib/ruby/vendor_ruby"))) - (setenv "GEM_PATH" - (string-append (getenv "GEM_PATH") ":" new-gem)) - (when tests? - (invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network")))))))) + (list + #:test-target "spec" + #:phases + #~(modify-phases %standard-phases + (add-after 'extract-gemspec 'strip-version-requirements + (lambda _ + (substitute* "asciidoctor-pdf.gemspec" + (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped) + (string-append stripped "\n"))))) + ;; The tests rely on the Gem being installed, so move the check + ;; phase after the install phase. + (delete 'check) + (add-after 'install 'check + (lambda* (#:key tests? #:allow-other-keys) + (setenv "GEM_PATH" (string-append + (getenv "GEM_PATH") ":" + #$output "/lib/ruby/vendor_ruby")) + (when tests? + (invoke "rspec" "-t" "~visual" "-t" "~cli" + "-t" "~network"))))))) (native-inputs - (list ruby-chunky-png ruby-coderay ruby-pdf-inspector ruby-rouge + (list ruby-chunky-png + ruby-coderay + ruby-pdf-inspector + ruby-rouge ruby-rspec)) (propagated-inputs - `(("ruby-asciidoctor" ,ruby-asciidoctor) - ("ruby-concurrent-ruby" ,ruby-concurrent) - ("ruby-open-uri-cached" ,ruby-open-uri-cached) - ("ruby-prawn" ,ruby-prawn) - ("ruby-prawn-icon" ,ruby-prawn-icon) - ("ruby-prawn-svg" ,ruby-prawn-svg) - ("ruby-prawn-table" ,ruby-prawn-table) - ("ruby-prawn-templates" ,ruby-prawn-templates) - ("ruby-safe-yaml" ,ruby-safe-yaml) - ("ruby-text-hyphen" ,ruby-text-hyphen) - ("ruby-thread-safe" ,ruby-thread-safe) - ("ruby-treetop" ,ruby-treetop) - ("ruby-ttfunk" ,ruby-ttfunk))) + (list ruby-asciidoctor + ruby-concurrent + ruby-open-uri-cached + ruby-prawn + ruby-prawn-icon + ruby-prawn-svg + ruby-prawn-table + ruby-prawn-templates + ruby-safe-yaml + ruby-text-hyphen + ruby-thread-safe + ruby-treetop + ruby-ttfunk)) (synopsis"AsciiDoc to Portable Document Format (PDF)} converter") (description "Asciidoctor PDF is an extension for Asciidoctor that converts AsciiDoc documents to Portable Document Format (PDF) using the Prawn |