Date: Tuesday, November 22, 2022 @ 22:31:44
  Author: svenstaro
Revision: 1351913

archrelease: copy trunk to community-x86_64

Added:
  uncertainty-framework/repos/community-x86_64/
  uncertainty-framework/repos/community-x86_64/PKGBUILD
    (from rev 1351911, uncertainty-framework/trunk/PKGBUILD)
  uncertainty-framework/repos/community-x86_64/ctest.patch
    (from rev 1351912, uncertainty-framework/trunk/ctest.patch)

-------------+
 PKGBUILD    |   51 +++++++++++++++++++++++++++++++++++++
 ctest.patch |   79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+)

Copied: uncertainty-framework/repos/community-x86_64/PKGBUILD (from rev 
1351911, uncertainty-framework/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2022-11-22 22:31:44 UTC (rev 1351913)
@@ -0,0 +1,51 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Contributor : bartus <arch-user-repoᘓbartus.33mail.com>
+_name=UncertaintyTE
+pkgname=uncertainty-framework
+pkgver=1.2.0
+pkgrel=5
+pkgdesc="Uncertainty estimation framework for a surface from motion dataset"
+arch=('x86_64')
+url="http://alicevision.github.io/";
+license=('MPL2')
+depends=('magma' 'ceres-solver')
+makedepends=('boost' 'cmake' 'ninja' 'git' 'gflags' 'cuda' 'pcre')
+source=("${_name}::git+https://github.com/alicevision/${_name}.git#commit=d995765";
+        "ctest.patch")
+sha256sums=('SKIP'
+            'abf50924a78ec9628212c5b7086592d302155cf50dcc6f4c49a92d57b9a3b020')
+
+prepare() {
+  cd ${srcdir}/${_name}
+  git apply -v ${srcdir}/ctest.patch
+}
+
+pkgver() {
+  grep -oP "VERSION \K.*(?=\))" <(pcregrep -Mo -e '(?s)^PROJECT.*?\)' 
${srcdir}/${_name}/CMakeLists.txt)
+}
+
+build() {
+  cd ${_name}
+  cmake \
+    -Bbuild \
+    -GNinja \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=None \
+    -DMAGMA_ROOT=/usr \
+    -DUNC_BUILD_TESTS=ON \
+    -DUNC_MKL_SUPPORT=ON
+  ninja -C build
+}
+
+
+package() {
+  cd ${_name}
+  DESTDIR=${pkgdir} ninja -C build install
+}
+
+check() {
+  cd ${_name}/build/src
+  ctest
+}
+
+# vim:set sw=2 ts=2 et:

Copied: uncertainty-framework/repos/community-x86_64/ctest.patch (from rev 
1351912, uncertainty-framework/trunk/ctest.patch)
===================================================================
--- community-x86_64/ctest.patch                                (rev 0)
+++ community-x86_64/ctest.patch        2022-11-22 22:31:44 UTC (rev 1351913)
@@ -0,0 +1,79 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 06636b3..d7bc1f3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -17,6 +17,31 @@ message(STATUS "CMAKE_CONFIGURATION_TYPES: 
${CMAKE_CONFIGURATION_TYPES}")
+ message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
+ message(STATUS "---------------------------------------------------------")
+ 
++
++# 
-----------------------------------------------------------------------------
++# UNIT TEST macro
++# 
-----------------------------------------------------------------------------
++macro(UNIT_TEST NAMESPACE NAME EXTRA_LIBS)
++  if(UNC_BUILD_TESTS)
++    add_executable(${NAMESPACE}_test_${NAME} ${NAME}_test.cpp)
++
++    set_property(TARGET ${NAMESPACE}_test_${NAME} PROPERTY FOLDER 
uncertaintyTE/test)
++
++    target_link_libraries(${NAMESPACE}_test_${NAME}
++                          ${EXTRA_LIBS} # Extra libs MUST be first.
++                          ${BOOST_LIBRARIES} uncertaintyTE)
++
++  target_include_directories(${NAMESPACE}_test_${NAME}
++        PUBLIC
++        .
++        ${INCLUDE_DIRS})
++
++    add_test(NAME ${NAMESPACE}_test_${NAME}
++       WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
++       COMMAND $<TARGET_FILE:${NAMESPACE}_test_${NAME}> --log_level=all)
++  endif()
++endmacro()
++
+ # Guard against in-source builds
+ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
+   message(FATAL_ERROR "In-source builds not allowed.")
+@@ -264,31 +289,6 @@ if(WIN32)
+   message("Please add the library path to your project (e.g. 'c:/Program 
Files 
(x86)/IntelSWTools/compilers_and_libraries_2017.4.210/windows/compiler/lib/intel64_win')")
+ endif()
+ 
+-
+-# 
-----------------------------------------------------------------------------
+-# UNIT TEST macro
+-# 
-----------------------------------------------------------------------------
+-macro(UNIT_TEST NAMESPACE NAME EXTRA_LIBS)
+-  if(UNC_BUILD_TESTS)
+-    add_executable(${NAMESPACE}_test_${NAME} ${NAME}_test.cpp)
+-
+-    set_property(TARGET ${NAMESPACE}_test_${NAME} PROPERTY FOLDER 
uncertaintyTE/test)
+-
+-    target_link_libraries(${NAMESPACE}_test_${NAME}
+-                          ${EXTRA_LIBS} # Extra libs MUST be first.
+-                          ${BOOST_LIBRARIES} uncertainty_shared)
+-
+-  target_include_directories(${NAMESPACE}_test_${NAME}
+-        PUBLIC
+-        .
+-        ${INCLUDE_DIRS})
+-
+-    add_test(NAME ${NAMESPACE}_test_${NAME}
+-       WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
+-       COMMAND $<TARGET_file:${NAMESPACE}_test_${NAME}> --log_level=all)
+-  endif()
+-endmacro()
+-
+ # 
-----------------------------------------------------------------------------
+ # STATUS
+ # 
-----------------------------------------------------------------------------
+diff --git a/src/test_eigValues/CMakeLists.txt 
b/src/test_eigValues/CMakeLists.txt
+index 79f39c7..8a3c5b6 100644
+--- a/src/test_eigValues/CMakeLists.txt
++++ b/src/test_eigValues/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ # Add unit test
+ if(UNC_BUILD_TESTS)
+     # List of unit tests
+-    UNIT_TEST(cov covarianceEigenValues uncertainty)
++    UNIT_TEST(cov covarianceEigenValues uncertaintyTE)
+ ENDIF()

Reply via email to