head 1.2; access; symbols pkgsrc-2026Q2:1.1.0.2 pkgsrc-2026Q2-base:1.1; locks; strict; comment @# @; 1.2 date 2026.07.28.23.38.30; author kikadf; state Exp; branches; next 1.1; commitid 9KeOnLVhClCOGtPG; 1.1 date 2026.04.14.12.46.17; author kikadf; state Exp; branches; next ; commitid 5UxBQW1T705FsVBG; desc @@ 1.2 log @ chrono-date: update to 3.0.5 * What's Changed Don't fail on nearly blank lines by @@HazardyKnusperkeks in #882 Port ptz.h to C++20 by @@HowardHinnant in 0a1b72b compatible for c++11 but GCC < by @@aengusjiang in 229c687 Fix parse of sys_time with supplied offset, but no offset parse by @@HowardHinnant in e32a0d8 fix: OPERATOR_LITERAL Wdeprecated-literal-operator by @@botanegg in #890 Bring leap_second up to spec by @@HowardHinnant in b2e917c get_version - Allow for NVRO by @@greateggsgreg in #905 Prevent overflow when using 32 bit minutes by @@HowardHinnant in 1a70f8c fix: add quotes to all std::system invocations in tz by @@L0PiTaL in #909 Update iso_week to use closest Thursday algorithm by @@HowardHinnant in 7875f43 Update remote_version to new website by @@HowardHinnant in 179a6b9 @ text @$NetBSD: patch-CMakeLists.txt,v 1.1 2026/04/14 12:46:17 kikadf Exp $ * Install date.pc for pkg-config from Arch Linux * Fix version https://github.com/HowardHinnant/date/commit/c05cd34119d62f96deed28c803d2fd0b59548d8f --- CMakeLists.txt.orig 2026-07-23 19:52:36.000000000 +0000 +++ CMakeLists.txt @@@@ -17,7 +17,7 @@@@ cmake_minimum_required( VERSION 3.7 ) -project( date VERSION 3.0.4 ) +project( date VERSION 3.0.5 ) set(ABI_VERSION 3) # used as SOVERSION, increment when ABI changes get_directory_property( has_parent PARENT_DIRECTORY ) @@@@ -186,6 +186,15 @@@@ if( BUILD_TZ_LIB ) endif( ) endif( ) +if ( BUILD_TZ_LIB ) + # Cflags: -I${includedir} @@TZ_COMPILE_DEFINITIONS@@ + set( TZ_COMPILE_DEFINITIONS "$,-D$, -D>,>" ) + configure_file(date.pc.in date.pc.cf @@ONLY) + file( GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/date.pc" + INPUT "${CMAKE_CURRENT_BINARY_DIR}/date.pc.cf" ) + +endif( ) + #[===================================================================[ installation #]===================================================================] @@@@ -231,6 +240,12 @@@@ if( ENABLE_DATE_INSTALL ) DESTINATION ${CONFIG_LOC}) endif( ) +if ( BUILD_TZ_LIB ) + install( + FILES ${CMAKE_BINARY_DIR}/date.pc + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +endif( ) + #[===================================================================[ testing #]===================================================================] @ 1.1 log @ chrono-date: new package A date and time library based on the C++11/14/17 header. @ text @d1 1 a1 1 $NetBSD$ d5 2 d8 1 a8 1 --- CMakeLists.txt.orig 2025-05-28 17:53:02.000000000 +0000 d10 9 @