Don't depend on devel/git as distfiles are generated by git-archive(1) thus don't contain .git subdirs. --- externals/nx_tzdb/CMakeLists.txt.orig 2023-06-23 13:27:28 UTC +++ externals/nx_tzdb/CMakeLists.txt @@ -5,15 +5,11 @@ add_library(nx_tzdb INTERFACE) add_library(nx_tzdb INTERFACE) -find_program(GIT git) find_program(GNU_MAKE make) find_program(DATE_PROG date) set(CAN_BUILD_NX_TZDB true) -if (NOT GIT) - set(CAN_BUILD_NX_TZDB false) -endif() if (NOT GNU_MAKE) set(CAN_BUILD_NX_TZDB false) endif() --- externals/nx_tzdb/tzdb_to_nx/externals/tz/CMakeLists.txt.orig 2024-02-10 22:27:31 UTC +++ externals/nx_tzdb/tzdb_to_nx/externals/tz/CMakeLists.txt @@ -13,20 +13,11 @@ endif() message(FATAL_ERROR "GNU make not found") endif() -find_program(GIT_PROGRAM git) -if (NOT GIT_PROGRAM) - message(FATAL_ERROR "git program not found") -endif() - if (NOT EXISTS "${TZ_DIR}" OR NOT EXISTS "${TZIF_LIST_FILE}") if (NOT TZDB2NX_ZONEINFO_DIR) # If a custom zoneinfo directory was specified # tz's makefile can only build in-tree, so copy the whole source tree to a # separate directory before building. - execute_process( - COMMAND - ${GIT_PROGRAM} clone --depth 1 "file://${TZ_SOURCE_DIR}" "${TZ_TMP_SOURCE_DIR}" - COMMAND_ERROR_IS_FATAL ANY - ) + file(COPY ${TZ_SOURCE_DIR}/ DESTINATION ${TZ_TMP_SOURCE_DIR}) if (APPLE) set(TZ_MAKEFLAGS "LDLIBS=${Intl_LIBRARY}") --- externals/nx_tzdb/tzdb_to_nx/externals/tz/tz/version.orig 2024-02-12 23:43:35 UTC +++ externals/nx_tzdb/tzdb_to_nx/externals/tz/tz/version @@ -0,0 +1 @@ +2022c --- externals/nx_tzdb/tzdb_to_nx/src/tzdb/CMakeLists.txt.orig 2024-02-10 22:27:31 UTC +++ externals/nx_tzdb/tzdb_to_nx/src/tzdb/CMakeLists.txt @@ -1,8 +1,3 @@ -find_program(GIT_PROGRAM git) -if (NOT GIT_PROGRAM) - message(FATAL_ERROR "git program not found") -endif() - find_program(GNU_DATE date) if (NOT GNU_DATE) message(FATAL_ERROR "date program not found") @@ -16,29 +11,7 @@ else() if (NOT "${TZDB2NX_VERSION}" STREQUAL "") set(TZDB_VERSION "${TZDB2NX_VERSION}\n") else() - execute_process( - COMMAND - ${GIT_PROGRAM} log --pretty=%at -n1 NEWS - OUTPUT_VARIABLE - TZ_COMMIT_TIME - WORKING_DIRECTORY - ${TZ_SOURCE_DIR} - COMMAND_ERROR_IS_FATAL ANY) - - string(REPLACE "\n" "" TZ_COMMIT_TIME "${TZ_COMMIT_TIME}") - - if (APPLE OR CMAKE_SYSTEM_NAME MATCHES "DragonFly|FreeBSD|NetBSD|OpenBSD") - set(VERSION_COMMAND ${GNU_DATE} -r ${TZ_COMMIT_TIME} +%y%m%d) - else () - set(VERSION_COMMAND ${GNU_DATE} +%y%m%d --date=@${TZ_COMMIT_TIME}) - endif () - - execute_process( - COMMAND - ${VERSION_COMMAND} - OUTPUT_VARIABLE - TZDB_VERSION - COMMAND_ERROR_IS_FATAL ANY) + set(TZDB_VERSION 230620) endif() set(NX_VERSION_FILE ${NX_TZDB_DIR}/version.txt)