aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/ruby.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-01-06 12:51:16 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-01-08 00:41:05 -0500
commita0b73c4be5dcbcb228e7c80f0be368059c77126b (patch)
tree158412676cf70a6b664c09f23ed9ad8d7b0bc853 /gnu/packages/ruby.scm
parent0080da6f4c2d30df8ec28dfa4f91d67ab6b284ae (diff)
downloadguix-a0b73c4be5dcbcb228e7c80f0be368059c77126b.tar
guix-a0b73c4be5dcbcb228e7c80f0be368059c77126b.tar.gz
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.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r--gnu/packages/ruby.scm83
1 files changed, 42 insertions, 41 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 1d840ac1b9..4108bc177e 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -10914,47 +10914,48 @@ various Prawn projects.")
(define-public ruby-prawn
;; There hasn't been a new release since 2017/03/17.
- (let ((revision "1")
- (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1"))
- (package
- (name "ruby-prawn")
- (version (git-version "2.2.2" revision commit))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/prawnpdf/prawn")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr"))))
- (build-system ruby-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'drop-signing-key-requirement
- (lambda _
- (substitute* "prawn.gemspec"
- (("spec.signing_key =.*")
- "spec.signing_key = nil"))
- #t))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; The Prawn manual test fails (see:
- ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
- ;; it.
- (invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb"))
- #t)))))
- (propagated-inputs
- (list ruby-pdf-core ruby-ttfunk))
- (native-inputs
- (list ruby-pdf-inspector ruby-prawn-manual-builder ruby-rspec
- ruby-simplecov ruby-yard))
- (home-page "https://prawnpdf.org/api-docs/2.0/")
- (synopsis "PDF generation for Ruby")
- (description "Prawn is a pure Ruby PDF generation library.")
- (license %prawn-project-licenses))))
+ (package
+ (name "ruby-prawn")
+ (version "2.4.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/prawnpdf/prawn")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1h1gww12wcdscij0lnd21p9zcbwrwc3miini5ppannc2birmj9ja"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'drop-signing-key-requirement
+ (lambda _
+ (substitute* "prawn.gemspec"
+ (("spec.signing_key =.*")
+ "spec.signing_key = nil"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; The Prawn manual test fails (see:
+ ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
+ ;; it.
+ (invoke "rspec"
+ "--exclude-pattern" "prawn_manual_spec.rb")))))))
+ (propagated-inputs
+ (list ruby-matrix
+ ruby-pdf-core
+ ruby-ttfunk))
+ (native-inputs
+ (list ruby-pdf-inspector
+ ruby-prawn-manual-builder
+ ruby-prawn-dev))
+ (home-page "https://prawnpdf.org/api-docs/2.0/")
+ (synopsis "PDF generation for Ruby")
+ (description "Prawn is a pure Ruby PDF generation library.")
+ (license %prawn-project-licenses)))
(define-public ruby-prawn-table
(package