pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/fmtlib fmtlib: updated to 6.0.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/0a24260298d0
branches: trunk
changeset: 340729:0a24260298d0
user: adam <adam%pkgsrc.org@localhost>
date: Sun Oct 06 16:36:27 2019 +0000
description:
fmtlib: updated to 6.0.0
6.0.0:
Switched to the MIT license with an optional exception that allows distributing binary code without attribution.
Floating-point formatting is now locale-independent by default.
Added an experimental Grisu floating-point formatting algorithm implementation (disabled by default). To enable it compile with the FMT_USE_GRISU macro defined to 1.
Separated formatting and parsing contexts for consistency with C++20 std::format, removing the undocumented basic_format_context::parse_context() function.
Added oss-fuzz support.
formatter specializations now always take precedence over operator<<.
Introduced the experimental fmt::compile function that does format string compilation.
Added the % format specifier that formats floating-point values as percentages.
Implemented precision for floating-point durations.
Implemented chrono format specifiers %Q and %q that give the value and the unit respectively .
Fixed handling of dynamic width in chrono formatter.
Removed deprecated fmt/time.h. Use fmt/chrono.h instead.
Added fmt::format and fmt::vformat overloads that take text_style.
Removed the deprecated color API (print_colored). Use the new API, namely print overloads that take text_style instead.
Made std::unique_ptr and std::shared_ptr formattable as pointers via fmt::ptr.
Made print and vprint report I/O errors.
Marked deprecated APIs with the [[deprecated]] attribute and removed internal uses of deprecated APIs.
Modernized the codebase using more C++11 features and removing workarounds. Most importantly, buffer_context is now an alias template, so use buffer_context<T> instead of buffer_context<T>::type.
These features require GCC 4.8 or later.
formatter specializations now always take precedence over implicit conversions to int and the undocumented convert_to_int trait is now deprecated.
Moved the undocumented basic_writer, writer, and wwriter types to the internal namespace.
Removed deprecated basic_format_context::begin(). Use out() instead.
Disallowed passing the result of join as an lvalue to prevent misuse.
Refactored the undocumented structs that represent parsed format specifiers to simplify the API and allow multibyte fill.
Moved SFINAE to template parameters to reduce symbol sizes.
Switched to fputws for writing wide strings so that it's no longer required to call _setmode on Windows.
diffstat:
textproc/fmtlib/Makefile | 7 ++++---
textproc/fmtlib/PLIST | 7 ++++---
textproc/fmtlib/distinfo | 12 +++++-------
textproc/fmtlib/patches/patch-CMakeLists.txt | 15 ---------------
textproc/fmtlib/patches/patch-include_fmt_posix.h | 15 ---------------
5 files changed, 13 insertions(+), 43 deletions(-)
diffs (108 lines):
diff -r b9224556b9e0 -r 0a24260298d0 textproc/fmtlib/Makefile
--- a/textproc/fmtlib/Makefile Sun Oct 06 16:16:08 2019 +0000
+++ b/textproc/fmtlib/Makefile Sun Oct 06 16:36:27 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2019/02/26 10:58:25 adam Exp $
+# $NetBSD: Makefile,v 1.3 2019/10/06 16:36:27 adam Exp $
-DISTNAME= fmt-5.3.0
+DISTNAME= fmt-6.0.0
PKGNAME= ${DISTNAME:S/fmt/fmtlib/}
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=fmtlib/}
@@ -9,11 +9,12 @@
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= http://fmtlib.net/
COMMENT= Formatting library
-LICENSE= modified-bsd
+LICENSE= mit
USE_CMAKE= yes
USE_LANGUAGES= c c++11
PKGCONFIG_OVERRIDE= support/cmake/fmt.pc.in
+TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}
TEST_TARGET= test
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
diff -r b9224556b9e0 -r 0a24260298d0 textproc/fmtlib/PLIST
--- a/textproc/fmtlib/PLIST Sun Oct 06 16:16:08 2019 +0000
+++ b/textproc/fmtlib/PLIST Sun Oct 06 16:36:27 2019 +0000
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.2 2019/02/26 10:58:25 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2019/10/06 16:36:27 adam Exp $
include/fmt/chrono.h
include/fmt/color.h
+include/fmt/compile.h
include/fmt/core.h
include/fmt/format-inl.h
include/fmt/format.h
@@ -9,12 +10,12 @@
include/fmt/posix.h
include/fmt/printf.h
include/fmt/ranges.h
-include/fmt/time.h
+include/fmt/safe-duration-cast.h
lib/cmake/fmt/fmt-config-version.cmake
lib/cmake/fmt/fmt-config.cmake
lib/cmake/fmt/fmt-targets-release.cmake
lib/cmake/fmt/fmt-targets.cmake
lib/libfmt.so
lib/libfmt.so.${PKGVERSION}
-lib/libfmt.so.5
+lib/libfmt.so.6
lib/pkgconfig/fmt.pc
diff -r b9224556b9e0 -r 0a24260298d0 textproc/fmtlib/distinfo
--- a/textproc/fmtlib/distinfo Sun Oct 06 16:16:08 2019 +0000
+++ b/textproc/fmtlib/distinfo Sun Oct 06 16:36:27 2019 +0000
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.3 2019/02/26 10:58:25 adam Exp $
+$NetBSD: distinfo,v 1.4 2019/10/06 16:36:27 adam Exp $
-SHA1 (fmt-5.3.0.tar.gz) = 787a568322e08cebb1e164b3c9766e27ca18b2c8
-RMD160 (fmt-5.3.0.tar.gz) = db698a683c6be3bb2423965f00ca661e849308c1
-SHA512 (fmt-5.3.0.tar.gz) = 9ef0f3d328681253c1e1776576d54d67dec49c19fd7fc422ae63c3610b01a3f05f6e83cdf5e913dfd09bac42e52fe35c38ebe1ea91f4207d226a32aaf69eb4a8
-Size (fmt-5.3.0.tar.gz) = 662493 bytes
-SHA1 (patch-CMakeLists.txt) = 122c1694b7772e4f444ec550a3d1fb9b6b8d0690
-SHA1 (patch-include_fmt_posix.h) = 083c19a7f1fc02e04f355e3d45781b47364baca1
+SHA1 (fmt-6.0.0.tar.gz) = 40635ee94d24cb9856422293c04150017a8911df
+RMD160 (fmt-6.0.0.tar.gz) = 4a60315dc2e914b3f174055deca8c3cf8f3268b1
+SHA512 (fmt-6.0.0.tar.gz) = 7deb5bd843ae6b9d4b58dca9c68c1cfe7b55a41040f358247f5309655188d1ae194ff414437c068f74367f078faa214b5883e8c9e634c7623dcda50850e24766
+Size (fmt-6.0.0.tar.gz) = 708425 bytes
diff -r b9224556b9e0 -r 0a24260298d0 textproc/fmtlib/patches/patch-CMakeLists.txt
--- a/textproc/fmtlib/patches/patch-CMakeLists.txt Sun Oct 06 16:16:08 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2019/02/26 10:58:25 adam Exp $
-
-Install .pc to lib/pkgconfig.
-
---- CMakeLists.txt.orig 2019-02-12 22:54:39.000000000 +0000
-+++ CMakeLists.txt
-@@ -205,7 +205,7 @@ if (FMT_INSTALL)
- set(FMT_INC_DIR ${CMAKE_INSTALL_INCLUDEDIR}/fmt CACHE STRING
- "Installation directory for include files, relative to ${CMAKE_INSTALL_PREFIX}.")
-
-- set(FMT_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/share/pkgconfig" CACHE PATH
-+ set(FMT_PKGCONFIG_DIR "${CMAKE_INSTALL_LIBDIR}/pkgconfig" CACHE PATH
- "Installation directory for pkgconfig (.pc) files, relative to ${CMAKE_INSTALL_PREFIX}.")
-
- # Generate the version, config and target files into the build directory.
diff -r b9224556b9e0 -r 0a24260298d0 textproc/fmtlib/patches/patch-include_fmt_posix.h
--- a/textproc/fmtlib/patches/patch-include_fmt_posix.h Sun Oct 06 16:16:08 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-include_fmt_posix.h,v 1.1 2018/12/04 10:05:22 jperkin Exp $
-
-Avoid strtod_l on SunOS.
-
---- include/fmt/posix.h.orig 2018-09-21 17:18:51.000000000 +0000
-+++ include/fmt/posix.h
-@@ -267,7 +267,7 @@ long getpagesize();
-
- #if (defined(LC_NUMERIC_MASK) || defined(_MSC_VER)) && \
- !defined(__ANDROID__) && !defined(__CYGWIN__) && !defined(__OpenBSD__) && \
-- !defined(__NEWLIB_H__)
-+ !defined(__NEWLIB_H__) && !defined(__sun)
- # define FMT_LOCALE
- #endif
-
Home |
Main Index |
Thread Index |
Old Index