BSD Ports

devel/scnlib 4.0.1 FreeBSD

scanf for modern C++

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Port added
Last update
Commit
734040197a
License
APACHE20
Categories
devel
Package size
405.5 KiB, 2437.8 KiB installed

Description

scnlib is a modern C++ library for replacing scanf and std::istream. This library attempts to move us ever so much closer to replacing iostreams and C stdio altogether. It's faster than iostream (see Benchmarks), and type-safe, unlike scanf. Think {fmt} or C++20 std::format, but in the other direction.

This library is the reference implementation of the ISO C++ standards proposal P1729 "Text Parsing".

In the other systems

SystemPortVersion
FreeBSDdevel/scnlib4.0.1
OpenBSDdevel/scnlib4.0.1p0

Install

Binary package:

pkg install scnlib

From the ports tree:

cd /usr/ports/devel/scnlib/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	scnlib>0:devel/scnlib
LIB_DEPENDS=	libscn.so:devel/scnlib

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.0.14.0.1--4.0.1
FreeBSD:14:quarterly4.0.14.0.1n/a-4.0.1
FreeBSD:15:latest4.0.14.0.1n/a--
FreeBSD:15:quarterly4.0.14.0.1n/an/an/a
FreeBSD:16:latest4.0.14.0.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

The full lists below include those, and their dependencies in turn.

Build dependencies 18
Run dependencies 7

Configuration

No options to configure.

USES
cmake compiler:c++20-lang python
Service scripts
none

Files

pkg-plist 13
  • include/scn/chrono.h
  • include/scn/fwd.h
  • include/scn/istream.h
  • include/scn/ranges.h
  • include/scn/regex.h
  • include/scn/scan.h
  • include/scn/xchar.h
  • lib/cmake/scn/scn-config-version.cmake
  • lib/cmake/scn/scn-config.cmake
  • lib/cmake/scn/scn-targets-.cmake
  • lib/cmake/scn/scn-targets.cmake
  • lib/libscn.so
  • lib/libscn.so.4
distinfo 1
FileSizeSHA256
eliaskosunen-scnlib-v4.0.1_GH0.tar.gz434107ece17b26840894cc57a7127138fe4540929adcb297524dec02c490c233ff46a7

Commit history 1

DateCommitCreditsLog message
734040197a Thierry Thomas devel/scnlib: new port, scanf for modern C++