pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/fmtlib



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue May 16 21:16:08 UTC 2023

Modified Files:
        pkgsrc/textproc/fmtlib: Makefile PLIST distinfo

Log Message:
fmtlib: update to 10.0.0.

10.0.0 - 2023-05-09
-------------------

* Replaced Grisu with a new floating-point formatting algorithm for given
  precision
  The new algorithm is based on Dragonbox already used for the
  shortest representation and gives substantial performance improvement:

* Replaced ``snprintf``-based hex float formatter with an internal
  implementation
  This removes the last usage of ``s(n)printf`` in {fmt}.

* Fixed alignment of floating-point numbers with localization

* Improved C++20 module support
  Switched to the `modules CMake library <https://github.com/vitaut/modules>`_
  which allows building {fmt} as a C++20 module with clang::

    CXX=clang++ cmake -DFMT_MODULE=ON .
    make

* Made ``format_as`` work with any user-defined type and not just enums.
  For example (`godbolt <https://godbolt.org/z/b7rqhq5Kh>`__):

  .. code:: c++

     #include <fmt/format.h>

     struct floaty_mc_floatface {
       double value;
     };

     auto format_as(floaty_mc_floatface f) { return f.value; }

     int main() {
       fmt::print("{:8}\n", floaty_mc_floatface{0.42}); // prints "    0.42"
     }

* Removed deprecated implicit conversions for enums and conversions to primitive
  types for compatibility with ``std::format`` and to prevent potential ODR
  violations. Use ``format_as`` instead.

* Added support for fill, align and width to the time point formatter

* Implemented formatting of subseconds

* Added precision support to ``%S``

* Added support for ``std::utc_time``

* Switched formatting of ``std::chrono::system_clock`` from local time to UTC
  for compatibility with the standard

* Added support for ``%Ez`` and ``%Oz`` to chrono formatters.

* Improved validation of format specifiers for ``std::chrono::duration``

* Fixed formatting of time points before the epoch

* Experimental: implemented glibc extension for padding seconds, minutes and
  hours

* Added a formatter for ``std::exception``

* Moved ``std::error_code`` formatter from ``fmt/os.h`` to ``fmt/std.h``.

* Added formatters for standard container adapters: ``std::priority_queue``,
  ``std::queue`` and ``std::stack``

* Added a formatter for ``std::optional`` to ``fmt/std.h``.

* Fixed formatting of valueless by exception variants

* Made ``fmt::ptr`` accept ``unique_ptr`` with a custom deleter

* Fixed formatting of noncopyable ranges and nested ranges of chars

* Fixed issues with formatting of paths and ranges of paths

* Improved handling of invalid Unicode in paths.

* Enabled compile-time checks on Apple clang 14 and later

* Improved compile-time checks of named arguments

* Fixed formatting when both alignment and ``0`` are given

* Improved Unicode support in the experimental file API on Windows

* Unified UTF transcoding

* Added support for UTF-8 digit separators via an experimental locale facet

* Added an overload of ``formatted_size`` that takes a locale

* Removed the deprecated ``FMT_DEPRECATED_OSTREAM``.

* Fixed a UB when using a null ``std::string_view`` with ``fmt::to_string``
  or format string compilation

* Added ``starts_with`` to the fallback ``string_view`` implementation

* Added ``fmt::basic_format_string::get()`` for compatibility with
  ``basic_format_string``

* Added ``println`` for compatibility with C++23

* Improved documentation

* Improved build configuration and tests

* Fixed a regression in handling empty format specifiers after a colon (``{:}``)

* Worked around a broken implementation of ``std::is_constant_evaluated`` in
  some versions of libstdc++ on clang

* Fixed formatting of volatile variables

* Fixed various warnings and compilation issues


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/textproc/fmtlib/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/textproc/fmtlib/PLIST
cvs rdiff -u -r1.15 -r1.16 pkgsrc/textproc/fmtlib/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/fmtlib/Makefile
diff -u pkgsrc/textproc/fmtlib/Makefile:1.13 pkgsrc/textproc/fmtlib/Makefile:1.14
--- pkgsrc/textproc/fmtlib/Makefile:1.13        Tue Jan 24 18:36:34 2023
+++ pkgsrc/textproc/fmtlib/Makefile     Tue May 16 21:16:08 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2023/01/24 18:36:34 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2023/05/16 21:16:08 wiz Exp $
 
-DISTNAME=      fmt-9.1.0
+DISTNAME=      fmt-10.0.0
 PKGNAME=       ${DISTNAME:S/fmt/fmtlib/}
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=fmtlib/}

Index: pkgsrc/textproc/fmtlib/PLIST
diff -u pkgsrc/textproc/fmtlib/PLIST:1.8 pkgsrc/textproc/fmtlib/PLIST:1.9
--- pkgsrc/textproc/fmtlib/PLIST:1.8    Sat Oct  8 09:43:19 2022
+++ pkgsrc/textproc/fmtlib/PLIST        Tue May 16 21:16:08 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2022/10/08 09:43:19 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.9 2023/05/16 21:16:08 wiz Exp $
 include/fmt/args.h
 include/fmt/chrono.h
 include/fmt/color.h
@@ -6,11 +6,11 @@ include/fmt/compile.h
 include/fmt/core.h
 include/fmt/format-inl.h
 include/fmt/format.h
-include/fmt/std.h
 include/fmt/os.h
 include/fmt/ostream.h
 include/fmt/printf.h
 include/fmt/ranges.h
+include/fmt/std.h
 include/fmt/xchar.h
 lib/cmake/fmt/fmt-config-version.cmake
 lib/cmake/fmt/fmt-config.cmake
@@ -18,5 +18,5 @@ lib/cmake/fmt/fmt-targets-release.cmake
 lib/cmake/fmt/fmt-targets.cmake
 lib/libfmt.so
 lib/libfmt.so.${PKGVERSION}
-lib/libfmt.so.9
+lib/libfmt.so.10
 lib/pkgconfig/fmt.pc

Index: pkgsrc/textproc/fmtlib/distinfo
diff -u pkgsrc/textproc/fmtlib/distinfo:1.15 pkgsrc/textproc/fmtlib/distinfo:1.16
--- pkgsrc/textproc/fmtlib/distinfo:1.15        Sat Oct  8 09:43:19 2022
+++ pkgsrc/textproc/fmtlib/distinfo     Tue May 16 21:16:08 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2022/10/08 09:43:19 bsiegert Exp $
+$NetBSD: distinfo,v 1.16 2023/05/16 21:16:08 wiz Exp $
 
-BLAKE2s (fmt-9.1.0.tar.gz) = dad20e52d2213496228f5ef7c4f2f02007ec8df90bf2b1ce0fda5149e43da49d
-SHA512 (fmt-9.1.0.tar.gz) = a18442042722dd48e20714ec034a12fcc0576c9af7be5188586970e2edf47529825bdc99af366b1d5891630c8dbf6f63bfa9f012e77ab3d3ed80d1a118e3b2be
-Size (fmt-9.1.0.tar.gz) = 837901 bytes
+BLAKE2s (fmt-10.0.0.tar.gz) = 264c89c068f72698e8466f1c796e5dbc6efc1737f8bc3805e9914fd152ecba29
+SHA512 (fmt-10.0.0.tar.gz) = 6188508d74ca1ed75bf6441b152c07ca83971d3104b37f33784a7b55dfcc614d6243e77e0a14220018586fdb86207cc033eece834e7acd5e0907ed4c97403f3b
+Size (fmt-10.0.0.tar.gz) = 851582 bytes



Home | Main Index | Thread Index | Old Index