pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/librsvg librsvg: update to 2.44.14.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6a474dfe65d6
branches:  trunk
changeset: 334493:6a474dfe65d6
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed May 29 12:38:23 2019 +0000

description:
librsvg: update to 2.44.14.

This package now uses rust. The user-settable variable LIBRSVG_USE_RUST
allows switching between this and the (obsolete) plain-C version
in librsvg-c. It defaults to "yes" on platforms that lang/rust currently
supports.


Version 2.44.14
- Fix #425 - Don't fail parsing if the system's locale is broken (Paolo Borelli).
- Fix #438, #443 - Don't create intermediate raster surfaces unless
  absolutely needed.  This was causing blurred output for SVGs from
  Inkscape and Illustrator, since they include an "enable-background"
  property even when there are no filters in use.  Thanks to Julian
  Sparber, Jordan Petridis, Zeeshan Ali for doing a huge "git bisect"
  to find the cause of this bug.
- Fix #443 - Fix blurry output when enable-background is used without filters.
- Fix #455 - Fix rounding error on i386 (Olivier Tilloy).
- Check for Cairo errors when constructing paths.

Version 2.44.13
- Updated compilation docs for Debian (Jordan Petridis)
- Fix #415 - register RsvgHandleFlags and the RsvgError enum values in
  a thread-safe fashion (Sebastian Dr?ge).

Version 2.44.12
- At build time, you can now pass $CARGO and $RUSTC environment
  variables if you need to override the default Rust toolchain.
  Please see COMPILING.md for details.  (Tobias Kortkamp)
- Fix #405 - In the gdk-pixbuf loader, don't crash the write()
  function doesn't receive a GError.
- Fix #398 - Detect circular references in gradients.

Version 2.44.11
- Fix crash when a linear RGB filter is followed by an SRGB filter
  (Ivan Molodetskikh).
- Fix #393 - Stack overflow when freeing thousands of sibling elements.
- Fix #395 - feMorphology was crashing with a negative scaling
  transformation.
- Fix positioning of adjacent <tspan> elements.

Version 2.44.10
- Fix #385 - Don't crash if there is no rsvg_handle_write() before
  rsvg_handle_close().
- Fix #391 - Avoid undefined behavior when casting opaque pointers
  (Jordan Petridis).
- Added g_warning()s to ensure the API is called in the correct
  sequence.

Version 2.44.9
- Fix #371 - rsvg-convert was positioning extracted elements
  incorrectly when using the -w/-h options together with --export-id.
- Fix #372 - Mis-rendering in small arc segments.
- Fix #373 - Rendering of gradients for horizontal/vertical stroked
  lines with gradientUnits="userSpaceOnUse".
- Fix a couple of memory leaks in the error paths of the GdkPixbuf
  loader (Benedikt Heine).

Version 2.44.8
- Librsvg now requires Rust 1.27; this should have happened since
  2.44.0.  Apologies if the 2.44.x series didn't catch this build
  failure early for you.
- Librsvg now requires Cairo 1.15.12.
- Fix #363 - Don't drop spaces around <tspan> elements.
- Fix #365 - rsvg-convert now uses pixel units for SVG output, instead
  of points.  This requires cairo 1.15.12 (Antonio Ospite).
- Fix #358, #366 - tweaks to have the test suite pass on i386 and
  non-x86_64 platforms (Simon McVittie, Federico Mena).
- Fix #368 - With RSVG_LOG=1, librsvg will now report when SVGs have
  references to nonexistent elements, to aid debugging (for example,
  in an xlink:href attribute).
- Allow reference tests with a small difference to pass without
  breaking the build (Simon McVittie).

Version 2.44.7
- Fix #256 - Correctly match the systemLanguage attribute with the
  user's locale.
- Fix #320 - Parse xml:lang correctly.
- Fix #334 - Don't modify the caller's cairo_t state during rendering.
- Fix #349 - Don't panic if we get a "data:" URI with empty data.
- Fix #352 - Don't panic on getting a very large "order" for
  feConvolveMatrix (Ivan Molodetskikh).

Version 2.44.6
- Fix 32-bit builds (Jordan Petridis).

Version 2.44.5
- Fix #343 - Handle child being in error in feComponentTransfer.
- Fix #346 - Handle filter primitives producing errors.
- Fix #347 - Regression in computation of text element extents.
- Fix #348 - Fix incorrect font sizing.
- Fix #349 - Don't panic when loading an external image that is bigger
  than Cairo's limits.
- Fix - rsvg_handle_get_dimensions_sub() no longer panics if passed a
  nonexistent fragment identifier.
- CSS processing code is now in Rust, although it still calls libcroco
  to do the parsing.

Version 2.44.4
- Fix #341 - Don't infinite-loop with cyclic pattern references.
- Fix #342 - Don't crash if a <use> node references one of its ancestors.
- Fix #344 - Don't panic when a viewBox has overflowing numbers.
- Fix #345 - Fix panics due to bad path parsing and overflows in
  surface size.
- Cleanups and refactoring (Paolo Borelli, Linus Unneb?ck, Federico Mena).

Version 2.44.3
- Fix building when srcdir != builddir (Mathieu Bridon).
- Fix #339 - Panic in filters with primitiveUnits="objectBoundingBox"
  on zero-sized elements (Ivan Molodetskikh).
- Fix #335 - Don't panic if the toplevel node is not <svg>.
- Fixes from fuzz testing (Ivan Molodetskikh): don't panic when the
  feConvolveMatrix kernel is not set; fix upper bounds in filter pixel
  getters.
