git: d038b32dc736 - main - graphics/openexr: bug fix update to 3.1.2

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Mon, 18 Oct 2021 19:51:17 UTC
The branch main has been updated by mandree:

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

commit d038b32dc736dc1f40edf3660b5b7dfd5d1ccbb1
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2021-10-17 09:28:15 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2021-10-18 19:51:03 +0000

    graphics/openexr: bug fix update to 3.1.2
    
    Documentation now also available through
    https://openexr.readthedocs.io/
    
    Release Notes:
    https://github.com/AcademySoftwareFoundation/openexr/releases/tag/v3.1.2
    
    Detailed ChangeLog:
    https://github.com/AcademySoftwareFoundation/openexr/blob/v3.1.2/CHANGES.md#version-312-october-4-2021
    
    Now requires py-breathe, Sphinx, and Doxygen, to build documentation.
---
 graphics/openexr/Makefile | 12 ++++++------
 graphics/openexr/distinfo |  6 +++---
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/graphics/openexr/Makefile b/graphics/openexr/Makefile
index fd0375aa86a9..0944eb2b576b 100644
--- a/graphics/openexr/Makefile
+++ b/graphics/openexr/Makefile
@@ -1,7 +1,7 @@
 # Created by: nork@FreeBSD.org
 
 PORTNAME=	openexr
-PORTVERSION=	3.1.1
+PORTVERSION=	3.1.2
 CATEGORIES=	graphics devel
 
 MAINTAINER=	mandree@FreeBSD.org
@@ -27,7 +27,7 @@ PATCH_STRIP=	-p0
 
 _MAJORVER=	3_1
 _VER=		30
-_MINVER=	1
+_MINVER=	2
 _PLVER=		0
 
 PLIST_SUB+=	MAJORVER=${_MAJORVER} \
@@ -40,12 +40,12 @@ PORTEXAMPLES=	*
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 OPTIONS_SUB=	yes
+DOCS_CMAKE_BOOL=DOCS
+DOCS_BUILD_DEPENDS=breathe-apidoc:devel/py-breathe
 
 _DOCSRCDIR1=	${WRKSRC}
-_DOCSRCDIR2=	${WRKSRC}/docs
 _DOC_FILES1=	CHANGES.md CONTRIBUTING.md GOVERNANCE.md LICENSE.md SECURITY.md \
 		CODE_OF_CONDUCT.md CONTRIBUTORS.md README.md
-_DOC_FILES2=	*.odt *.pdf
 
 # too many reports about compilation failures, so
 # sanity check we are using the same C++ standard library
@@ -61,10 +61,10 @@ pre-configure:
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${_DOC_FILES1:S|^|${_DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${_DOC_FILES2:S|^|${_DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR}
+	( cd ${BUILD_WRKSRC}/docs/sphinx && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} )
+	${RM} -r ${STAGEDIR}${DOCSDIR}/.??* ${STAGEDIR}${DOCSDIR}/../OpenEXR/sphinx
 
 post-install-DOCS-off:
-	${RM} ${STAGEDIR}${DOCSDIR:H}/OpenEXR/*.pdf
 	@${RMDIR} ${STAGEDIR}${PREFIX}/share/doc/${PORTNAME} 2>/dev/null || :
 
 post-install-EXAMPLES-on:
diff --git a/graphics/openexr/distinfo b/graphics/openexr/distinfo
index d9698bfe23b0..3c0b8d97b03f 100644
--- a/graphics/openexr/distinfo
+++ b/graphics/openexr/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1627995398
-SHA256 (AcademySoftwareFoundation-openexr-3.1.1-v3.1.1_GH0.tar.gz) = 045254e201c0f87d1d1a4b2b5815c4ae54845af2e6ec0ab88e979b5fdb30a86e
-SIZE (AcademySoftwareFoundation-openexr-3.1.1-v3.1.1_GH0.tar.gz) = 25588029
+TIMESTAMP = 1634462340
+SHA256 (AcademySoftwareFoundation-openexr-3.1.2-v3.1.2_GH0.tar.gz) = f5c8f148e8f972e76b47e802aada1c59ef1837f0a9259c6677756e7cd347640f
+SIZE (AcademySoftwareFoundation-openexr-3.1.2-v3.1.2_GH0.tar.gz) = 20315253