<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/60dfb001e3bab19da21ea50bbc2c1768a1669598">https://github.com/macports/macports-ports/commit/60dfb001e3bab19da21ea50bbc2c1768a1669598</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 60dfb001e3bab19da21ea50bbc2c1768a1669598
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Tue Sep 6 11:29:15 2022 -0400

<span style='display:block; white-space:pre;color:#404040;'>    pg app 1.0: cleanup comments and whitespace
</span><span style='display:block; white-space:pre;color:#404040;'>    - No functional/logic changes
</span>---
 _resources/port1.0/group/app-1.0.tcl | 55 ++++++++++++++++++++++++++++++------
 1 file changed, 47 insertions(+), 8 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/app-1.0.tcl b/_resources/port1.0/group/app-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index aa50b2e6576..0f9cc1bc3d0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/app-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/app-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,26 +1,37 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#===============================================================================
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# app 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # This PortGroup helps create an application bundle the user can open from the
 # Finder or the Dock. This is useful for ports that install a program built
 # with an SDK like SDL or Qt that, when launched, causes an icon to appear in
 # the Dock and opens a proper macOS GUI, but that do not build their own
 # app bundle to easily launch it.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# NOTE: This is the original version, which doesn't use the port callback
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# mechanism.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#===============================================================================
</span> 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.create: whether to create the app bundle at all
 #
 # The default is yes.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.create
 default app.create yes
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.name: the name of the app that users will see in the Finder
 #
 # The default is based on ${name}: if ${name} contains any uppercase letters,
 # ${name} is used, otherwise the first character of ${name} is uppercased.
 #
 # Info.plist key CFBundleName.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.name
 default app.name {[app.get_default_name]}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,6 +45,7 @@ proc app.get_default_name {} {
</span> }
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.executable: the program the app will run
 #
 # The default is ${name}; relative paths are relative to ${prefix}/bin. If you
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,11 +59,13 @@ proc app.get_default_name {} {
</span> # be copied from there.
 #
 # Relates to Info.plist key CFBundleExecutable.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.executable
 default app.executable {${name}}
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.icon: the icon the app will have
 #
 # The default is empty; if no icon graphic is available for this software, this
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -63,33 +77,39 @@ default app.executable {${name}}
</span> # Paths may be absolute or relative to ${worksrcpath}.
 #
 # Relates to Info.plist key CFBundleIconFile.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.icon
 default app.icon ""
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.short_version_string: the version number
 #
 # The default is ${version}. This is fine for most ports, but ports that list
 # both version and build number in ${version} may wish to separate these here.
 #
 # Info.plist key CFBundleShortVersionString.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.short_version_string
 default app.short_version_string {${version}}
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.version: the build number
 #
 # The default is ${version}. This is fine for most ports, but ports that list
 # both version and build number in ${version} may wish to separate these here.
 #
 # Info.plist key CFBundleVersion.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.version
 default app.version {${version}}
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.identifier: the app's unique bundle identifier
 #
 # The default is computed based on ${homepage} and ${app.name}. For most ports
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -97,6 +117,7 @@ default app.version {${version}}
</span> # established bundle identifier outside of MacPorts, you can set it here.
 #
 # Info.plist key CFBundleIdentifier.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.identifier
 default app.identifier {[app.get_default_identifier]}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -117,86 +138,101 @@ proc app.get_default_identifier {} {
</span> }
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.retina: whether the app supports Retina display resolutions
 #
 # The default is no.
 #
 # Info.plist key NSHighResolutionCapable.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.retina
 default app.retina no
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.dark_mode: whether the app supports dark mode
 #
 # The default is yes.
 #
 # Info.plist key NSRequiresAquaSystemAppearance.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.dark_mode
 default app.dark_mode yes
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.privacy_microphone: whether the app needs microphone access
 #
 # The default is empty and therefore disabled. To enable write a
 # message that tells the user why the app is requesting access to the
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# device’s microphone.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# device's microphone.
</span> #
 # Info.plist key NSMicrophoneUsageDescription.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.privacy_microphone
 default app.privacy_microphone ""
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.privacy_camera: whether the app needs camera access
 #
 # The default is empty and therefore disabled. To enable write a
 # message that tells the user why the app is requesting access to the
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# device’s camera.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# device's camera.
</span> #
 # Info.plist key NSCameraUsageDescription.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.privacy_camera
 default app.privacy_camera ""
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.privacy_contacts: whether the app needs contacts access
 #
 # The default is empty and therefore disabled. To enable write a
 # message that tells the user why the app is requesting access to the
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# user’s contacts.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# user's contacts.
</span> #
 # Info.plist key NSContactsUsageDescription.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.privacy_contacts
 default app.privacy_contacts ""
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.privacy_calendars: whether the app needs calendars access
 #
 # The default is empty and therefore disabled. To enable write a
 # message that tells the user why the app is requesting access to the
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# user’s calendar data.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# user's calendar data.
</span> #
 # Info.plist key NSCalendarsUsageDescription.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.privacy_calendars
 default app.privacy_calendars ""
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.privacy_photo: whether the app needs photo access
 #
 # The default is empty and therefore disabled. To enable write a
 # message that tells the user why the app is requesting access to the
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# user’s photo library.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# user's photo library.
</span> #
 # Info.plist key NSPhotoLibraryUsageDescription.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.privacy_photo
 default app.privacy_photo ""
 
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> # app.hide_dock_icon: hide the Dock icon
 #
 # SDKs like SDL and Qt use the necessary macOS APIs to implement proper Dock
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -208,6 +244,7 @@ default app.privacy_photo ""
</span> # enabled it.
 #
 # Info.plist key LSUIElement.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.hide_dock_icon
 default app.hide_dock_icon  {[app.get_default_hide_dock_icon]}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -217,13 +254,15 @@ proc app.get_default_hide_dock_icon {} {
</span> }
 
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# app.use_launch_script: use a Bash launch script instead of a symlink to the executable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# app.use_launch_script: use shell launch script instead of symlink to executable
</span> #
 # The default behaviour is to symlink the executable into the bundle. However,
 # this has two issues: OS X 10.8 and earlier pass a `-psn` argument (the process
 # serial number) to the executable, which some programs can't handle. Also, it
 # doesn't modify the PATH, e.g. to add ${prefix}/bin to it. Using a launch
 # script solves both of these issues.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#-------------------------------------------------------------------------------
</span> 
 options app.use_launch_script
 default app.use_launch_script  no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -432,7 +471,7 @@ proc app._resolve_symlink {path destroot} {
</span> 
 # Write a launch script for the executable into the bundle, modifying PATH to
 # allow the executable to find other executables installed with MacPorts.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-proc app._write_launch_script  {executable app_destination} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc app._write_launch_script {executable app_destination} {
</span>     global prefix
     set launch_script [open ${app_destination} w]
 
</pre><pre style='margin:0'>

</pre>