- Fix #337 - Don't panic with "em" or "ex" units in the font-size property.
- Fix #338 - Don't panic when an image element doesn't have
  width/height attributes.
- Fix #340 - Don't panic when a marker has a zero-sized viewBox attribute.
- Special thanks to Ivan Molodetskikh for doing a fuzz-testing run for
  this round.
- Updates to the CI infrastructure and the build documentation (Jordan
  Petridis).

Version 2.44.2
- A *double brown paper bag* release!  Super strong, this one!
- Fix #325 - Don't leak all the elements at the toplevel.
- Fix #328 - Make masking work on big-endian.  Thanks to
  Simon McVittie for quick testing of this on s390x.
- Fix library ordering so -Wl,--as-needed works (Simon McVittie).

Version 2.44.1
- This is a brown paper bag release!  Apologies for the bugs:
- Fix #324 - Don't panic if trying to render a non-empty SVG with no
  elements (Paolo Borelli).
- Fix #325 - All the elements were being leaked at the toplevel.
- Fix #326 - Fix COMPILING.md - librsvg 2.44 does not build on Ubuntu
  18.04 because it has a rust version that is too old.

Version 2.44.0
- Librsvg now has minimal logging for debugging by setting the
  RSVG_LOG environment variable.  See CONTRIBUTING.md for details.
- Speed improvements for Gaussian blur, SRGB conversions, and various
  filters (Ivan Molodetskikh).
- Fix #264 - the letter-spacing property now supports "normal" in
  addition to lengths (Paolo Borelli).
- Fix #318 - the font-weight property was being parsed incorrectly.
- Fix #323 - don't use 100% "forever" with malicious SVGs that cause
  an exponential number of elements to be instanced through the
  <use> element.  We limit the number of <use> instances now.
- Fix #293 - Don't panic when masking an empty group.
- Fix #319 - Parse single font-family correctly.
- Cleanups for the internal representation of elliptical arcs in paths
  (letheed).

Version 2.43.4
- This is an early release to test the effects of threading in librsvg.
- The lighting and Gaussian blur filters are now parallelized with
  Rayon; they will use all available cores (Ivan Molodetskikh).

Version 2.43.3
- Tentative fix: #309 - Don't panic if rendering to a non-image Cairo surface.
- Optimizations for Gaussian blur and other filters (Ivan Molodetskikh).
- Optimizations in SRGB <-> linear RGB conversions (Ivan Molodetskikh).
- More C to Rust conversion in the loading code (Paolo Borelli).

Version 2.43.2
- All the filter effects have been ported to Rust as part of Ivan
  Molodetskikh's Summer of Code project!!!!!
- We now require Rust 1.26.
- We now include Rust debug information even in release builds, to make it
  easier to obtain stack traces.
- Fix #310 - Respect DPI in the font-size property (Mike Marcacci).
- Fix: draw the circle/ellipse elements with the same orientation as
  the SVG 1.1 test suite; this is relevant for stroke-dasharray (Ivan
  Molodetskikh).
- Refactoring of the drawing code and font sizes (Paolo Borelli).
- New filters in Rust: feConvolveMatrix, feColorMatrix, feMorphology,
  feDisplacementMap, feGaussianBlur, feDistantLight, feSpotLight,
  fePointLight, feTile.
- Updated Rust dependencies (Igor Gnatenko).

Version 2.43.1
- Fix: #259 - Test fonts should now work with --enable-installed-tests
- Fix: #277 - Don't panic when trying to filter an empty group
  (Ivan Molodetskikh).
- Fix: #292 - Don't panic if we try to clip an empty group.
- Fix the feOffset filter's coordinate parsing.  (Ivan Molodetskikh).
- Fix linearization of SRGB data in the feComposite filter (Ivan
  Molodetskikh).
- Fix CSS cascading in filters (Ivan Molodetskikh).
- Fix, don't render filters if they are in error (Ivan Molodetskikh).
- Fixed a couple of memory leaks in the test suite.
- Filters now support FillPaint and StrokePaint for input (Ivan Molodetskikh).
- Filters now support the color-interpolation-filters property
  (Ivan Molodetskikh).
- The feImage, feBlend, feComponentTransfer filters are now in Rust
  (Ivan Molodetskikh).
- The feOffset filter now supports fractional offsets (Ivan Molodetskikh).
- The drawing context code is now in Rust.  This is a tremendous
  amount of work! (Paolo Borelli)
- All the style property parsers have been moved to rust-cssparser.

Version 2.43.0
- This is the start of the 2.43 development series, and you bet we are
  doing extensive changes!
- Many, many thanks to Jordan Petridis for keeping our Continuous
  Infrastructure updated all the time, and for emergency fixes when
  they were necessary.
- As part of the Summer of Code 2018, Ivan Molodetskikh is porting the
  filter effects to Rust.  These are done so far:  core filters
  infrastructure, feComposite, feMerge, feOffset.  The only remaining
  SVG elements done in C pertain to filter effects, and Ivan is taking
  care of them.
- The feComposite filter now operates in linear RGB space, for better
  spec compliance.  We transform back to SRGB for the final results
  (see issue #275 for pending work on fully supporting this
  elsewhere).
- Filters now compute their bounds to floating-point values, instead
  of clipping them to integers.
- The text, tspan, tref elements are now in Rust (Paolo Borelli).
- Text rendering should be better.  We now perform text measurement
  operations with the actual affine transformation that the text will
  use in the end.  This should give Pango/Freetype a better chance of
  doing scale-appropriate hinting.
