<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/aee13aff9305206d1bfb354bc7635141d752260d">https://github.com/macports/macports-ports/commit/aee13aff9305206d1bfb354bc7635141d752260d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit aee13aff9305206d1bfb354bc7635141d752260d
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Tue Sep 1 12:37:19 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> LyX: fix build on older systems
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> use pre 10.12 NSAlert code
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/61108
</span><span style='display:block; white-space:pre;color:#404040;'> see: https://github.com/cburschka/lyx/commit/b70c3796a1f8752e0001701546f55a0d5feaf152
</span>---
aqua/LyX/Portfile | 1 +
.../patch-lyx-linkbackserver-older-nsalert.diff | 30 ++++++++++++++++++++++
2 files changed, 31 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/LyX/Portfile b/aqua/LyX/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0cfa84d2349..adb9ce8970f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/LyX/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/LyX/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,6 +53,7 @@ configure.args --disable-silent-rules
</span>
compiler.blacklist-append { clang < 800 }
patchfiles-append patch-lyx-applescriptproxy-add-stringh.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-lyx-linkbackserver-older-nsalert.diff
</span>
post-configure {
reinplace \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/LyX/files/patch-lyx-linkbackserver-older-nsalert.diff b/aqua/LyX/files/patch-lyx-linkbackserver-older-nsalert.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..559f2809d28
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/LyX/files/patch-lyx-linkbackserver-older-nsalert.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,30 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/support/linkback/LinkBackServer.m src/support/linkback/LinkBackServer.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index d089fca..2819efb 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/support/linkback/LinkBackServer.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/support/linkback/LinkBackServer.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -171,6 +171,16 @@ void LinkBackRunAppNotFoundPanel(NSString* appName, NSURL* url)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ title = [NSString stringWithFormat: title, appName] ;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int result ;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ result = NSRunCriticalAlertPanel(title, @"%@", ok, urlstr, nil, msg) ;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (NSAlertAlternateReturn == result) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ [[NSWorkspace sharedWorkspace] openURL: url] ;
</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;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NSAlert* alert = [[NSAlert alloc] init];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [alert setAlertStyle:NSAlertStyleCritical];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [alert setMessageText:title];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -181,6 +191,8 @@ void LinkBackRunAppNotFoundPanel(NSString* appName, NSURL* url)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (returnCode == NSAlertSecondButtonReturn)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [[NSWorkspace sharedWorkspace] openURL: url] ;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ + (LinkBackServer*)LinkBackServerWithName:(NSString*)aName inApplication:(NSString*)bundleIdentifier launchIfNeeded:(BOOL)flag fallbackURL:(NSURL*)url appName:(NSString*)appName
</span></pre><pre style='margin:0'>
</pre>