Skip to content

Commit

Permalink
timewarrior: unbreak for systems with libstdc++
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jul 7, 2024
1 parent 100bfd4 commit 037cc67
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions office/timewarrior/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ checksums rmd160 1c972cebf524ef94800b4975478fbcd215e3123d\
sha256 5e0817fbf092beff12598537c894ec1f34b0a21019f5a3001fe4e6d15c11bd94\
size 3102854

# Hardcoding C++ runtime is either redundant or breaking.
patchfiles-append patch-fix-cxx.diff

# Required by the build:
compiler.cxx_standard 2017

post-destroot {
# Install bash completions
set bash_comp_path ${prefix}/share/bash-completion/completions
Expand Down
10 changes: 10 additions & 0 deletions office/timewarrior/files/patch-fix-cxx.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- cmake/CXXSniffer.cmake 2023-12-31 01:15:05.000000000 +0800
+++ cmake/CXXSniffer.cmake 2024-07-07 12:19:06.000000000 +0800
@@ -4,7 +4,6 @@
set (LINUX true)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set (DARWIN true)
- set (CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}")
elseif (${CMAKE_SYSTEM_NAME} MATCHES "kFreeBSD")
set (KFREEBSD true)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")

0 comments on commit 037cc67

Please sign in to comment.