- The basic styling infrastructure has moved to Rust (Paolo Borelli,
  Federico Mena).  We don't use the old and limited cascading code
  anymore.  We also audited which CSS properties are supposed to
  inherit automatically or not; this should be working per the SVG
  spec now.  Special thanks to Paolo for doing the largest part of the
  work in moving the style data to Rust; this was a painstaking,
  months-long process of constant refactoring.
- The internals of the drawing infrastructure and bounding-box
  computation are now done in Rust (Paolo Borelli).
- Element creation from the parsing stage is now in Rust (Saurav
  Sachidanand).
- Clipping and Masking are now done in Rust (Paolo Borelli).
- Our tests now include the full Adwaita icon theme, so it doesn't
  break.
- Fix: #241 - feDistantLight and feSpotLight now work again.
- Fix: #282 - feComposite is fixed not to overwrite the source image
  in some cases; this fixes drop shadows generated from Inkscape (Ivan
  Molodetskikh).
- We have the beginnings of Windows CI, courtesy of Guillaume Gomez.
- Changes from 2.42.4:
- Fix: elements with systemLanguage attributes without variants now
  work better (Paolo Borelli).
- gitlab#227 - Fix: we now catch negative values in stroke-dasharray
  properties instead of leaving the cairo_t in an error state.
- gitlab#228 - Fix: empty transform attribute now correctly yields an
  identity transform (Dmitry Kontsevoy).
- Fix possible crash on invalid gradient references.
- Make robust against patterns and gradients with no children.
- Lots of code cleanups and refactorings (Jordan Petridis, Dmitry
  Kontsevoy, Ivan Molodetskikh).
- Code moved to Rust: low-level path and PangoLayout drawing, "switch"
  element (Paolo Borelli).
- New Rust dependencies: float_cmp, pangocairo crates.
- We now require Rust 1.21 or later.
- Changes from 2.42.5:
- #276 - rsvg_handle_render_cairo() will now refuse to render if the
  cairo_t passed to it is in an error state.  Fixes a panic in the
  cairo-dock program.
- #206 - The test suite now writes test artifacts to tests/output
  instead of /tmp (Saurav Sachidanand).

Version 2.42.3
- gitlab#205 - The configure script now checks for Rust 1.20.0 -
  previously this minimum requirement was not well-defined.
- gitlab#204 - New feature: If an SVG has an <a> link element, we now
  generate the corresponding link when outputting to a Cairo PDF
  surface.  If you use rsvg-convert(1) with PDF output, <a> links in
  the SVG will work in the PDF (Dmitry Kontsevoy).
- gitlab#108 - New feature: support font-size:larger and font-size:smaller
  relative sizes.
- New feature: rsvg-convert now supports SOURCE_DATE_EPOCH per
  https://reproducible-builds.org/specs/source-date-epoch/ to generate
  reproducible output for PDFs (Chris Lamb).
- gitlab#197 - New requirement: We now require Freetype2 2.9.0, which
  fixes font rendering bugs.  The test reference PNGs have been
  regenerated with this version.  You may see changes in font
  rendering as a result of this updated requirement.
- gitlab#91 - Fix rendering of masks and clips when the initial
  transformation has a translation component (Massimo).
- gitlab#112 - Fix: apply style attributes for all SVG elements, not just
  for the toplevel one.
- gitlab#161 - Fix the marker angle for the last vertex of closed
  paths (Juraj Fiala).
- gitlab#198 - Fix: Make rsvg_pixbuf_from_file() and its derived
  functions work again.  Now we have tests for the whole public API.
- gitlab#143 - Minor optimizations for Gaussian blurs (Timm B?der).
- gitlab#201 - Minor speedups in the code to parse SVG attributes.
- gitlab#178 - Fix some tests that failed on 32-bit machines.
- COMPILING.md now lists our build dependencies, and has command lines
  which you can use on openSUSE/Fedora/Debian/Ubuntu/MacOS to set up a
  development environment for librsvg (Jordan Petridis, Brion Vibber).
- gitlab#211 - Running the configure script on MacOS now works and
  doesn't try to use -Bsymbolic for linking (Brion Vibber).
- gitlab#In addtion to --enable-debug/--disable-debug to control the Rust
  compilation, now you can use an environment variable
  LIBRSVG_DEBUG=yes / LIBRSVG_DEBUG=no if you wish.
- Code moved to Rust: SVG paint servers (Dmitry Kontsevoy), SVG
  attribute parsing.
- We now use a Cargo workspace internally, to move more things to Rust
  (Jordan Petridis, Chun-wei Fan).
- Special thanks in this release to Jordan Petridis for MAJOR
  improvements to our Continuous Integration infrastructure, the
  repository structure, and updates to the compilation documentation.
  Also for setting up 32-bit builds for continuous integration.

Version 2.42.2
- gitlab#193 - Don't crash when feConvolveMatrix doesn't specify
  orderx/ordery attributes.
- gitlab#136 - Parse stroke-dasharray property correctly.  This code
  is in Rust now; yay! (Jordan Petridis).
- Don't render markers if they are zero-sized, per the spec.
- Performance: eliminate a bunch of string copies during parsing.
- Update rust-cssparser to 0.23 (Igor Gnatenko).

Version 2.42.1
- gitlab#182 - Parse the transform attribute in a faster/simpler way.
  We now use rust-cssparser instead of lalrpop.  This is especially
  noticeable on SVGs with lots of "transform" attributes.
- gitlab#187 - Don't crash when setting a gradient on a zero-sized object.
- gitlab#184 - (Windows) Don't use PangoFT2 if not available (Chun-wei Fan).
- gitlab#181 - Inherit attributes in the <svg> element properly.
- gitlab#160 - rsvg-convert - fix error reporting when reading from
  stdin (Phlip Withnall).
