diff options
author | Julien Lepiller <julien@lepiller.eu> | 2018-08-26 16:07:25 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2018-09-01 23:08:36 +0200 |
commit | 7ad8dd086c982e7cf971385d7fadd2a0d1feb209 (patch) | |
tree | db7a477edd5d89eb6aa55adf59651ba169129ba8 /gnu/packages/ruby.scm | |
parent | 37fbced73c3aeb85472c1f3008eb32a2d87f67ef (diff) | |
download | guix-7ad8dd086c982e7cf971385d7fadd2a0d1feb209.tar.gz |
gnu: Add ruby-prawn.
* gnu/packages/ruby.scm (ruby-prawn): New variable.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r-- | gnu/packages/ruby.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 7085adc1a0..b1da911d9d 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5557,3 +5557,38 @@ documentation that can be exported to a number of formats very easily, and also supports extending for custom Ruby constructs such as custom class level definitions.") (license license:expat))) + +(define-public ruby-prawn + (package + (name "ruby-prawn") + (version "2.2.2") + (source (origin + (method url-fetch) + (uri (rubygems-uri "prawn" version)) + (sha256 + (base32 + "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m")))) + (build-system ruby-build-system) + (arguments + ; No tests + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'build 'fix-dependencies + (lambda _ + (substitute* "prawn.gemspec" + (("~> 0.7.0") "~> 0.7")) + #t))))) + (propagated-inputs + `(("ruby-pdf-core" ,ruby-pdf-core) + ("ruby-ttfunk" ,ruby-ttfunk))) + (native-inputs + `(("bundler" ,bundler) + ("ruby-pdf-inspector" ,ruby-pdf-inspector) + ("ruby-rspec" ,ruby-rspec) + ("ruby-simplecov" ,ruby-simplecov) + ("ruby-yard" ,ruby-yard))) + (home-page "http://prawnpdf.org/api-docs/2.0/") + (synopsis "PDF generation for Ruby") + (description "Prawn is a pure Ruby PDF generation library.") + (license license:gpl3+))) |