<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/5a4c116d3f21a3fe2a6be7fc4aa8195dd99d21ec">https://github.com/macports/macports-ports/commit/5a4c116d3f21a3fe2a6be7fc4aa8195dd99d21ec</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 5a4c116d3f2 libsdl2: patch to revert upstream fix for sdl issue 6948 - Fixes builds for 10.7/10.8 Closes: https://trac.macports.org/ticket/67666
</span>5a4c116d3f2 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 5a4c116d3f21a3fe2a6be7fc4aa8195dd99d21ec
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Fri Jun 23 11:21:14 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> libsdl2: patch to revert upstream fix for sdl issue 6948
</span><span style='display:block; white-space:pre;color:#404040;'> - Fixes builds for 10.7/10.8
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/67666
</span>---
devel/libsdl2/Portfile | 6 ++-
devel/libsdl2/files/patch-revert-issue-6948.diff | 58 ++++++++++++++++++++++++
2 files changed, 63 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libsdl2/Portfile b/devel/libsdl2/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3c0bbe70690..e1a96a394dd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libsdl2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libsdl2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,8 +40,12 @@ if {${os.subplatform} eq "macosx" && ${os.major} <= 10} {
</span> build {}
destroot {
xinstall -d ${destroot}${prefix}/share/doc/${name}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README"
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${os.subplatform} eq "macosx" && ${os.major} <= 12} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Patch to revert fix for issue: https://github.com/libsdl-org/SDL/issues/6948
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Necessary to fix builds for 10.7/10.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-revert-issue-6948.diff
</span> } else {
conflicts libsdl2-snowleopard
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libsdl2/files/patch-revert-issue-6948.diff b/devel/libsdl2/files/patch-revert-issue-6948.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1349944513b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libsdl2/files/patch-revert-issue-6948.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,58 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#==================================================================================================
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# libsdl2 v2.28.0 - Revert changes for issue: https://github.com/libsdl-org/SDL/issues/6948
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Necessary to fix builds for 10.8 and earlier
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#==================================================================================================
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/video/cocoa/SDL_cocoamessagebox.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/video/cocoa/SDL_cocoamessagebox.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -32,7 +32,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NSInteger clicked;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NSWindow *nswindow;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-- (id)initWithParentWindow:(SDL_Window *)window;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++- (id) initWithParentWindow:(SDL_Window *)window;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++- (void) alertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @implementation SDLMessageBoxPresenter
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -56,16 +57,35 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - (void)showAlert:(NSAlert*)alert
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (nswindow) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [alert beginSheetModalForWindow:nswindow
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- completionHandler:^(NSModalResponse returnCode) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [NSApp stopModalWithCode:returnCode];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- }];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- clicked = [NSApp runModalForWindow:nswindow];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef MAC_OS_X_VERSION_10_9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if ([alert respondsToSelector:@selector(beginSheetModalForWindow:completionHandler:)]) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ [alert beginSheetModalForWindow:nswindow completionHandler:^(NSModalResponse returnCode) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ self->clicked = returnCode;
</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;'>++#endif
</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 < 1090
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ [alert beginSheetModalForWindow:nswindow modalDelegate:self didEndSelector:@selector(alertDidEnd:returnCode:contextInfo:) contextInfo:nil];
</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;'>++ while (clicked < 0) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ SDL_PumpEvents();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ SDL_Delay(100);
</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;'>+ nswindow = nil;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ clicked = [alert runModal];
</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;'>++- (void) alertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ clicked = returnCode;
</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;'>+ @end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>