- gitlab#152 - Fix detection of image type in "data:" URIs when they
  don't specify a MIME type (Andreas Smas).
- gitlab#117 - (Windows) rsvg-convert - Set stdout to O_BINARY
  (Bakhtiar Hasmanan).
- gitlab#133 - More stringent parsing of path data; better tests.
- (Windows/MSVC) Fix linking of the Rust internals library (Chun-wei Fan).
- Fix typos and links in the .md files.

Version 2.42.0
- Fix a memory leak in rsvg_handle_new_from_file() (Lovell Fuller).
- Optimize the xml:space normalization function (Jordan Petridis).
- gitlab#179 - fix a runtime warning in the feMergeNode code.
- gitlab#175 - Clarify documentation about the rsvg_*_sub() APIs.
- Stylistic fixes from cargo-clippy (Jordan Petridis).
- Port the Pango glue code to Rust.
- New ARCHITECTURE.md with a description of librsvg's internals.

Version 2.41.2
- We now require glib 2.52.0.
- bgo#787895 - Fix mis-use of libxml2.  Thanks to Nick Wellnhofer for
  the guidance.
- bgo#761175 - Allow masks and clips to reuse a node being drawn.
- Fix xml:space normalization, per the spec.
- Don't access the file system when deciding whether to load a remote
  file with a UNC path for a paint server (i.e. don't try to load it at all).
- We now support cross-compilation of the Rust code (David Michael).
  See COMPILING.md for details.
- Fixed bugs from Coverity runs (Philip Withnall).
- Vastly improved README.md, new COMPILING.md, improved CONTRIBUTING.md.
- Markers now have the correct default size per the SVG spec.
- Visual Studio: We now use HIGHENTROPYVA linker option on x64 builds,
  to enhance the security of built binaries (Chun-wei Fan).
- Cargo is now verbose as well if you use "make V=1".
- Fixed some memory leaks.
- Don't render elements that establish a viewport if their viewBox
  size is 0, per the spec.
- SVG elements ported to Rust: image, clipPath, mask, character data in elements.
- Fixed loading files one byte at a time.
- Reference documentation is now DocBook 5.1.
- Reference docs now have an overview of the library.
- Distribute README.md in the tarball properly.
- Expanded the test suite.
- Lots of internal refactoring.

Version 2.41.1
- The feConvolveMatrix filter primitive wasn't being rendered at all;
  now it works.
- Pattern specifications can now have a fallback color, per the spec -
  https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint
- Tests now use a very basic form of reproducible font rendering.
  This means that "make check" should pass even if you have a custom
  Fontconfig setup.
- Fixed recursive fallbacks in gradients.
- Per the spec, we now don't render elements which have invalid
  attributes.
- Windows build: support building with Fontconfig; support Visual
  Studio 2017; generate .pc files upon install (Chun-wei Fan)
- Fixed bgo#621088 - Text elements can now be used as clipping paths.
- Fixed bgo#587721 - Fix rendering of text elements with transformations
  (Massimo)
- Fixed bgo#776932 - Don't crash on elements with an invalid
  "transform" attribute.
- Fixed bgo#777155 - Ignore patterns that have close-to-zero dimensions.
- Fixed bgo#776297 - Don't render markers for rect / circle elements;
  fix marker angles in some cases (Massimo).
- Fixed bgo#777834 - Don't crash when rendering text with empty
  extents.
- Fixed bgo#634324 - Gaussian blur with negative-scaling
  transformation was being rendered incorrectly.
- Fixed bgo#783835 - Don't divide by zero in Gaussian blurs
- Fixed division by zero in feTile filter when the input surface is
  empty.
- Fixed bgo#779489 - Link to pangoft2 as required.
- Don't crash in filters when one of them yields an invalid surface
  for an intermediate result.
- Update for bgo#778666 - Use our own thumbnailer specification file
  (Jeremy Bicha).
- Fixed bgo#782098 - Don't pass deprecated options to gtkdoc-scangobj
  (Ting-Wei Lan).
- Fixed bgo#777833 - Various memory leaks (Philip Withnall, Federico Mena)
- Fixed bgo#786372 - Use the correct default for the style element's
  "type" attribute.
- Fixed bgo#634514 - Don't render unknown elements and their children.
- Fix parsing of "azimuth", "elevation", "limitingConeAngle" for
  filter effects.
- Fixed bgo#785276 - Don't crash on empty or single-byte files.
- Made the <switch> element work; SVG feature names were being
  tested incorrectly.
- Fixed a few cases of uninitialized struct fields.
- Code converted to Rust: preserveAspectRatio attribute, viewBox
  attribute, core Node structure, path/line/rect/circle/ellipse basic
  shapes, group/defs/switch/svg/use/symbol structural elements, pattern element
  and pattern fallbacks, marker rendering, various parsers, error
  propagation from parsers, gradient stops, gradient element,
- Added a bunch of new test cases for the new features and the
  code converted to Rust.
- We now require cairo-rs 0.2.0
- We now require lalrpop 0.13.1
- The librsvg tarball now comes with the Rust dependencies embedded
  using "cargo vendor".  Linux distros can replace these dependencies
  with their own versions using the infrastructure described in
  http://doc.crates.io/source-replacement.html

Version 2.41.0
- The big news is that parts of librsvg are now implemented in the
  Rust programming language, instead of C.  The public API remains
  identical.  Rust should provide us with memory safety and nicer
  built-in abstractions for the code, as well as an easier way to do
  unit tests.  Special thanks to all the people who sent tips on Rust
  idioms, and to Sebastian Dr?ge and Hubert Figui?re for the Automake bits.
- Added an "--enable-debug" option to configure.ac - this will tell
  the Rust compiler to generate debugging code, instead of working in
  release mode.  Note that you must still pass CFLAGS by hand by the
  regular means for the C code.
- For Windows builds, only MSVC 2012 and upward are supported now.
- Chun-wei Fan made it possible to regenerate the MSVC project files
  when Makefile.am changes.
- Fixed bgo#763386 - handle curveto segments where three control
  points are coincident.  Thanks to Massimo for the detailed test cases.
- Fixed bgo#603550 - Compute the luminance correctly when generating a
  mask.  Thanks to Mike Lewis for the patch.
- Fixed bgo#776297 - Only render markers in path, line, polygon,
  polyline elements.
- Fixed feImage filters when they reference SVG nodes; they were
  translated incorrectly.
- Fixed feComponentTransferFunction when there are duplicated feFuncX
  elements.
- Fixed bgo#761871 - handle reflection points for quadratic and cubic
  curves correctly.
- Fixed bgo#686953 - support the "marker" shorthand property.
- Fixed a few minor issues pointed out by Coverity.
- The path data parser now handles boolean values in Arc elements correctly.
- Fixed conformance bugs in gradient inheritance.
- Radial gradients now adjust the focus point correctly to be within
  the gradient's radius.
- Stroke width normalization is now conformant to the spec.
- Viewport-relative length normalization is now conformant to the spec.
- Added some of the official SVG 1.1 test files to our test suite.  Fixed
  a little bunch of conformance bugs.
- As a small optimization, we only push/pop CSS states when rendering
  will actually happen, instead of for all (potentially invisible) nodes.
- Code that has been converted to Rust:  marker orientations and
  rendering, path data parser, path building, length normalization,
  gradient inheritance, bounding boxes with affine transformations.
- Lots of refactoring to accomodate the Rust code, and general cleanups as well.
- Added tests/README.md with instructions on how to run the test suite
  and update it.
  rsvg-test can now skip files or directories that start with "ignore".
- Improved the README.

diffstat:

 graphics/librsvg/Makefile                   |  169 +++++++-
 graphics/librsvg/PLIST                      |   22 +-
 graphics/librsvg/buildlink3.mk              |   27 +-
 graphics/librsvg/distinfo                   |  569 +++++++++++++++++++++++++++-
 graphics/librsvg/patches/patch-Makefile.am  |   28 +
 graphics/librsvg/patches/patch-configure.ac |   25 +
 graphics/librsvg/patches/patch-test-driver  |   15 -
 7 files changed, 800 insertions(+), 55 deletions(-)

diffs (truncated from 945 to 300 lines):

diff -r ab844249a0e0 -r 6a474dfe65d6 graphics/librsvg/Makefile
--- a/graphics/librsvg/Makefile Wed May 29 12:35:10 2019 +0000
+++ b/graphics/librsvg/Makefile Wed May 29 12:38:23 2019 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.103 2019/02/22 20:50:54 tnn Exp $
+# $NetBSD: Makefile,v 1.104 2019/05/29 12:38:23 wiz Exp $
 
-DISTNAME=      librsvg-2.40.20
-PKGREVISION=   4
+DISTNAME=      librsvg-2.44.14
 CATEGORIES=    graphics gnome
 MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/librsvg/${PKGVERSION_NOREV:R}/}
 EXTRACT_SUFX=  .tar.xz
