summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2019-10-06 16:36:27 +0000
committeradam <adam@pkgsrc.org>2019-10-06 16:36:27 +0000
commit12c32318f9dce8ac8f8613d76fcb8a3c81e19822 (patch)
tree7305b19dad3d6645bbf460a69eaf3e806c6e216a /textproc
parent20092ceb6d23d2472237ee4e394460901275bf69 (diff)
downloadpkgsrc-12c32318f9dce8ac8f8613d76fcb8a3c81e19822.tar.gz
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 (limited to 'textproc')
-rw-r--r--textproc/fmtlib/Makefile7
-rw-r--r--textproc/fmtlib/PLIST7
-rw-r--r--textproc/fmtlib/distinfo12
-rw-r--r--textproc/fmtlib/patches/patch-CMakeLists.txt15
-rw-r--r--textproc/fmtlib/patches/patch-include_fmt_posix.h15
5 files changed, 13 insertions, 43 deletions
diff --git a/textproc/fmtlib/Makefile b/textproc/fmtlib/Makefile
index d31dbb0c2d9..63cd17f4f03 100644
--- a/textproc/fmtlib/Makefile
+++ b/textproc/fmtlib/Makefile
@@ -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 @@ GITHUB_PROJECT= fmt
MAINTAINER= pkgsrc-users@NetBSD.org
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 --git a/textproc/fmtlib/PLIST b/textproc/fmtlib/PLIST
index 21890a41477..60de9b058aa 100644
--- a/textproc/fmtlib/PLIST
+++ b/textproc/fmtlib/PLIST
@@ -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/ostream.h
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 --git a/textproc/fmtlib/distinfo b/textproc/fmtlib/distinfo
index 759636bdeb1..eac8e9b89ef 100644
--- a/textproc/fmtlib/distinfo
+++ b/textproc/fmtlib/distinfo
@@ -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 --git a/textproc/fmtlib/patches/patch-CMakeLists.txt b/textproc/fmtlib/patches/patch-CMakeLists.txt
deleted file mode 100644
index 99a92855bbc..00000000000
--- a/textproc/fmtlib/patches/patch-CMakeLists.txt
+++ /dev/null
@@ -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 --git a/textproc/fmtlib/patches/patch-include_fmt_posix.h b/textproc/fmtlib/patches/patch-include_fmt_posix.h
deleted file mode 100644
index 2077b4dabe0..00000000000
--- a/textproc/fmtlib/patches/patch-include_fmt_posix.h
+++ /dev/null
@@ -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
-