<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/a6a4d0694f1af966f8d7332aa74de2faa086ec98">https://github.com/macports/macports-ports/commit/a6a4d0694f1af966f8d7332aa74de2faa086ec98</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a6a4d0694f1af966f8d7332aa74de2faa086ec98
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Mon Feb 10 13:18:02 2020 -0800

<span style='display:block; white-space:pre;color:#404040;'>    this leaves the original bundle structure in place
</span><span style='display:block; white-space:pre;color:#404040;'>    and allows the lazarus application to rebuild itself
</span><span style='display:block; white-space:pre;color:#404040;'>    in ~/.lazarus as designed if needed when adding modules
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    pretty-up the startlazarus.app to give it a nice icon
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    replace the startlazarus symlink with a shell script to actually work
</span>---
 devel/lazarus/Portfile                      | 27 ++++++++---------
 devel/lazarus/files/startlazarus            |  3 ++
 devel/lazarus/files/startlazarus_Info.plist | 45 +++++++++++++++++++++++++++++
 3 files changed, 60 insertions(+), 15 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 f80bc96..c9dc2cf 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;'>@@ -4,7 +4,7 @@ PortSystem          1.0
</span> 
 name                lazarus
 version             2.0.4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            2
</span> categories          devel
 platforms           darwin
 license             GPL-2 LGPL-2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -95,22 +95,19 @@ 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 the application bundle
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# and remove the questionable app bundle in Resources
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Note: tcl ln cannot create a link to an non-existing file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # give startlazarus.app a nice icon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -m 755 -d ${destroot}${prefix}/share/lazarus/lazarus.app/Contents/Resources/startlazarus.app/Contents/Resources
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    copy ${destroot}${prefix}/share/lazarus/lazarus.app/Contents/Resources/lazarus.icns \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         ${destroot}${prefix}/share/lazarus/lazarus.app/Contents/Resources/startlazarus.app/Contents/Resources/startlazarus.icns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    copy -force ${filespath}/startlazarus_Info.plist \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         ${destroot}${prefix}/share/lazarus/lazarus.app/Contents/Resources/startlazarus.app/Contents/Info.plist
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    set appContents ${destroot}${prefix}/share/lazarus/lazarus.app/Contents
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # add a working startlazarus command-line script
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -m 755 ${filespath}/startlazarus ${destroot}${prefix}/bin/startlazarus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|@@PREFIX@@|${prefix}|g" ${destroot}${prefix}/bin/startlazarus
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    delete    ${appContents}/Resources/startlazarus.app
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    system -W ${appContents}/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:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# move lazarus.app to MacPorts application directory
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    move ${destroot}${prefix}/share/lazarus/lazarus.app ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# enable rebuilding from within lazarus
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#    system -W ${destroot}${prefix}/share "chmod -R a+rw lazarus"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # symlink the startlazarus application bundle to the applications directory
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    ln -s ${prefix}/share/lazarus/lazarus.app/Contents/Resources/startlazarus.app ${destroot}${applications_dir}
</span> 
 # Install documentation files
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/lazarus
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/lazarus/files/startlazarus b/devel/lazarus/files/startlazarus
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..89a4de9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/lazarus/files/startlazarus
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pushd @@PREFIX@@/share/lazarus 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@PREFIX@@/share/lazarus/startlazarus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+popd
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/lazarus/files/startlazarus_Info.plist b/devel/lazarus/files/startlazarus_Info.plist
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..db101cb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/lazarus/files/startlazarus_Info.plist
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,45 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<?xml version="1.0" encoding="UTF-8"?>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<plist version="1.0">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>LSUIElement</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>CFBundleDevelopmentRegion</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <string>English</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>CFBundleExecutable</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <string>startlazarus</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>CFBundleIconFile</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <string>startlazarus</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>CFBundleName</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <string>startlazarus</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>CFBundleIdentifier</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <string>com.company.startlazarus</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>CFBundleInfoDictionaryVersion</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <string>6.0</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>CFBundlePackageType</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <string>APPL</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>CFBundleSignature</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <string>star</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>CFBundleVersion</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <string>1</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>CSResourcesFileMapped</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <key>CFBundleDocumentTypes</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   <array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           <dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   <key>CFBundleTypeRole</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   <string>Viewer</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   <key>CFBundleTypeExtensions</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   <array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                           <string>*</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   </array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   <key>CFBundleTypeOSTypes</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   <array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                           <string>fold</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                           <string>disk</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                           <string>****</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   </array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           </dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   </array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</plist>
</span></pre><pre style='margin:0'>

</pre>