@@ -11,37 +10,165 @@
 COMMENT=       SVG library for GNOME
 LICENSE=       gnu-lgpl-v2
 
-CONFLICTS+=    librsvg2-gtk-[0-9]* librsvg2-[0-9]*
+MAKE_JOBS_SAFE=        NO
 
 USE_LIBTOOL=           yes
-USE_TOOLS+=            pkg-config gmake
+USE_TOOLS+=            pkg-config gmake aclocal autoconf automake
 USE_LANGUAGES+=                c c++
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --disable-tools
-CONFIGURE_ARGS+=       --enable-Bsymbolic=auto
+#CONFIGURE_ARGS+=      --enable-Bsymbolic=auto
+CONFIGURE_ARGS+=       --disable-Bsymbolic
 
 PKGCONFIG_OVERRIDE=    librsvg.pc.in
 
 TEST_TARGET=           check
 
-CONFIGURE_ARGS.Darwin+=        --disable-Bsymbolic
+pre-configure:
+       cd ${WRKSRC}; autoreconf -fiv
 
-PKG_OPTIONS_VAR=       PKG_OPTIONS.librsvg
-PKG_SUPPORTED_OPTIONS= introspection
-PKG_SUGGESTED_OPTIONS= introspection
-.include "../../mk/bsd.options.mk"
+CARGO_CRATE_DEPENDS+=  aho-corasick-0.6.8
+CARGO_CRATE_DEPENDS+=  alga-0.7.2
+CARGO_CRATE_DEPENDS+=  ansi_term-0.11.0
+CARGO_CRATE_DEPENDS+=  approx-0.3.0
+CARGO_CRATE_DEPENDS+=  arrayvec-0.4.7
+CARGO_CRATE_DEPENDS+=  atty-0.2.11
+CARGO_CRATE_DEPENDS+=  backtrace-0.3.9
+CARGO_CRATE_DEPENDS+=  backtrace-sys-0.1.24
+CARGO_CRATE_DEPENDS+=  bitflags-0.9.1
+CARGO_CRATE_DEPENDS+=  bitflags-1.0.4
+CARGO_CRATE_DEPENDS+=  byteorder-1.2.6
+CARGO_CRATE_DEPENDS+=  c_vec-1.3.2
+CARGO_CRATE_DEPENDS+=  cairo-rs-0.4.1
+CARGO_CRATE_DEPENDS+=  cairo-sys-rs-0.6.0
+CARGO_CRATE_DEPENDS+=  cast-0.2.2
+CARGO_CRATE_DEPENDS+=  cc-1.0.25
+CARGO_CRATE_DEPENDS+=  cfg-if-0.1.5
+CARGO_CRATE_DEPENDS+=  chrono-0.4.6
+CARGO_CRATE_DEPENDS+=  clap-2.32.0
+CARGO_CRATE_DEPENDS+=  cloudabi-0.0.3
+CARGO_CRATE_DEPENDS+=  criterion-0.2.5
+CARGO_CRATE_DEPENDS+=  criterion-plot-0.2.5
+CARGO_CRATE_DEPENDS+=  criterion-stats-0.2.5
+CARGO_CRATE_DEPENDS+=  crossbeam-deque-0.2.0
+CARGO_CRATE_DEPENDS+=  crossbeam-epoch-0.3.1
+CARGO_CRATE_DEPENDS+=  crossbeam-utils-0.2.2
+CARGO_CRATE_DEPENDS+=  cssparser-0.24.0
+CARGO_CRATE_DEPENDS+=  cssparser-macros-0.3.4
+CARGO_CRATE_DEPENDS+=  csv-1.0.2
+CARGO_CRATE_DEPENDS+=  csv-core-0.1.4
+CARGO_CRATE_DEPENDS+=  downcast-rs-1.0.3
+CARGO_CRATE_DEPENDS+=  dtoa-0.4.3
+CARGO_CRATE_DEPENDS+=  dtoa-short-0.3.2
+CARGO_CRATE_DEPENDS+=  either-1.5.0
+CARGO_CRATE_DEPENDS+=  failure-0.1.2
+CARGO_CRATE_DEPENDS+=  failure_derive-0.1.2
+CARGO_CRATE_DEPENDS+=  float-cmp-0.4.0
+CARGO_CRATE_DEPENDS+=  fuchsia-zircon-0.3.3
+CARGO_CRATE_DEPENDS+=  fuchsia-zircon-sys-0.3.3
+CARGO_CRATE_DEPENDS+=  gdk-pixbuf-0.4.0
+CARGO_CRATE_DEPENDS+=  gdk-pixbuf-sys-0.6.0
+CARGO_CRATE_DEPENDS+=  generic-array-0.11.1
+CARGO_CRATE_DEPENDS+=  gio-0.4.1
+CARGO_CRATE_DEPENDS+=  gio-sys-0.6.0
+CARGO_CRATE_DEPENDS+=  glib-0.5.0
+CARGO_CRATE_DEPENDS+=  glib-sys-0.6.0
+CARGO_CRATE_DEPENDS+=  gobject-sys-0.6.0
+CARGO_CRATE_DEPENDS+=  handlebars-0.32.4
+CARGO_CRATE_DEPENDS+=  itertools-0.7.8
+CARGO_CRATE_DEPENDS+=  itertools-num-0.1.2
+CARGO_CRATE_DEPENDS+=  itoa-0.4.3
+CARGO_CRATE_DEPENDS+=  kernel32-sys-0.2.2
+CARGO_CRATE_DEPENDS+=  language-tags-0.2.2
+CARGO_CRATE_DEPENDS+=  lazy_static-0.2.11
+CARGO_CRATE_DEPENDS+=  lazy_static-1.1.0
+CARGO_CRATE_DEPENDS+=  libc-0.2.43
+CARGO_CRATE_DEPENDS+=  libm-0.1.2
+CARGO_CRATE_DEPENDS+=  locale_config-0.2.2
+CARGO_CRATE_DEPENDS+=  log-0.4.5
+CARGO_CRATE_DEPENDS+=  matches-0.1.8
+CARGO_CRATE_DEPENDS+=  matrixmultiply-0.1.14
+CARGO_CRATE_DEPENDS+=  memchr-2.1.0
+CARGO_CRATE_DEPENDS+=  memoffset-0.2.1
+CARGO_CRATE_DEPENDS+=  nalgebra-0.16.4
+CARGO_CRATE_DEPENDS+=  nodrop-0.1.12
+CARGO_CRATE_DEPENDS+=  num-complex-0.2.0
+CARGO_CRATE_DEPENDS+=  num-integer-0.1.39
+CARGO_CRATE_DEPENDS+=  num-traits-0.2.6
+CARGO_CRATE_DEPENDS+=  num_cpus-1.8.0
+CARGO_CRATE_DEPENDS+=  owning_ref-0.3.3
+CARGO_CRATE_DEPENDS+=  pango-0.4.0
+CARGO_CRATE_DEPENDS+=  pango-sys-0.6.0
+CARGO_CRATE_DEPENDS+=  pangocairo-0.5.0
+CARGO_CRATE_DEPENDS+=  pangocairo-sys-0.7.0
+CARGO_CRATE_DEPENDS+=  pest-1.0.6
+CARGO_CRATE_DEPENDS+=  pest_derive-1.0.8
+CARGO_CRATE_DEPENDS+=  phf-0.7.23
+CARGO_CRATE_DEPENDS+=  phf_codegen-0.7.23
+CARGO_CRATE_DEPENDS+=  phf_generator-0.7.23
+CARGO_CRATE_DEPENDS+=  phf_shared-0.7.23
+CARGO_CRATE_DEPENDS+=  pkg-config-0.3.14
+CARGO_CRATE_DEPENDS+=  proc-macro2-0.4.19
+CARGO_CRATE_DEPENDS+=  procedural-masquerade-0.1.6
+CARGO_CRATE_DEPENDS+=  quick-error-1.2.2
+CARGO_CRATE_DEPENDS+=  quote-0.3.15
+CARGO_CRATE_DEPENDS+=  quote-0.6.8
+CARGO_CRATE_DEPENDS+=  rand-0.4.3
+CARGO_CRATE_DEPENDS+=  rand-0.5.5
+CARGO_CRATE_DEPENDS+=  rand_core-0.2.2
+CARGO_CRATE_DEPENDS+=  rand_core-0.3.0
+CARGO_CRATE_DEPENDS+=  rawpointer-0.1.0
+CARGO_CRATE_DEPENDS+=  rayon-1.0.2
+CARGO_CRATE_DEPENDS+=  rayon-core-1.4.1
+CARGO_CRATE_DEPENDS+=  redox_syscall-0.1.40
+CARGO_CRATE_DEPENDS+=  redox_termios-0.1.1
+CARGO_CRATE_DEPENDS+=  regex-0.2.11
+CARGO_CRATE_DEPENDS+=  regex-1.0.5
+CARGO_CRATE_DEPENDS+=  regex-syntax-0.5.6
+CARGO_CRATE_DEPENDS+=  regex-syntax-0.6.2
+CARGO_CRATE_DEPENDS+=  rustc-demangle-0.1.9
+CARGO_CRATE_DEPENDS+=  ryu-0.2.6
+CARGO_CRATE_DEPENDS+=  same-file-1.0.3
+CARGO_CRATE_DEPENDS+=  scopeguard-0.3.3
+CARGO_CRATE_DEPENDS+=  serde-1.0.79
+CARGO_CRATE_DEPENDS+=  serde_derive-1.0.79
+CARGO_CRATE_DEPENDS+=  serde_json-1.0.31
+CARGO_CRATE_DEPENDS+=  simplelog-0.5.2
+CARGO_CRATE_DEPENDS+=  siphasher-0.2.3
+CARGO_CRATE_DEPENDS+=  smallvec-0.6.5
+CARGO_CRATE_DEPENDS+=  stable_deref_trait-1.1.1
+CARGO_CRATE_DEPENDS+=  strsim-0.7.0
+CARGO_CRATE_DEPENDS+=  syn-0.11.11
+CARGO_CRATE_DEPENDS+=  syn-0.14.9
+CARGO_CRATE_DEPENDS+=  syn-0.15.7
+CARGO_CRATE_DEPENDS+=  synom-0.11.3
+CARGO_CRATE_DEPENDS+=  synstructure-0.9.0
+CARGO_CRATE_DEPENDS+=  term-0.5.1
+CARGO_CRATE_DEPENDS+=  termion-1.5.1
+CARGO_CRATE_DEPENDS+=  textwrap-0.10.0
+CARGO_CRATE_DEPENDS+=  thread-scoped-1.0.2
+CARGO_CRATE_DEPENDS+=  thread_local-0.3.6
+CARGO_CRATE_DEPENDS+=  time-0.1.40
+CARGO_CRATE_DEPENDS+=  typenum-1.10.0
+CARGO_CRATE_DEPENDS+=  ucd-util-0.1.1
+CARGO_CRATE_DEPENDS+=  unicode-width-0.1.5
+CARGO_CRATE_DEPENDS+=  unicode-xid-0.0.4
+CARGO_CRATE_DEPENDS+=  unicode-xid-0.1.0
+CARGO_CRATE_DEPENDS+=  unreachable-1.0.0
+CARGO_CRATE_DEPENDS+=  utf8-ranges-1.0.1
+CARGO_CRATE_DEPENDS+=  vec_map-0.8.1
+CARGO_CRATE_DEPENDS+=  version_check-0.1.5
+CARGO_CRATE_DEPENDS+=  void-1.0.2
+CARGO_CRATE_DEPENDS+=  walkdir-2.2.5
+CARGO_CRATE_DEPENDS+=  winapi-0.2.8
+CARGO_CRATE_DEPENDS+=  winapi-0.3.6
+CARGO_CRATE_DEPENDS+=  winapi-build-0.1.1
+CARGO_CRATE_DEPENDS+=  winapi-i686-pc-windows-gnu-0.4.0
+CARGO_CRATE_DEPENDS+=  winapi-util-0.1.1
+CARGO_CRATE_DEPENDS+=  winapi-x86_64-pc-windows-gnu-0.4.0
 
