diff --git a/math/xtensor/Makefile b/math/xtensor/Makefile index 54c40be2b54d..e9428ad75a03 100644 --- a/math/xtensor/Makefile +++ b/math/xtensor/Makefile @@ -1,35 +1,30 @@ PORTNAME= xtensor -DISTVERSION= 0.24.3 +DISTVERSION= 0.24.6 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Multi-dimensional arrays with broadcasting and lazy computing WWW= https://github.com/xtensor-stack/xtensor LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json \ xtl-quant-stack>0:devel/xtl-quant-stack RUN_DEPENDS= nlohmann-json>0:devel/nlohmann-json \ xtl-quant-stack>0:devel/xtl-quant-stack TEST_DEPENDS= nlohmann-json>0:devel/nlohmann-json \ xtl-quant-stack>0:devel/xtl-quant-stack \ doctest>0:devel/doctest \ googletest>0:devel/googletest -USES= cmake +USES= cmake:testing # 2 tests fail, see https://github.com/xtensor-stack/xtensor/issues/2722 USE_GITHUB= yes GH_ACCOUNT= xtensor-stack +CMAKE_TESTING_ON= BUILD_TESTS + NO_BUILD= yes NO_ARCH= yes -do-test: install # https://github.com/xtensor-stack/xtensor/issues/2466 - @${RLN} ${STAGEDIR}${PREFIX}/include ${WRKSRC}/test/staged-include - @cd ${WRKSRC}/test && \ - ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} . && \ - ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && \ - ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} xtest - .include diff --git a/math/xtensor/distinfo b/math/xtensor/distinfo index 40c73b506abc..60711daa94af 100644 --- a/math/xtensor/distinfo +++ b/math/xtensor/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1661721179 -SHA256 (xtensor-stack-xtensor-0.24.3_GH0.tar.gz) = 3acde856b9fb8cf4e2a7b66726da541275d40ab9b002e618ad985ab97f08ca4f -SIZE (xtensor-stack-xtensor-0.24.3_GH0.tar.gz) = 1193952 +TIMESTAMP = 1693200715 +SHA256 (xtensor-stack-xtensor-0.24.6_GH0.tar.gz) = f87259b51aabafdd1183947747edfff4cff75d55375334f2e81cee6dc68ef655 +SIZE (xtensor-stack-xtensor-0.24.6_GH0.tar.gz) = 1209533 diff --git a/math/xtensor/files/patch-test_CMakeLists.txt b/math/xtensor/files/patch-test_CMakeLists.txt index 8af92f7ff4c5..34e39d3fd070 100644 --- a/math/xtensor/files/patch-test_CMakeLists.txt +++ b/math/xtensor/files/patch-test_CMakeLists.txt @@ -1,38 +1,43 @@ ---- test/CMakeLists.txt.orig 2021-10-18 16:59:30 UTC +--- test/CMakeLists.txt.orig 2023-03-20 09:44:36 UTC +++ test/CMakeLists.txt -@@ -17,8 +17,8 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR +@@ -14,12 +14,13 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR enable_testing() - find_package(xtensor REQUIRED CONFIG) - set(XTENSOR_INCLUDE_DIR ${xtensor_INCLUDE_DIRS}) + #find_package(xtensor REQUIRED CONFIG) + #set(XTENSOR_INCLUDE_DIR ${xtensor_INCLUDE_DIRS}) endif () + find_package(doctest REQUIRED) + find_package(Threads) ++find_package(GTest) + if(NOT CMAKE_BUILD_TYPE) -@@ -272,7 +272,7 @@ foreach(filename IN LISTS COMMON_BASE XTENSOR_TESTS) + message(STATUS "Setting tests build type to Release") +@@ -273,7 +274,7 @@ foreach(filename IN LISTS COMMON_BASE XTENSOR_TESTS) target_compile_definitions(${targetname} PRIVATE XTENSOR_USE_OPENMP) endif() target_include_directories(${targetname} PRIVATE ${XTENSOR_INCLUDE_DIR}) - target_link_libraries(${targetname} PRIVATE xtensor doctest::doctest ${CMAKE_THREAD_LIBS_INIT}) + target_link_libraries(${targetname} PRIVATE doctest::doctest ${CMAKE_THREAD_LIBS_INIT}) add_custom_target( x${targetname} COMMAND ${targetname} -@@ -298,7 +298,7 @@ if(XTENSOR_USE_OPENMP) +@@ -299,7 +300,7 @@ if(XTENSOR_USE_OPENMP) endif() target_include_directories(test_xtensor_lib PRIVATE ${XTENSOR_INCLUDE_DIR}) -target_link_libraries(test_xtensor_lib PRIVATE xtensor doctest::doctest ${CMAKE_THREAD_LIBS_INIT}) +target_link_libraries(test_xtensor_lib PRIVATE doctest::doctest ${CMAKE_THREAD_LIBS_INIT}) add_custom_target(xtest COMMAND test_xtensor_lib DEPENDS test_xtensor_lib) add_test(NAME xtest COMMAND test_xtensor_lib) -@@ -309,5 +309,5 @@ add_test(NAME xtest COMMAND test_xtensor_lib) - add_library(test_xtensor_core_lib ${COMMON_BASE} ${TEST_HEADERS} ${XTENSOR_HEADERS}) +@@ -310,5 +311,5 @@ add_test(NAME xtest COMMAND test_xtensor_lib) + add_library(test_xtensor_core_lib STATIC ${COMMON_BASE} ${TEST_HEADERS} ${XTENSOR_HEADERS}) target_include_directories(test_xtensor_core_lib PRIVATE ${XTENSOR_INCLUDE_DIR}) -target_link_libraries(test_xtensor_core_lib PRIVATE xtensor doctest::doctest ${CMAKE_THREAD_LIBS_INIT}) +target_link_libraries(test_xtensor_core_lib PRIVATE GTest::GTest GTest::Main ${CMAKE_THREAD_LIBS_INIT}) add_custom_target(coverity COMMAND coverity_scan DEPENDS test_xtensor_core_lib) diff --git a/math/xtensor/pkg-plist b/math/xtensor/pkg-plist index 71a24dc42451..1675a78d7ed1 100644 --- a/math/xtensor/pkg-plist +++ b/math/xtensor/pkg-plist @@ -1,77 +1,77 @@ include/xtensor.hpp include/xtensor/xaccessible.hpp include/xtensor/xaccumulator.hpp include/xtensor/xadapt.hpp include/xtensor/xarray.hpp include/xtensor/xassign.hpp include/xtensor/xaxis_iterator.hpp include/xtensor/xaxis_slice_iterator.hpp include/xtensor/xblockwise_reducer.hpp include/xtensor/xblockwise_reducer_functors.hpp include/xtensor/xbroadcast.hpp include/xtensor/xbuffer_adaptor.hpp include/xtensor/xbuilder.hpp include/xtensor/xchunked_array.hpp include/xtensor/xchunked_assign.hpp include/xtensor/xchunked_view.hpp include/xtensor/xcomplex.hpp include/xtensor/xcontainer.hpp include/xtensor/xcsv.hpp include/xtensor/xdynamic_view.hpp include/xtensor/xeval.hpp include/xtensor/xexception.hpp include/xtensor/xexpression.hpp include/xtensor/xexpression_holder.hpp include/xtensor/xexpression_traits.hpp include/xtensor/xfixed.hpp include/xtensor/xfunction.hpp include/xtensor/xfunctor_view.hpp include/xtensor/xgenerator.hpp include/xtensor/xhistogram.hpp include/xtensor/xindex_view.hpp include/xtensor/xinfo.hpp include/xtensor/xio.hpp include/xtensor/xiterable.hpp include/xtensor/xiterator.hpp include/xtensor/xjson.hpp include/xtensor/xlayout.hpp include/xtensor/xmanipulation.hpp include/xtensor/xmasked_view.hpp include/xtensor/xmath.hpp include/xtensor/xmime.hpp include/xtensor/xmultiindex_iterator.hpp include/xtensor/xnoalias.hpp include/xtensor/xnorm.hpp include/xtensor/xnpy.hpp include/xtensor/xoffset_view.hpp include/xtensor/xoperation.hpp include/xtensor/xoptional.hpp include/xtensor/xoptional_assembly.hpp include/xtensor/xoptional_assembly_base.hpp include/xtensor/xoptional_assembly_storage.hpp include/xtensor/xpad.hpp include/xtensor/xrandom.hpp include/xtensor/xreducer.hpp include/xtensor/xrepeat.hpp include/xtensor/xscalar.hpp include/xtensor/xsemantic.hpp include/xtensor/xset_operation.hpp include/xtensor/xshape.hpp include/xtensor/xslice.hpp include/xtensor/xsort.hpp include/xtensor/xstorage.hpp include/xtensor/xstrided_view.hpp include/xtensor/xstrided_view_base.hpp include/xtensor/xstrides.hpp include/xtensor/xtensor.hpp include/xtensor/xtensor_config.hpp include/xtensor/xtensor_forward.hpp include/xtensor/xtensor_simd.hpp include/xtensor/xutils.hpp include/xtensor/xvectorize.hpp include/xtensor/xview.hpp include/xtensor/xview_utils.hpp -lib/cmake/xtensor/xtensorConfig.cmake -lib/cmake/xtensor/xtensorConfigVersion.cmake -lib/cmake/xtensor/xtensorTargets.cmake -libdata/pkgconfig/xtensor.pc +share/cmake/xtensor/xtensorConfig.cmake +share/cmake/xtensor/xtensorConfigVersion.cmake +share/cmake/xtensor/xtensorTargets.cmake +share/pkgconfig/xtensor.pc