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:
		
							parent
							
								
									4179ed930d
								
							
						
					
					
						commit
						e6c7a601b8
					
				
					 1 changed files with 46 additions and 33 deletions
				
			
		|  | @ -9660,39 +9660,52 @@ functionality from Prawn.") | ||||||
|     (license license:gpl3+))) |     (license license:gpl3+))) | ||||||
| 
 | 
 | ||||||
| (define-public ruby-prawn | (define-public ruby-prawn | ||||||
|  |   ;; There hasn't been a new release since 2017/03/17. | ||||||
|  |   (let ((revision "1") | ||||||
|  |         (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1")) | ||||||
|     (package |     (package | ||||||
|       (name "ruby-prawn") |       (name "ruby-prawn") | ||||||
|     (version "2.2.2") |       (version (git-version "2.2.2" revision commit)) | ||||||
|       (source (origin |       (source (origin | ||||||
|               (method url-fetch) |                 (method git-fetch) | ||||||
|               (uri (rubygems-uri "prawn" version)) |                 (uri (git-reference | ||||||
|  |                       (url "https://github.com/prawnpdf/prawn.git") | ||||||
|  |                       (commit commit))) | ||||||
|  |                 (file-name (git-file-name name version)) | ||||||
|                 (sha256 |                 (sha256 | ||||||
|                  (base32 |                  (base32 | ||||||
|                 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m")))) |                   "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr")))) | ||||||
|       (build-system ruby-build-system) |       (build-system ruby-build-system) | ||||||
|       (arguments |       (arguments | ||||||
|      ; No tests |        `(#:phases | ||||||
|      `(#:tests? #f |  | ||||||
|        #:phases |  | ||||||
|          (modify-phases %standard-phases |          (modify-phases %standard-phases | ||||||
|          (add-before 'build 'fix-dependencies |            (add-before 'build 'drop-signing-key-requirement | ||||||
|              (lambda _ |              (lambda _ | ||||||
|                (substitute* "prawn.gemspec" |                (substitute* "prawn.gemspec" | ||||||
|                (("~> 0.7.0") "~> 0.7")) |                  (("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))))) |                #t))))) | ||||||
|       (propagated-inputs |       (propagated-inputs | ||||||
|        `(("ruby-pdf-core" ,ruby-pdf-core) |        `(("ruby-pdf-core" ,ruby-pdf-core) | ||||||
|          ("ruby-ttfunk" ,ruby-ttfunk))) |          ("ruby-ttfunk" ,ruby-ttfunk))) | ||||||
|       (native-inputs |       (native-inputs | ||||||
|      `(("bundler" ,bundler) |        `(("ruby-pdf-inspector" ,ruby-pdf-inspector) | ||||||
|        ("ruby-pdf-inspector" ,ruby-pdf-inspector) |          ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder) | ||||||
|          ("ruby-rspec" ,ruby-rspec) |          ("ruby-rspec" ,ruby-rspec) | ||||||
|          ("ruby-simplecov" ,ruby-simplecov) |          ("ruby-simplecov" ,ruby-simplecov) | ||||||
|          ("ruby-yard" ,ruby-yard))) |          ("ruby-yard" ,ruby-yard))) | ||||||
|     (home-page "http://prawnpdf.org/api-docs/2.0/") |       (home-page "https://prawnpdf.org/api-docs/2.0/") | ||||||
|       (synopsis "PDF generation for Ruby") |       (synopsis "PDF generation for Ruby") | ||||||
|       (description "Prawn is a pure Ruby PDF generation library.") |       (description "Prawn is a pure Ruby PDF generation library.") | ||||||
|     (license license:gpl3+))) |       (license %prawn-project-licenses)))) | ||||||
| 
 | 
 | ||||||
| (define-public ruby-prawn-table | (define-public ruby-prawn-table | ||||||
|   (package |   (package | ||||||
|  |  | ||||||
		Reference in a new issue