diff options
author | taca <taca@pkgsrc.org> | 2016-03-15 15:05:36 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2016-03-15 15:05:36 +0000 |
commit | 2a2e1eac0079a12799c277d5f5865b864e370ed2 (patch) | |
tree | 44ea3a3f05d513c56659b41099bfcc2329bbdd1d /print | |
parent | 523937f22a891cddb972f6394fcc1d354439b585 (diff) | |
download | pkgsrc-2a2e1eac0079a12799c277d5f5865b864e370ed2.tar.gz |
Update ruby-prawn to 2.1.0.
PrawnPDF 2.1.0 – 2016-02-29
Added support for PNG images with indexed transparency
Prawn now properly hadles transparency in PNG images with indexed color.
(Maciej Mucha, #783; Alexander Mankuta, #920)
Prawn no longer generates IRB warnings
Fix a few issues with code style that were triggering warnings in
IRB when run in verbose mode (irb -w).
(Jesse Doyle, #914)
Gradients applied inside transformations are now correctly positioned
PDF gradients/patterns take coordinates in the coordinate space of
the document, not the “user space”, so if you performed a
scale/rotate/translate and then painted a gradient inside, it wasn't
correctly positioned.
This change tracks transformations applied to the document, and
multiplies the gradient matrix with this tracked transformation
matrix so that the gradient appears in the correct place in the
document.
Because this changes how the x and y coordinates are interpreted,
you must manually add apply_transformations: true to your
stroke_gradient and fill_gradient calls to use the fixed behaviour
in Prawn 2. It is expected that this will be the default in Prawn 3.
Please refer to the wiki page on this change for more information.
(Roger Nesbitt, #891, #894)
Prawn::Graphics::BlendMode#blend_mode added
Blend modes can be used to change the way two layers are blended
together. The BM key is added to the External Graphics State based
on the v1.4 PDF spec. blend_mode accepts a single blend mode or
array of blend modes. If an array is passed, the PDF viewer blends
layers based on the first valid blend mode.
Diffstat (limited to 'print')
-rw-r--r-- | print/ruby-prawn/Makefile | 4 | ||||
-rw-r--r-- | print/ruby-prawn/PLIST | 16 | ||||
-rw-r--r-- | print/ruby-prawn/distinfo | 10 |
3 files changed, 19 insertions, 11 deletions
diff --git a/print/ruby-prawn/Makefile b/print/ruby-prawn/Makefile index 205c49dd37d..7369a0bcd8f 100644 --- a/print/ruby-prawn/Makefile +++ b/print/ruby-prawn/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.12 2015/12/30 04:23:00 taca Exp $ +# $NetBSD: Makefile,v 1.13 2016/03/15 15:05:36 taca Exp $ -DISTNAME= prawn-2.0.2 +DISTNAME= prawn-2.1.0 CATEGORIES= print MAINTAINER= pkgsrc-users@NetBSD.org diff --git a/print/ruby-prawn/PLIST b/print/ruby-prawn/PLIST index 34f717e0a68..012b4938372 100644 --- a/print/ruby-prawn/PLIST +++ b/print/ruby-prawn/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.5 2015/03/13 15:27:09 taca Exp $ +@comment $NetBSD: PLIST,v 1.6 2016/03/15 15:05:36 taca Exp $ ${GEM_HOME}/cache/${GEM_NAME}.gem ${GEM_LIBDIR}/.yardopts ${GEM_LIBDIR}/COPYING @@ -27,6 +27,8 @@ ${GEM_LIBDIR}/data/images/16bit.color ${GEM_LIBDIR}/data/images/16bit.png ${GEM_LIBDIR}/data/images/arrow.png ${GEM_LIBDIR}/data/images/arrow2.png +${GEM_LIBDIR}/data/images/blend_modes_bottom_layer.jpg +${GEM_LIBDIR}/data/images/blend_modes_top_layer.jpg ${GEM_LIBDIR}/data/images/dice.alpha ${GEM_LIBDIR}/data/images/dice.color ${GEM_LIBDIR}/data/images/dice.png @@ -34,12 +36,14 @@ ${GEM_LIBDIR}/data/images/dice_interlaced.png ${GEM_LIBDIR}/data/images/fractal.jpg ${GEM_LIBDIR}/data/images/indexed_color.dat ${GEM_LIBDIR}/data/images/indexed_color.png +${GEM_LIBDIR}/data/images/indexed_transparency.png +${GEM_LIBDIR}/data/images/indexed_transparency_alpha.dat +${GEM_LIBDIR}/data/images/indexed_transparency_color.dat ${GEM_LIBDIR}/data/images/letterhead.jpg ${GEM_LIBDIR}/data/images/license.md ${GEM_LIBDIR}/data/images/page_white_text.alpha ${GEM_LIBDIR}/data/images/page_white_text.color ${GEM_LIBDIR}/data/images/page_white_text.png -${GEM_LIBDIR}/data/images/pal_bk.png ${GEM_LIBDIR}/data/images/pigs.jpg ${GEM_LIBDIR}/data/images/prawn.png ${GEM_LIBDIR}/data/images/ruport.png @@ -77,6 +81,7 @@ ${GEM_LIBDIR}/lib/prawn/font/dfont.rb ${GEM_LIBDIR}/lib/prawn/font/ttf.rb ${GEM_LIBDIR}/lib/prawn/font_metric_cache.rb ${GEM_LIBDIR}/lib/prawn/graphics.rb +${GEM_LIBDIR}/lib/prawn/graphics/blend_mode.rb ${GEM_LIBDIR}/lib/prawn/graphics/cap_style.rb ${GEM_LIBDIR}/lib/prawn/graphics/color.rb ${GEM_LIBDIR}/lib/prawn/graphics/dash.rb @@ -107,6 +112,7 @@ ${GEM_LIBDIR}/lib/prawn/text/formatted/fragment.rb ${GEM_LIBDIR}/lib/prawn/text/formatted/line_wrap.rb ${GEM_LIBDIR}/lib/prawn/text/formatted/parser.rb ${GEM_LIBDIR}/lib/prawn/text/formatted/wrap.rb +${GEM_LIBDIR}/lib/prawn/transformation_stack.rb ${GEM_LIBDIR}/lib/prawn/utilities.rb ${GEM_LIBDIR}/lib/prawn/version.rb ${GEM_LIBDIR}/lib/prawn/view.rb @@ -136,6 +142,7 @@ ${GEM_LIBDIR}/manual/document_and_page_options/page_margins.rb ${GEM_LIBDIR}/manual/document_and_page_options/page_size.rb ${GEM_LIBDIR}/manual/document_and_page_options/print_scaling.rb ${GEM_LIBDIR}/manual/example_helper.rb +${GEM_LIBDIR}/manual/graphics/blend_mode.rb ${GEM_LIBDIR}/manual/graphics/circle_and_ellipse.rb ${GEM_LIBDIR}/manual/graphics/color.rb ${GEM_LIBDIR}/manual/graphics/common_lines.rb @@ -210,15 +217,15 @@ ${GEM_LIBDIR}/manual/text/text_box_overflow.rb ${GEM_LIBDIR}/manual/text/utf8.rb ${GEM_LIBDIR}/manual/text/win_ansi_charset.rb ${GEM_LIBDIR}/prawn.gemspec -${GEM_LIBDIR}/spec/acceptance/png.rb +${GEM_LIBDIR}/spec/acceptance/png_spec.rb ${GEM_LIBDIR}/spec/annotations_spec.rb +${GEM_LIBDIR}/spec/blend_mode_spec.rb ${GEM_LIBDIR}/spec/bounding_box_spec.rb ${GEM_LIBDIR}/spec/column_box_spec.rb ${GEM_LIBDIR}/spec/data/curves.pdf ${GEM_LIBDIR}/spec/destinations_spec.rb ${GEM_LIBDIR}/spec/document_spec.rb ${GEM_LIBDIR}/spec/extensions/encoding_helpers.rb -${GEM_LIBDIR}/spec/extensions/mocha.rb ${GEM_LIBDIR}/spec/font_metric_cache_spec.rb ${GEM_LIBDIR}/spec/font_spec.rb ${GEM_LIBDIR}/spec/formatted_text_arranger_spec.rb @@ -248,6 +255,7 @@ ${GEM_LIBDIR}/spec/text_rendering_mode_spec.rb ${GEM_LIBDIR}/spec/text_spacing_spec.rb ${GEM_LIBDIR}/spec/text_spec.rb ${GEM_LIBDIR}/spec/text_with_inline_formatting_spec.rb +${GEM_LIBDIR}/spec/transformation_stack_spec.rb ${GEM_LIBDIR}/spec/transparency_spec.rb ${GEM_LIBDIR}/spec/view_spec.rb ${GEM_HOME}/specifications/${GEM_NAME}.gemspec diff --git a/print/ruby-prawn/distinfo b/print/ruby-prawn/distinfo index fc811776559..00718b160a5 100644 --- a/print/ruby-prawn/distinfo +++ b/print/ruby-prawn/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.8 2015/11/04 01:01:39 agc Exp $ +$NetBSD: distinfo,v 1.9 2016/03/15 15:05:36 taca Exp $ -SHA1 (prawn-2.0.2.gem) = e499815278e6ed758433de8b46d2d3d25955b651 -RMD160 (prawn-2.0.2.gem) = eb309133a625f89b6161072b60e9f76b13c3b61b -SHA512 (prawn-2.0.2.gem) = 4d79118545c87cf5fc1d44b43946e7ae686eeb91870542e72b388c0828831f53b020f9ae04aedf43c895d851e663c3d99ca84c115f129310a6defb242087eb3a -Size (prawn-2.0.2.gem) = 912896 bytes +SHA1 (prawn-2.1.0.gem) = 1789e502c8a92b053022d7a43ceef697df8bf79a +RMD160 (prawn-2.1.0.gem) = f1e7a262884ea9932e5e566a87aac3ab9b007fb8 +SHA512 (prawn-2.1.0.gem) = 9341e164ec66fe6cddd90c6c0bbabb680003eb57c005e44b08d47763d2568af2cfb47fd2e0bb302a7663d7108b1ca733cb6f1b18cbaea558a9fec7b97dba737a +Size (prawn-2.1.0.gem) = 1075712 bytes |