-PLIST_VARS+=   introspection
-
-.if !empty(PKG_OPTIONS:Mintrospection)
-PLIST.introspection=   yes
-CONFIGURE_ARGS+=       --enable-introspection
 BUILDLINK_DEPMETHOD.gobject-introspection+=    build
 .include "../../devel/gobject-introspection/buildlink3.mk"
-.else
-CONFIGURE_ARGS+=       --disable-introspection
-.endif
-
 BUILDLINK_API_DEPENDS.glib2+=  glib2>=2.24.0
 .include "../../devel/glib2/buildlink3.mk"
 BUILDLINK_API_DEPENDS.pango+=  pango>=1.38
@@ -58,4 +185,6 @@
 BUILDLINK_API_DEPENDS.libxml2+=        libxml2>=2.9
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../graphics/gdk-pixbuf2/buildlink3.mk"
+.include "../../lang/rust/buildlink3.mk"
+.include "../../lang/rust/cargo.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r ab844249a0e0 -r 6a474dfe65d6 graphics/librsvg/PLIST
--- a/graphics/librsvg/PLIST    Wed May 29 12:35:10 2019 +0000
+++ b/graphics/librsvg/PLIST    Wed May 29 12:38:23 2019 +0000
@@ -1,26 +1,21 @@
-@comment $NetBSD: PLIST,v 1.18 2018/01/01 22:29:37 rillig Exp $
+@comment $NetBSD: PLIST,v 1.19 2019/05/29 12:38:23 wiz Exp $
 bin/rsvg-convert
