<pre style='margin:0'>
Frank Schima (mf2k) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2a55e2f118226bed75e84c84e4e3e4fcfec03f15">https://github.com/macports/macports-ports/commit/2a55e2f118226bed75e84c84e4e3e4fcfec03f15</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 2a55e2f118226bed75e84c84e4e3e4fcfec03f15
</span>Author: Janosch Peters <janosch1@mailbox.org>
AuthorDate: Tue Feb 16 20:25:29 2021 +0100

<span style='display:block; white-space:pre;color:#404040;'>    freac: move freac binary to app package
</span>---
 audio/freac/Portfile | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/freac/Portfile b/audio/freac/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4ef58f689e7..47ddd28a43a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/audio/freac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/freac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,13 +47,19 @@ post-destroot {
</span>     # Copy the the application bundle shipped by the upstream project
     copy -- ${worksrcpath}/packaging/macosx/freac.app ${destroot}${applications_dir}
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    # Create MacOS folders where the symlinks to the freac binaries will be created
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Create MacOS folders where freac binaries and symlinks will be moved/created
</span>     xinstall -d ${destroot}${applications_dir}/freac.app/Contents/MacOS
     xinstall -d ${destroot}${applications_dir}/freac.app/Contents/Resources/translator.app/Contents/MacOS
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    # Create symlinks for freac binaries in ${prefix}/bin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    ln -s ${prefix}/bin/freac ${destroot}${applications_dir}/freac.app/Contents/MacOS/freac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    ln -s ${prefix}/bin/freaccmd ${destroot}${applications_dir}/freac.app/Contents/MacOS/freaccmd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Move resources to app folders, otherwise the freac binary does not recognize them
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    move ${destroot}${prefix}/share/doc/freac/manual ${destroot}${applications_dir}/freac.app/Contents/Resources/manual
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    move ${destroot}${prefix}/share/freac/icons ${destroot}${applications_dir}/freac.app/Contents/Resources/icons
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    move ${destroot}${prefix}/share/freac/lang ${destroot}${applications_dir}/freac.app/Contents/Resources/lang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Move freac to app folders as it should not be executed from terminal
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    move ${destroot}${prefix}/bin/freac ${destroot}${applications_dir}/freac.app/Contents/MacOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Create symlink to smooth-translator from port smooth
</span>     ln -s ${prefix}/bin/smooth-translator \
     ${destroot}${applications_dir}/freac.app/Contents/Resources/translator.app/Contents/MacOS/translator
 }
</pre><pre style='margin:0'>

</pre>