~cypheon/pkgsrc-wip

pkgsrc-wip/navit-git/patches/patch-cmake_version.cmake -rw-r--r-- 574 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD$

BSD date command needs the format to be the last argument

--- cmake/version.cmake.orig	2018-07-27 12:25:45.178978299 +0000
+++ cmake/version.cmake
@@ -39,7 +39,7 @@ string(REGEX MATCH "^[0-9]+" VERSION_NUM
 set(VERSION ${GIT_OUTPUT_HASH})
 
 EXECUTE_PROCESS(
-   COMMAND ${DATE_EXECUTABLE} "+%y%m%d%H%M" "-d \@${VERSION_NUM}" # output as unix timestamp
+   COMMAND ${DATE_EXECUTABLE} "-d \@${VERSION_NUM}" "+%y%m%d%H%M" # output as unix timestamp
    WORKING_DIRECTORY "${SOURCE_DIR}"
    OUTPUT_VARIABLE DATE_CONVERT_OUTPUT
    ERROR_VARIABLE DATE_CONVERT_ERROR