Skip to content

Commit

Permalink
devel/doctest: update 2.4.8 → 2.4.11
Browse files Browse the repository at this point in the history
PR:		270694
Approved by:	nickblack@linux.com (maintainer)
  • Loading branch information
yurivict committed Nov 9, 2023
1 parent fcc1207 commit 110276e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
9 changes: 7 additions & 2 deletions devel/doctest/Makefile
@@ -1,6 +1,6 @@
PORTNAME= doctest
DISTVERSIONPREFIX= v
DISTVERSION= 2.4.8
DISTVERSION= 2.4.11
CATEGORIES= devel

MAINTAINER= nickblack@linux.com
Expand All @@ -10,16 +10,21 @@ WWW= https://github.com/onqtam/doctest
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt

USES= compiler:c++17-lang cmake
USES= cmake:testing compiler:c++17-lang
USE_GITHUB= yes
GH_ACCOUNT= doctest

CMAKE_OFF= DOCTEST_WITH_TESTS DOCTEST_WITH_MAIN_IN_STATIC_LIB
CMAKE_TESTING_ON= DOCTEST_WITH_TESTS # tests fail to compile, see https://github.com/doctest/doctest/issues/765

NO_ARCH= yes
NO_BUILD= yes

PLIST_FILES= include/doctest/doctest.h \
include/doctest/extensions/doctest_mpi.h \
include/doctest/extensions/doctest_util.h \
include/doctest/extensions/mpi_reporter.h \
include/doctest/extensions/mpi_sub_comm.h \
lib/cmake/doctest/doctest.cmake \
lib/cmake/doctest/doctestAddTests.cmake \
lib/cmake/doctest/doctestConfig.cmake \
Expand Down
6 changes: 3 additions & 3 deletions devel/doctest/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1642587207
SHA256 (doctest-doctest-v2.4.8_GH0.tar.gz) = f52763630aa17bd9772b54e14b6cdd632c87adf0169455a86a49bd94abf2cd83
SIZE (doctest-doctest-v2.4.8_GH0.tar.gz) = 2275833
TIMESTAMP = 1680910110
SHA256 (doctest-doctest-v2.4.11_GH0.tar.gz) = 632ed2c05a7f53fa961381497bf8069093f0d6628c5f26286161fbd32a560186
SIZE (doctest-doctest-v2.4.11_GH0.tar.gz) = 2183312
13 changes: 13 additions & 0 deletions devel/doctest/files/patch-scripts_cmake_common.cmake
@@ -0,0 +1,13 @@
- workaround for https://github.com/doctest/doctest/issues/828

--- scripts/cmake/common.cmake.orig 2023-11-09 05:34:19 UTC
+++ scripts/cmake/common.cmake
@@ -79,7 +79,7 @@ macro(add_compiler_flags)
endmacro()

if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
- add_compiler_flags(-Werror)
+ #add_compiler_flags(-Werror)
add_compiler_flags(-fstrict-aliasing)

# The following options are not valid when clang-cl is used.

0 comments on commit 110276e

Please sign in to comment.