Archived
1
0
Fork 0

gnu: ruby-prawn: Update to 2.4.0.

* gnu/packages/ruby.scm (ruby-prawn): Update to 2.4.0.
[arguments]: Delete trailing #t and use gexps.
[propagated-inputs]: Add ruby-matrix.
[native-inputs]: Remove ruby-rspec, ruby-simplecov and ruby-yard.  Add
ruby-prawn-dev.
This commit is contained in:
Maxim Cournoyer 2023-01-06 12:51:16 -05:00
parent 0080da6f4c
commit a0b73c4be5
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -10914,47 +10914,48 @@ various Prawn projects.")
(define-public ruby-prawn (define-public ruby-prawn
;; There hasn't been a new release since 2017/03/17. ;; There hasn't been a new release since 2017/03/17.
(let ((revision "1") (package
(commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1")) (name "ruby-prawn")
(package (version "2.4.0")
(name "ruby-prawn") (source (origin
(version (git-version "2.2.2" revision commit)) (method git-fetch)
(source (origin (uri (git-reference
(method git-fetch) (url "https://github.com/prawnpdf/prawn")
(uri (git-reference (commit version)))
(url "https://github.com/prawnpdf/prawn") (file-name (git-file-name name version))
(commit commit))) (sha256
(file-name (git-file-name name version)) (base32
(sha256 "1h1gww12wcdscij0lnd21p9zcbwrwc3miini5ppannc2birmj9ja"))))
(base32 (build-system ruby-build-system)
"0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr")))) (arguments
(build-system ruby-build-system) (list
(arguments #:phases
`(#:phases #~(modify-phases %standard-phases
(modify-phases %standard-phases (add-before 'build 'drop-signing-key-requirement
(add-before 'build 'drop-signing-key-requirement (lambda _
(lambda _ (substitute* "prawn.gemspec"
(substitute* "prawn.gemspec" (("spec.signing_key =.*")
(("spec.signing_key =.*") "spec.signing_key = nil"))))
"spec.signing_key = nil")) (replace 'check
#t)) (lambda* (#:key tests? #:allow-other-keys)
(replace 'check (when tests?
(lambda* (#:key tests? #:allow-other-keys) ;; The Prawn manual test fails (see:
(when tests? ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
;; The Prawn manual test fails (see: ;; it.
;; https://github.com/prawnpdf/prawn/issues/1163), so exclude (invoke "rspec"
;; it. "--exclude-pattern" "prawn_manual_spec.rb")))))))
(invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb")) (propagated-inputs
#t))))) (list ruby-matrix
(propagated-inputs ruby-pdf-core
(list ruby-pdf-core ruby-ttfunk)) ruby-ttfunk))
(native-inputs (native-inputs
(list ruby-pdf-inspector ruby-prawn-manual-builder ruby-rspec (list ruby-pdf-inspector
ruby-simplecov ruby-yard)) ruby-prawn-manual-builder
(home-page "https://prawnpdf.org/api-docs/2.0/") ruby-prawn-dev))
(synopsis "PDF generation for Ruby") (home-page "https://prawnpdf.org/api-docs/2.0/")
(description "Prawn is a pure Ruby PDF generation library.") (synopsis "PDF generation for Ruby")
(license %prawn-project-licenses)))) (description "Prawn is a pure Ruby PDF generation library.")
(license %prawn-project-licenses)))
(define-public ruby-prawn-table (define-public ruby-prawn-table
(package (package