git: 7981412b9959 - main - math/Imath: update to 3.1.4 (bug/doc fixes)

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Thu, 27 Jan 2022 01:52:38 UTC
The branch main has been updated by mandree:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7981412b9959044d16e9501fb1554c383d86d891

commit 7981412b9959044d16e9501fb1554c383d86d891
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2022-01-27 00:58:51 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2022-01-27 01:52:22 +0000

    math/Imath: update to 3.1.4 (bug/doc fixes)
    
    ChangeLog:
    https://github.com/AcademySoftwareFoundation/Imath/releases/tag/v3.1.4
    
    MFH:    2022Q1
---
 math/Imath/Makefile  | 8 ++++++--
 math/Imath/distinfo  | 6 +++---
 math/Imath/pkg-plist | 2 --
 3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/math/Imath/Makefile b/math/Imath/Makefile
index b4348fd7bd11..92f5a6a6b6ef 100644
--- a/math/Imath/Makefile
+++ b/math/Imath/Makefile
@@ -1,7 +1,7 @@
 # Based on the graphics/ilmbase port that was done by: nork@FreeBSD.org
 
 PORTNAME=	Imath
-PORTVERSION=	3.1.3
+PORTVERSION=	3.1.4
 CATEGORIES=	math devel graphics
 
 MAINTAINER=	mandree@FreeBSD.org
@@ -41,9 +41,13 @@ PYTHON_CMAKE_BOOL=	PYTHON
 
 _MAJORVER=	3_1
 _VER=		29
-_MINVER=	2
+_MINVER=	3
 _PLVER=		0
 
+post-patch:
+	${REINPLACE_CMD} -E 's/find_package\(Python(3?) COMPONENTS/find_package(Python\1 ${PYTHON_VER} EXACT COMPONENTS/' \
+		${WRKSRC}/src/python/CMakeLists.txt
+
 post-install:
 .for l in libImath
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${l}-${_MAJORVER}.so
diff --git a/math/Imath/distinfo b/math/Imath/distinfo
index 722b31a5a388..40e316fa9815 100644
--- a/math/Imath/distinfo
+++ b/math/Imath/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1630628925
-SHA256 (AcademySoftwareFoundation-Imath-3.1.3-v3.1.3_GH0.tar.gz) = 0bf7ec51162c4d17a4c5b850fb3f6f7a195cff9fa71f4da7735f74d7b5124320
-SIZE (AcademySoftwareFoundation-Imath-3.1.3-v3.1.3_GH0.tar.gz) = 570840
+TIMESTAMP = 1643242766
+SHA256 (AcademySoftwareFoundation-Imath-3.1.4-v3.1.4_GH0.tar.gz) = fcca5fbb37d375a252bacd8a29935569bdc28b888f01ef1d9299ca0c9e87c17a
+SIZE (AcademySoftwareFoundation-Imath-3.1.4-v3.1.4_GH0.tar.gz) = 572214
diff --git a/math/Imath/pkg-plist b/math/Imath/pkg-plist
index 1d659bd820a1..04ff9e1bd567 100644
--- a/math/Imath/pkg-plist
+++ b/math/Imath/pkg-plist
@@ -64,7 +64,6 @@ libdata/pkgconfig/Imath.pc
 %%PYTHON%%include/Imath/PyImathFrustum.h
 %%PYTHON%%include/Imath/PyImathFun.h
 %%PYTHON%%include/Imath/PyImathLine.h
-%%PYTHON%%include/Imath/PyImathM44Array.h
 %%PYTHON%%include/Imath/PyImathMathExc.h
 %%PYTHON%%include/Imath/PyImathMatrix.h
 %%PYTHON%%include/Imath/PyImathOperators.h
@@ -85,7 +84,6 @@ libdata/pkgconfig/Imath.pc
 %%PYTHON%%include/Imath/PyImathVec4ArrayImpl.h
 %%PYTHON%%include/Imath/PyImathVec4Impl.h
 %%PYTHON%%include/Imath/PyImathVecOperators.h
-%%PYTHON%%lib/cmake/Imath/ImathConfig-%%CMAKE_BUILD_TYPE%%.cmake
 %%PYTHON%%lib/libPyImath_Python%%PYVER%%-%%MAJORVER%%.so
 %%PYTHON%%lib/libPyImath_Python%%PYVER%%-%%MAJORVER%%.so.%%VER%%
 %%PYTHON%%lib/libPyImath_Python%%PYVER%%-%%MAJORVER%%.so.%%VER%%.%%MINVER%%.%%PLVER%%