git: 890c16ad1b93 - main - math/py-heyoka: Unbreak build

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 28 Jul 2022 02:56:11 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=890c16ad1b93112a9237b680ee0191913700a03d

commit 890c16ad1b93112a9237b680ee0191913700a03d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-28 02:55:44 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-28 02:56:08 +0000

    math/py-heyoka: Unbreak build
---
 math/py-heyoka/files/patch-CMakeLists.txt  |  6 +++---
 math/py-heyoka/files/patch-heyoka_core.cpp | 10 ++++++++++
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/math/py-heyoka/files/patch-CMakeLists.txt b/math/py-heyoka/files/patch-CMakeLists.txt
index 50838865725d..69e357ccfe68 100644
--- a/math/py-heyoka/files/patch-CMakeLists.txt
+++ b/math/py-heyoka/files/patch-CMakeLists.txt
@@ -1,6 +1,6 @@
---- CMakeLists.txt.orig	2021-08-03 13:38:33 UTC
+--- CMakeLists.txt.orig	2022-05-11 09:27:30 UTC
 +++ CMakeLists.txt
-@@ -123,7 +123,7 @@ if(${heyoka_VERSION} VERSION_LESS ${_HEYOKA_PY_MIN_HEY
+@@ -136,7 +136,7 @@ if(${heyoka_VERSION} VERSION_LESS ${_HEYOKA_PY_MIN_HEY
  endif()
  
  # Python.
@@ -8,4 +8,4 @@
 +find_package(Python3 ${FREEBSD_PYTHON_DISTVERSION} REQUIRED EXACT COMPONENTS Interpreter Development)
  message(STATUS "Python3 interpreter: ${Python3_EXECUTABLE}")
  message(STATUS "Python3 installation directory: ${Python3_SITEARCH}")
- set(HEYOKA_PY_INSTALL_PATH "" CACHE STRING "heyoka module installation path")
+ if(${Python3_VERSION_MINOR} LESS 5)
diff --git a/math/py-heyoka/files/patch-heyoka_core.cpp b/math/py-heyoka/files/patch-heyoka_core.cpp
new file mode 100644
index 000000000000..71a64aed3772
--- /dev/null
+++ b/math/py-heyoka/files/patch-heyoka_core.cpp
@@ -0,0 +1,10 @@
+--- heyoka/core.cpp.orig	2022-07-28 02:38:59 UTC
++++ heyoka/core.cpp
+@@ -14,6 +14,7 @@
+ #include <exception>
+ #include <functional>
+ #include <initializer_list>
++#include <iostream>
+ #include <optional>
+ #include <sstream>
+ #include <string>