<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e3e3dc27f1c3dcbdd46d484f2e0a93b127daf856">https://github.com/macports/macports-ports/commit/e3e3dc27f1c3dcbdd46d484f2e0a93b127daf856</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new e3e3dc27f1c whitebox-tools: add plugins
</span>e3e3dc27f1c is described below

<span style='display:block; white-space:pre;color:#808000;'>commit e3e3dc27f1c3dcbdd46d484f2e0a93b127daf856
</span>Author: Matthew Hollingworth <mdholling@gmail.com>
AuthorDate: Thu Jan 19 08:46:56 2023 +1100

<span style='display:block; white-space:pre;color:#404040;'>    whitebox-tools: add plugins
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    * whitebox-tools plugins were previously not installed
</span><span style='display:block; white-space:pre;color:#404040;'>    * now we install the plugin executables to usr/libexec
</span><span style='display:block; white-space:pre;color:#404040;'>    * small patch needed so the plugins folder can be found
</span>---
 gis/whitebox-tools/Portfile                    | 14 +++++++++++---
 gis/whitebox-tools/files/get_plugin_list.patch | 12 ++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/whitebox-tools/Portfile b/gis/whitebox-tools/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 599fccfcfd1..b106cebb2b9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gis/whitebox-tools/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/whitebox-tools/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup           github 1.0
</span> PortGroup           cargo 1.0
 
 github.setup        jblindsay whitebox-tools 2.2.0 v
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> categories          gis
 platforms           darwin
 maintainers         {@mholling gmail.com:mdholling} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,6 +15,8 @@ long_description    {*}${description}
</span> homepage            https://jblindsay.github.io/ghrg/WhiteboxTools/index.html
 license             MIT
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          get_plugin_list.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> checksums           ${distname}${extract.suffix} \
                     rmd160  9ac3e53c91ac3d72e69a035201ebd1644b9f4efb \
                     sha256  e38c9b095397c2e6980d2d39a1e128bfb2f5a1d7b8b9c2c3e5a21e0f1bb6a07f \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -139,7 +141,13 @@ cargo.crates \
</span>     zip                              0.3.3  77ce0ceee93c995954a31f77903925a6a8bb094709445238e344f2107910e29e
 
 destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    xinstall -m 755 ${worksrcpath}/target/[cargo.rust_platform]/release/whitebox_tools ${destroot}${prefix}/bin/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    xinstall -d ${destroot}${prefix}/share/doc/${name}/manual/img
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d ${destroot}${prefix}/libexec/${name}/bin/plugins
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d ${destroot}${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -m 755 ${worksrcpath}/target/[cargo.rust_platform]/release/whitebox_tools ${destroot}${prefix}/libexec/${name}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    foreach plugin [glob -tails -directory ${worksrcpath}/whitebox-plugins/src *] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        xinstall -m 755 ${worksrcpath}/target/[cargo.rust_platform]/release/${plugin} ${destroot}${prefix}/libexec/${name}/bin/plugins
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        xinstall -m 644 ${worksrcpath}/whitebox-plugins/src/${plugin}/${plugin}.json  ${destroot}${prefix}/libexec/${name}/bin/plugins
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    ln -s ${prefix}/libexec/${name}/bin/whitebox_tools ${destroot}${prefix}/bin/whitebox_tools
</span>     xinstall -m 644 -W ${worksrcpath} README.md LICENSE.txt ${destroot}${prefix}/share/doc/${name}
 }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/whitebox-tools/files/get_plugin_list.patch b/gis/whitebox-tools/files/get_plugin_list.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3d6ceb107fb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/whitebox-tools/files/get_plugin_list.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- whitebox-tools-app/src/tools/mod.rs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ whitebox-tools-app/src/tools/mod.rs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1197,7 +1197,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     fn get_plugin_list(&self) -> Result<HashMap<String, serde_json::Value>, Error> {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         // let exe_path = std::env::current_dir()?.to_str().unwrap_or("No exe path found.").to_string();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        let mut dir = env::current_exe()?;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        let mut exe = env::current_exe()?;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        let mut dir = fs::canonicalize(exe)?;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         dir.pop();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         dir.push("plugins");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         let plugin_directory = dir.to_str().unwrap_or("No exe path found.").to_string();
</span></pre><pre style='margin:0'>

</pre>