<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bc6670c0cf7ad7989847f94b5bc81094f7466432">https://github.com/macports/macports-ports/commit/bc6670c0cf7ad7989847f94b5bc81094f7466432</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit bc6670c0cf7ad7989847f94b5bc81094f7466432
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Sat Apr 22 22:51:10 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> opencolorio: update to 2.2.0; default +python311
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/61998
</span>---
graphics/opencolorio/Portfile | 78 ++++++++++++++++++++++++++++++++-----------
1 file changed, 59 insertions(+), 19 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/opencolorio/Portfile b/graphics/opencolorio/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 06fe428fa8e..33f177209bd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/opencolorio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/opencolorio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,8 +7,7 @@ PortGroup boost 1.0
</span>
boost.depends_type build
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup AcademySoftwareFoundation OpenColorIO 1.1.1 v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup AcademySoftwareFoundation OpenColorIO 2.2.0 v
</span> name opencolorio
categories graphics
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,22 +21,36 @@ long_description OpenColorIO (OCIO) is a complete color management solution \
</span>
# please remove "stealth update" workaround on next version update
dist_subdir ${name}/${version}_1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 81534822cb8350e1b7ba171c91226de996494d02 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 b7def3b5383c9b35dc9c0bdd26da74e2199c2b283d52bb84847aa307f70a0bc4 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 13830493
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 3f2ab794c6f4df2e8cec24f8d04478f2fe590c73 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 646171b8c9d3941da2bf59fcab99f979626f908b6c6fa4d8fe95bda9eec0407b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 11314927
</span>
# Exclude pre-releases from livecheck
github.livecheck.regex {([0-9.]+)}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# see https://github.com/imageworks/OpenColorIO/commit/c43cc918c3e79e324f11ca47e95bfe36e9e0dd15
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append patch-upstream.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_CONFIGURATION_TYPES=MacPorts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# pin the used version for macOS before 10.13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 18} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup AcademySoftwareFoundation OpenColorIO 1.1.1 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 81534822cb8350e1b7ba171c91226de996494d02 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 b7def3b5383c9b35dc9c0bdd26da74e2199c2b283d52bb84847aa307f70a0bc4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 13830493
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# see https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/opencolorio/files/opencolorio-1.1.0-yaml-cpp-0.6.patch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append patch-yaml-cpp.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see https://github.com/imageworks/OpenColorIO/commit/c43cc918c3e79e324f11ca47e95bfe36e9e0dd15
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-upstream.diff
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append patch-yaml-cpp-0.7.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/opencolorio/files/opencolorio-1.1.0-yaml-cpp-0.6.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-yaml-cpp.diff
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-yaml-cpp-0.7.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
# source assumes C++11 compiler
compiler.cxx_standard 2011
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -68,7 +81,7 @@ configure.args-append \
</span> # OpenColorIO intentially installs Python module in lib
# see https://github.com/imageworks/OpenColorIO/blob/15e96c1f579d3640947a5fcb5ec831383cc3956e/src/pyglue/CMakeLists.txt#L85
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python27 description {Build the Python 2.7 bindings} conflicts python36 python37 python38 python39 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python27 description {Build the Python 2.7 bindings} conflicts python36 python37 python38 python39 python310 python311 {
</span> depends_lib-append port:python27
configure.args-append \
-DPYTHON=${prefix}/bin/python2.7
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -81,7 +94,7 @@ variant python27 description {Build the Python 2.7 bindings} conflicts python36
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python36 description {Build the Python 3.6 bindings} conflicts python27 python37 python38 python39 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python36 description {Build the Python 3.6 bindings} conflicts python27 python37 python38 python39 python310 python311 {
</span> depends_lib-append port:python36
configure.args-append \
-DPYTHON=${prefix}/bin/python3.6
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -94,7 +107,7 @@ variant python36 description {Build the Python 3.6 bindings} conflicts python27
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python37 description {Build the Python 3.7 bindings} conflicts python27 python36 python38 python39 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python37 description {Build the Python 3.7 bindings} conflicts python27 python36 python38 python39 python310 python311 {
</span> depends_lib-append port:python37
configure.args-append \
-DPYTHON=${prefix}/bin/python3.7
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -107,7 +120,7 @@ variant python37 description {Build the Python 3.7 bindings} conflicts python27
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python38 description {Build the Python 3.8 bindings} conflicts python27 python36 python37 python39 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python38 description {Build the Python 3.8 bindings} conflicts python27 python36 python37 python39 python310 python311 {
</span> depends_lib-append port:python38
configure.args-append \
-DPYTHON=${prefix}/bin/python3.8
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -120,7 +133,7 @@ variant python38 description {Build the Python 3.8 bindings} conflicts python27
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python39 description {Build the Python 3.9 bindings} conflicts python27 python36 python37 python38 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python39 description {Build the Python 3.9 bindings} conflicts python27 python36 python37 python38 python310 python311 {
</span> depends_lib-append port:python39
configure.args-append \
-DPYTHON=${prefix}/bin/python3.9
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -133,11 +146,38 @@ variant python39 description {Build the Python 3.9 bindings} conflicts python27
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset python27] && ![variant_isset python36] && ![variant_isset python37] && ![variant_isset python38] && ![variant_isset python39]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants +python39
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python310 description {Build the Python 3.10 bindings} conflicts python27 python36 python37 python38 python39 python311 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:python310
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON=${prefix}/bin/python3.10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${frameworks_dir}/Python.framework/Versions/3.10/lib/python3.10/site-packages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/lib/python3.9/site-packages/PyOpenColorIO.so \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${frameworks_dir}/Python.framework/Versions/3.10/lib/python3.10/site-packages/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python311 description {Build the Python 3.11 bindings} conflicts python27 python36 python37 python38 python39 python310 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:python311
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON=${prefix}/bin/python3.11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${frameworks_dir}/Python.framework/Versions/3.11/lib/python3.11/site-packages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/lib/python3.9/site-packages/PyOpenColorIO.so \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${frameworks_dir}/Python.framework/Versions/3.11/lib/python3.11/site-packages/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset python27] && ![variant_isset python36] && ![variant_isset python37] && ![variant_isset python38] && ![variant_isset python39] && ![variant_isset python310] && ![variant_isset python311]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +python311
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset python27] && ![variant_isset python36] && ![variant_isset python37] && ![variant_isset python38] && ![variant_isset python39]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset python27] && ![variant_isset python36] && ![variant_isset python37] && ![variant_isset python38] && ![variant_isset python39] && ![variant_isset python310] && ![variant_isset python311]} {
</span> configure.args-append \
-DOCIO_BUILD_PYGLUE=OFF
}
</pre><pre style='margin:0'>
</pre>