<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8ae8f1e61530465838caf7132848ff3e365b4325">https://github.com/macports/macports-ports/commit/8ae8f1e61530465838caf7132848ff3e365b4325</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8ae8f1e61530465838caf7132848ff3e365b4325
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Thu Apr 18 06:27:57 2024 +1000
<span style='display:block; white-space:pre;color:#404040;'> opensubdiv: use a specific python for docutils
</span>---
graphics/opensubdiv/Portfile | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/opensubdiv/Portfile b/graphics/opensubdiv/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e0908cdd2ab..9257d9c01ad 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/opensubdiv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/opensubdiv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,7 +9,6 @@ revision 2
</span> name opensubdiv
version [string map {_ .} ${github.version}]
categories graphics
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> license Apache-2
maintainers @jasonliu-- openmaintainer
homepage http://graphics.pixar.com/opensubdiv
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,10 +25,13 @@ checksums rmd160 63e8288300b940f8c3d66ba1c70387d4d61b957c \
</span> sha256 f15f443efcdf1a04668ddbc375f999623cb9766f394558e271a5341c55d2f4e5 \
size 39233132
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set pythonvers 3.12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set pythonvers_nodot [string map {. ""} $pythonvers]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build-append \
path:bin/doxygen:doxygen \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py-docutils \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py-pygments \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${pythonvers_nodot}-docutils \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${pythonvers_nodot}-pygments \
</span> path:bin/dot:graphviz
depends_lib-append port:tbb \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -54,15 +56,8 @@ post-patch {
</span> ${worksrcpath}/opensubdiv/CMakeLists.txt
# Make it so that OpenSubdiv is able to find MacPorts' Docutils.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![file exists ${prefix}/bin/rst2html.py]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set files [glob -directory ${prefix}/bin "rst2html-*.py"]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach f $files {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[regexp {rst2html-.*\.py} $f result]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|rst2html.py|${result}|g" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/cmake/FindDocutils.cmake
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|rst2html.py|rst2html-${pythonvers}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/cmake/FindDocutils.cmake
</span> # Set a project name, otherwise Doxygen will generate
# documentation with a project name of "My Project".
reinplace -E "s|^\(PROJECT_NAME.*\)$|\\1 OpenSubdiv|" \
</pre><pre style='margin:0'>
</pre>