libcifpp: build sqlite3 interface, always use fast-float

This commit is contained in:
Renee Otten
2026-05-23 22:46:42 -04:00
parent 086ce6eea9
commit 0330d135eb
2 changed files with 22 additions and 2 deletions
+6 -2
View File
@@ -7,7 +7,7 @@ PortGroup legacysupport 1.1
github.setup PDB-REDO libcifpp 10.0.4 v
github.tarball_from archive
revision 0
revision 1
categories science
license BSD
@@ -28,6 +28,8 @@ legacysupport.use_mp_libcxx yes
compiler.blacklist-append {clang < 1300}
compiler.cxx_standard 2020
patchfiles-append patch-CMakeLists.txt.diff
configure.args-append \
-DBUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=ON \
@@ -40,8 +42,10 @@ configure.args-append \
# https://github.com/ihmwg/ModelCIF/raw/master/dist/mmcif_ma.dic --> mmcif_ma.dic
depends_build-append \
path:bin/pkg-config:pkgconfig
path:bin/pkg-config:pkgconfig \
port:fast-float
depends_lib-append path:share/pkgconfig/eigen3.pc:eigen3 \
port:pcre2 \
port:sqlite3 \
port:zlib
@@ -0,0 +1,16 @@
--- CMakeLists.txt.orig 2026-05-23 23:23:26
+++ CMakeLists.txt 2026-05-23 23:24:45
@@ -170,11 +170,8 @@
endforeach()
endif()
-# Using fast_float for float parsing, but only if needed
-try_compile(STD_CHARCONV_COMPILING
- SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/test-charconv.cpp
- CXX_STANDARD 20
- CXX_STANDARD_REQUIRED ON)
+# Using fast_float for float parsing, always in MacPorts
+set(STD_CHARCONV_COMPILING FALSE)
if(NOT STD_CHARCONV_COMPILING)
message(NOTICE "libcifpp: Using fast_float for std::from_chars")