git: 362ea03643fc - main - testproc/fmtlib: add new port of fmtlib
Date: Mon, 18 Dec 2023 06:36:58 UTC
The branch main has been updated by mi: URL: https://cgit.FreeBSD.org/ports/commit/?id=362ea03643fc92c9ca8c06c38996a9cf8a2435fc commit 362ea03643fc92c9ca8c06c38996a9cf8a2435fc Author: Mikhail Teterin <mi@FreeBSD.org> AuthorDate: 2023-12-18 06:34:58 +0000 Commit: Mikhail Teterin <mi@FreeBSD.org> CommitDate: 2023-12-18 06:36:54 +0000 testproc/fmtlib: add new port of fmtlib According to the pkgsrc repository, this library used to be known as cppformat. WWW: https://fmt.dev/ --- textproc/Makefile | 1 + textproc/fmtlib/Makefile | 24 ++++++++++++++++++++++++ textproc/fmtlib/distinfo | 3 +++ textproc/fmtlib/pkg-descr | 14 ++++++++++++++ textproc/fmtlib/pkg-plist | 21 +++++++++++++++++++++ 5 files changed, 63 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 5dc8c7591c00..0e914e6b2e77 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -224,6 +224,7 @@ SUBDIR += flex SUBDIR += flip SUBDIR += fmtlatex + SUBDIR += fmtlib SUBDIR += fo-aspell SUBDIR += foiltex SUBDIR += fop diff --git a/textproc/fmtlib/Makefile b/textproc/fmtlib/Makefile new file mode 100644 index 000000000000..5e23fd014b06 --- /dev/null +++ b/textproc/fmtlib/Makefile @@ -0,0 +1,24 @@ +PORTNAME= fmtlib +PORTVERSION= 10.1.1 +CATEGORIES= textproc devel + +MAINTAINER= mi@aldan.algebra.com +COMMENT= Modern formatting library (formerly cppformat) +WWW= https://fmt.dev/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.rst + +USES= cmake + +USE_GITHUB= uh-huh +GH_ACCOUNT= fmtlib +GH_PROJECT= fmt + +OPTIONS_DEFINE= TEST + +CMAKE_ON= BUILD_SHARED_LIBS +TEST_CMAKE_OFF= -DFMT_TEST=0 +TEST_TEST_TARGET= test + +.include <bsd.port.mk> diff --git a/textproc/fmtlib/distinfo b/textproc/fmtlib/distinfo new file mode 100644 index 000000000000..8d6b901b426a --- /dev/null +++ b/textproc/fmtlib/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1702878142 +SHA256 (fmtlib-fmt-10.1.1_GH0.tar.gz) = 78b8c0a72b1c35e4443a7e308df52498252d1cefc2b08c9a97bc9ee6cfe61f8b +SIZE (fmtlib-fmt-10.1.1_GH0.tar.gz) = 851454 diff --git a/textproc/fmtlib/pkg-descr b/textproc/fmtlib/pkg-descr new file mode 100644 index 000000000000..c80bbd5f4ed5 --- /dev/null +++ b/textproc/fmtlib/pkg-descr @@ -0,0 +1,14 @@ +{fmt} is an open-source formatting library providing a fast and +safe alternative to C stdio and C++ iostreams. + +* Simple format API with positional arguments for localization +* Implementation of C++20 std::format and C++23 std::print +* Format string syntax similar to Python's format +* Fast IEEE 754 floating-point formatter with correct rounding, shortness + and round-trip guarantees using the Dragonbox algorithm +* Portable Unicode support +* Safe printf implementation including the POSIX extension for + positional arguments + +If you like this project, please consider donating to one of the +funds that help victims of the war in Ukraine: www.stopputin.net/ diff --git a/textproc/fmtlib/pkg-plist b/textproc/fmtlib/pkg-plist new file mode 100644 index 000000000000..d4356647f3e4 --- /dev/null +++ b/textproc/fmtlib/pkg-plist @@ -0,0 +1,21 @@ +lib/libfmt.so.10.1.0 +lib/libfmt.so.10 +lib/libfmt.so +include/fmt/args.h +include/fmt/chrono.h +include/fmt/color.h +include/fmt/compile.h +include/fmt/core.h +include/fmt/format.h +include/fmt/format-inl.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.cmake +lib/cmake/fmt/fmt-config-version.cmake +lib/cmake/fmt/fmt-targets.cmake +lib/cmake/fmt/fmt-targets-release.cmake +libdata/pkgconfig/fmt.pc