<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a3e4acbedb83675feb8456b5de8ba589f3c8af8b">https://github.com/macports/macports-ports/commit/a3e4acbedb83675feb8456b5de8ba589f3c8af8b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a3e4acbedb83675feb8456b5de8ba589f3c8af8b
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sat Apr 17 10:44:02 2021 -0700

<span style='display:block; white-space:pre;color:#404040;'>    opencolorio: add variants for Python 3.8 and 3.9
</span>---
 graphics/opencolorio/Portfile | 36 +++++++++++++++++++++++++++++++-----
 1 file changed, 31 insertions(+), 5 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 80d0f7e4e31..439e2b77110 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;'>@@ -65,7 +65,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 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python27 description {Build the Python 2.7 bindings} conflicts python36 python37 python38 python39 {
</span>     depends_lib-append port:python27
     configure.args-append \
         -DPYTHON=${prefix}/bin/python2.7
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -78,7 +78,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 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python36 description {Build the Python 3.6 bindings} conflicts python27 python37 python38 python39 {
</span>     depends_lib-append port:python36
     configure.args-append \
         -DPYTHON=${prefix}/bin/python3.6
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -91,7 +91,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 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python37 description {Build the Python 3.7 bindings} conflicts python27 python36 python38 python39 {
</span>     depends_lib-append port:python37
     configure.args-append \
         -DPYTHON=${prefix}/bin/python3.7
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -104,12 +104,38 @@ variant python37 description {Build the Python 3.7 bindings} conflicts python27
</span>     }
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset python27] && ![variant_isset python36] && ![variant_isset python37]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python38 description {Build the Python 3.8 bindings} conflicts python27 python36 python37 python39 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    depends_lib-append port:python38
</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.8
</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.8/lib/python3.8/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.8/site-packages/PyOpenColorIO.so \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ${destroot}${frameworks_dir}/Python.framework/Versions/3.8/lib/python3.8/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;'>+variant python39 description {Build the Python 3.9 bindings} conflicts python27 python36 python37 python38 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    depends_lib-append port:python39
</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.9
</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.9/lib/python3.9/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.9/lib/python3.9/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]} {
</span>     configure.args-append \
         -DOCIO_BUILD_PYGLUE=OFF
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset python36] && ![variant_isset python37]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset python36] && ![variant_isset python37] && ![variant_isset python38] && ![variant_isset python39]} {
</span>     default_variants +python27
 }
 
</pre><pre style='margin:0'>

</pre>