Archived
1
0
Fork 0

gnu: ruby-prawn: Update to commit d980247be8a00e7c59cd4e5785e3aa98f9856db1.

* gnu/packages/ruby.scm (ruby-prawn): Update to commit
d980247be8a00e7c59cd4e5785e3aa98f9856db1.
[arguments]: Drop the #:tests? arguments, enabling tests.
[phases]: Remove the 'fix-dependencies phase.  Add the
'drop-signing-key-requirement and replace the 'check phase.
[native-inputs]: Remove bundler.  Add ruby-prawn-manual-builder.
[home-page]: Use HTTPS.
[license]: Set to %prawn-project-licenses.
This commit is contained in:
Maxim Cournoyer 2020-07-13 08:49:48 -04:00
parent 4179ed930d
commit e6c7a601b8
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -9660,39 +9660,52 @@ functionality from Prawn.")
(license license:gpl3+))) (license license:gpl3+)))
(define-public ruby-prawn (define-public ruby-prawn
(package ;; There hasn't been a new release since 2017/03/17.
(name "ruby-prawn") (let ((revision "1")
(version "2.2.2") (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1"))
(source (origin (package
(method url-fetch) (name "ruby-prawn")
(uri (rubygems-uri "prawn" version)) (version (git-version "2.2.2" revision commit))
(sha256 (source (origin
(base32 (method git-fetch)
"1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m")))) (uri (git-reference
(build-system ruby-build-system) (url "https://github.com/prawnpdf/prawn.git")
(arguments (commit commit)))
; No tests (file-name (git-file-name name version))
`(#:tests? #f (sha256
#:phases (base32
(modify-phases %standard-phases "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr"))))
(add-before 'build 'fix-dependencies (build-system ruby-build-system)
(lambda _ (arguments
(substitute* "prawn.gemspec" `(#:phases
(("~> 0.7.0") "~> 0.7")) (modify-phases %standard-phases
#t))))) (add-before 'build 'drop-signing-key-requirement
(propagated-inputs (lambda _
`(("ruby-pdf-core" ,ruby-pdf-core) (substitute* "prawn.gemspec"
("ruby-ttfunk" ,ruby-ttfunk))) (("spec.signing_key =.*")
(native-inputs "spec.signing_key = nil"))
`(("bundler" ,bundler) #t))
("ruby-pdf-inspector" ,ruby-pdf-inspector) (replace 'check
("ruby-rspec" ,ruby-rspec) (lambda* (#:key tests? #:allow-other-keys)
("ruby-simplecov" ,ruby-simplecov) (when tests?
("ruby-yard" ,ruby-yard))) ;; The Prawn manual test fails (see:
(home-page "http://prawnpdf.org/api-docs/2.0/") ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
(synopsis "PDF generation for Ruby") ;; it.
(description "Prawn is a pure Ruby PDF generation library.") (invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb"))
(license license:gpl3+))) #t)))))
(propagated-inputs
`(("ruby-pdf-core" ,ruby-pdf-core)
("ruby-ttfunk" ,ruby-ttfunk)))
(native-inputs
`(("ruby-pdf-inspector" ,ruby-pdf-inspector)
("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
("ruby-rspec" ,ruby-rspec)
("ruby-simplecov" ,ruby-simplecov)
("ruby-yard" ,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))))
(define-public ruby-prawn-table (define-public ruby-prawn-table
(package (package