<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9c4d69f31ddc59d451251577f39eb89347dc21ce">https://github.com/macports/macports-ports/commit/9c4d69f31ddc59d451251577f39eb89347dc21ce</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 9c4d69f31ddc59d451251577f39eb89347dc21ce
</span>Author: Karl-Michael Schindler <karl-michael.schindler@web.de>
AuthorDate: Sat Oct 12 10:35:28 2019 +0200
<span style='display:block; white-space:pre;color:#404040;'> Lazarus: More fixes.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - replaced the system command for the creation of symlinks.
</span><span style='display:block; white-space:pre;color:#404040;'> - move the app bundle instead of copy it.
</span>---
devel/lazarus/Portfile | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/lazarus/Portfile b/devel/lazarus/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b54f588..8e79962 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/lazarus/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/lazarus/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -95,22 +95,18 @@ post-destroot {
</span> xinstall -m 755 -d ${destroot}${prefix}/etc/lazarus
xinstall -m 644 ${worksrcpath}/tools/install/macosx/environmentoptions.xml ${destroot}${prefix}/etc/lazarus
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# fix the symbolic links in ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${destroot}${prefix}/bin \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "ln -sf ../share/lazarus/lazarus lazarus-ide && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -sf ../share/lazarus/startlazarus startlazarus && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -sf ../share/lazarus/lazbuild lazbuild "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # fix the symbolic links in the application bundle
<span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${destroot}${prefix}/share/lazarus/lazarus.app/Contents/MacOS \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "ln -sf ${prefix}/share/lazarus/lazarus lazarus && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -sf ${prefix}/share/lazarus/startlazarus startlazarus "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# and remove the questionable app bundle in Resources
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set appContents ${destroot}${prefix}/share/lazarus/lazarus.app/Contents
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove the faulty app bundle in Resources
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${destroot}${prefix}/share/lazarus/lazarus.app/Contents/Resources/startlazarus.app
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${appContents}/Resources/startlazarus.app
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${appContents}/MacOS/lazarus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln ${prefix}/share/lazarus/lazarus ${appContents}/MacOS/lazarus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln ${prefix}/share/lazarus/startlazarus ${appContents}/MacOS/startlazarus
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# copy lazarus.app to MacPorts application directory
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${destroot}${prefix}/share/lazarus/lazarus.app ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# move lazarus.app to MacPorts application directory
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/share/lazarus/lazarus.app ${destroot}${applications_dir}
</span>
# enable rebuilding from within lazarus
system -W ${destroot}${prefix}/share "chmod -R a+rw lazarus"
</pre><pre style='margin:0'>
</pre>