-include/librsvg-2.0/librsvg/librsvg-enum-types.h
 include/librsvg-2.0/librsvg/librsvg-features.h
 include/librsvg-2.0/librsvg/rsvg-cairo.h
 include/librsvg-2.0/librsvg/rsvg.h
 lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la
-${PLIST.introspection}lib/girepository-1.0/Rsvg-2.0.typelib
+lib/girepository-1.0/Rsvg-2.0.typelib
 lib/librsvg-2.la
 lib/pkgconfig/librsvg-2.0.pc
 man/man1/rsvg-convert.1
-${PLIST.introspection}share/gir-1.0/Rsvg-2.0.gir
-share/gtk-doc/html/rsvg-2.0/RsvgHandle.html
+share/doc/librsvg/COMPILING.md
+share/doc/librsvg/CONTRIBUTING.md
+share/doc/librsvg/README.md
+share/doc/librsvg/code-of-conduct.md
+share/gir-1.0/Rsvg-2.0.gir
 share/gtk-doc/html/rsvg-2.0/annotation-glossary.html
-share/gtk-doc/html/rsvg-2.0/api-index-2-14.html
-share/gtk-doc/html/rsvg-2.0/api-index-2-22.html
-share/gtk-doc/html/rsvg-2.0/api-index-2-32.html
-share/gtk-doc/html/rsvg-2.0/api-index-2-36.html
-share/gtk-doc/html/rsvg-2.0/api-index-2-4.html
-share/gtk-doc/html/rsvg-2.0/api-index-2-8.html
-share/gtk-doc/html/rsvg-2.0/api-index-2-9.html
-share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html
 share/gtk-doc/html/rsvg-2.0/api-index-full.html
