git: 6b8f1d0f614e - main - misc/quantum++: update 5.0 → 5.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 Mar 2024 23:19:19 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6b8f1d0f614ec3c59704b41df912a6c04ce263a2
commit 6b8f1d0f614ec3c59704b41df912a6c04ce263a2
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-03-04 14:01:59 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-03-04 23:19:08 +0000
misc/quantum++: update 5.0 → 5.1
Reported by: portscout
---
misc/quantum++/Makefile | 7 ++++---
misc/quantum++/distinfo | 6 +++---
misc/quantum++/files/patch-unit__tests_CMakeLists.txt | 11 +++++++++++
misc/quantum++/pkg-plist | 12 ++++++++++--
4 files changed, 28 insertions(+), 8 deletions(-)
diff --git a/misc/quantum++/Makefile b/misc/quantum++/Makefile
index e5ee0c27952f..f8d668a68f01 100644
--- a/misc/quantum++/Makefile
+++ b/misc/quantum++/Makefile
@@ -1,6 +1,6 @@
PORTNAME= quantum++
DISTVERSIONPREFIX= v
-DISTVERSION= 5.0
+DISTVERSION= 5.1
CATEGORIES= misc devel
MAINTAINER= yuri@FreeBSD.org
@@ -10,13 +10,14 @@ WWW= https://github.com/softwareQinc/qpp
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= cmake:testing compiler:c++17-lang eigen:3,build,run
+TEST_DEPENDS= googletest>0:devel/googletest
+
+USES= cmake:testing compiler:c++17-lang eigen:3,build,run localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= softwareQinc
GH_PROJECT= qpp
-CMAKE_TESTING_ON= WITH_UNIT_TESTS
CMAKE_TESTING_TARGET= unit_tests
NO_BUILD= yes
diff --git a/misc/quantum++/distinfo b/misc/quantum++/distinfo
index b5834c6623e6..5612644d3d2c 100644
--- a/misc/quantum++/distinfo
+++ b/misc/quantum++/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1704959609
-SHA256 (softwareQinc-qpp-v5.0_GH0.tar.gz) = cbff36004a94d16296493460aa977f1274cc23597f4ba72386ece15ae95a8e8d
-SIZE (softwareQinc-qpp-v5.0_GH0.tar.gz) = 5719164
+TIMESTAMP = 1709581435
+SHA256 (softwareQinc-qpp-v5.1_GH0.tar.gz) = ba7bb00c654e244af6f3b6d115a417688b21a5fa63e20203a7cd3ad9349cfecf
+SIZE (softwareQinc-qpp-v5.1_GH0.tar.gz) = 4700535
diff --git a/misc/quantum++/files/patch-unit__tests_CMakeLists.txt b/misc/quantum++/files/patch-unit__tests_CMakeLists.txt
new file mode 100644
index 000000000000..0b31beee6b20
--- /dev/null
+++ b/misc/quantum++/files/patch-unit__tests_CMakeLists.txt
@@ -0,0 +1,11 @@
+-- workaround for https://github.com/softwareQinc/qpp/issues/171
+
+--- unit_tests/CMakeLists.txt.orig 2024-03-04 21:51:04 UTC
++++ unit_tests/CMakeLists.txt
+@@ -40,5 +40,5 @@ endforeach()
+ target_sources(${TARGET_NAME} PUBLIC ${file})
+ endforeach()
+
+-target_link_libraries(${TARGET_NAME} PUBLIC ${QPP_LINK_DEPS} gmock libqpp)
++target_link_libraries(${TARGET_NAME} PUBLIC ${QPP_LINK_DEPS} gtest gmock libqpp)
+ gtest_discover_tests(${TARGET_NAME})
diff --git a/misc/quantum++/pkg-plist b/misc/quantum++/pkg-plist
index 1b1c38a426b4..50416f420f24 100644
--- a/misc/quantum++/pkg-plist
+++ b/misc/quantum++/pkg-plist
@@ -19,15 +19,21 @@ include/qpp/qasmtools/tools/ast_printer.hpp
include/qpp/qasmtools/utils/angle.hpp
include/qpp/qasmtools/utils/templates.hpp
include/qpp/qpp/MATLAB/matlab.hpp
-include/qpp/qpp/classes/circuits/circuits.hpp
-include/qpp/qpp/classes/circuits/engines.hpp
include/qpp/qpp/classes/codes.hpp
include/qpp/qpp/classes/exception.hpp
include/qpp/qpp/classes/gates.hpp
include/qpp/qpp/classes/idisplay.hpp
+include/qpp/qpp/classes/ijson.hpp
include/qpp/qpp/classes/init.hpp
include/qpp/qpp/classes/layouts.hpp
include/qpp/qpp/classes/noise.hpp
+include/qpp/qpp/classes/qbase_engine.hpp
+include/qpp/qpp/classes/qcircuit.hpp
+include/qpp/qpp/classes/qcircuit_traits.hpp
+include/qpp/qpp/classes/qdummy_engine.hpp
+include/qpp/qpp/classes/qengine.hpp
+include/qpp/qpp/classes/qengine_traits.hpp
+include/qpp/qpp/classes/qnoisy_engine.hpp
include/qpp/qpp/classes/random_devices.hpp
include/qpp/qpp/classes/reversible.hpp
include/qpp/qpp/classes/states.hpp
@@ -52,5 +58,7 @@ include/qpp/qpp/statistics.hpp
include/qpp/qpp/traits.hpp
include/qpp/qpp/types.hpp
lib/cmake/qpp/qppConfig.cmake
+lib/cmake/qpp/qpp_MATLAB.cmake
lib/cmake/qpp/qpp_dependencies.cmake
+lib/cmake/qpp/qpp_eigen3.cmake
lib/cmake/qpp/qpp_targets.cmake