+share/gtk-doc/html/rsvg-2.0/ch01.html
 share/gtk-doc/html/rsvg-2.0/home.png
 share/gtk-doc/html/rsvg-2.0/index.html
 share/gtk-doc/html/rsvg-2.0/left-insensitive.png
@@ -30,6 +25,7 @@
 share/gtk-doc/html/rsvg-2.0/right-insensitive.png
 share/gtk-doc/html/rsvg-2.0/right.png
 share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2
+share/gtk-doc/html/rsvg-2.0/rsvg-RsvgHandle.html
 share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html
 share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html
 share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html
diff -r ab844249a0e0 -r 6a474dfe65d6 graphics/librsvg/buildlink3.mk
--- a/graphics/librsvg/buildlink3.mk    Wed May 29 12:35:10 2019 +0000
+++ b/graphics/librsvg/buildlink3.mk    Wed May 29 12:38:23 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.46 2018/11/14 22:21:42 kleink Exp $
+# $NetBSD: buildlink3.mk,v 1.47 2019/05/29 12:38:23 wiz Exp $
 
 BUILDLINK_TREE+=       librsvg
 
@@ -7,7 +7,32 @@
 
 BUILDLINK_API_DEPENDS.librsvg+=                librsvg>=2.12.6nb1
 BUILDLINK_ABI_DEPENDS.librsvg+=                librsvg>=2.40.20nb4
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+# platforms where pkgsrc supports lang/rust
+.if (${MACHINE_ARCH} == "aarch64" \
+  || ${MACHINE_ARCH} == "armv7" \
+  || ${MACHINE_ARCH} == "i386" \
+  || ${MACHINE_ARCH} == "powerpc" \
+  || ${MACHINE_ARCH} == "sparc64" \
+  || ${MACHINE_ARCH} == "x86_64") \
+  && \
+ (${OPSYS} == "Darwin" \
+ || ${OPSYS} == "FreeBSD" \
+ || ${OPSYS} == "Linux" \
+ || ${OPSYS} == "NetBSD" \
+ || ${OPSYS} == "SunOS")
+LIBRSVG_USE_RUST?=     yes
+.endif
+
+.if ${LIBRSVG_USE_RUST} == "yes"
 BUILDLINK_PKGSRCDIR.librsvg?=          ../../graphics/librsvg
+BUILDLINK_API_DEPENDS.librsvg+=                librsvg>=2.41
+.else
+BUILDLINK_PKGSRCDIR.librsvg?=          ../../graphics/librsvg-c
+BUILDLINK_API_DEPENDS.librsvg+=                librsvg<2.41
+.endif
 
 .include "../../devel/pango/buildlink3.mk"
 .include "../../graphics/cairo/buildlink3.mk"
diff -r ab844249a0e0 -r 6a474dfe65d6 graphics/librsvg/distinfo
--- a/graphics/librsvg/distinfo Wed May 29 12:35:10 2019 +0000
+++ b/graphics/librsvg/distinfo Wed May 29 12:38:23 2019 +0000
@@ -1,7 +1,564 @@
-$NetBSD: distinfo,v 1.37 2018/01/10 10:47:43 wiz Exp $
+$NetBSD: distinfo,v 1.38 2019/05/29 12:38:23 wiz Exp $
 
-SHA1 (librsvg-2.40.20.tar.xz) = 244441b0f83ea8b3888cea2e9337eed3426f0149
-RMD160 (librsvg-2.40.20.tar.xz) = e697e1220779f77e81a890718ef5cda5b5e6b740



Home | Main Index | Thread Index | Old Index