<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f0520ee8fa4a50ceef42106c17776ca1def3ef8a">https://github.com/macports/macports-ports/commit/f0520ee8fa4a50ceef42106c17776ca1def3ef8a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit f0520ee8fa4a50ceef42106c17776ca1def3ef8a
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Jul 6 23:59:07 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> minivmac*: Fix "-svd 0" on 10.6 and earlier
</span>---
emulators/minivmac-devel/Portfile | 3 +++
emulators/minivmac-devel/files/fix-svd-0.patch | 23 +++++++++++++++++++++++
emulators/minivmac/files/SaveDialogDisable.patch | 8 +++++---
3 files changed, 31 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/Portfile b/emulators/minivmac-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index cb06aa1..b53f95a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/minivmac-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -297,6 +297,9 @@ if {${my_subport} eq ${my_name}} {
</span> system -W ${build.dir} "tar xf '${my_src_tarball}'"
move ${build.dir}/${my_variation} ${build.dir}/${my_variation_dir}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Fix the "-svd 0" configure flag.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${build.dir}/${my_variation_dir} "patch -p0 < ${filespath}/fix-svd-0.patch"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {${my_subport} eq "${my_name}-bootstrap"} {
# Don't require the discrete GPU.
system -W ${build.dir}/${my_variation_dir} "patch -p0 < ${filespath}/AutomaticGraphicsSwitching.patch"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/files/fix-svd-0.patch b/emulators/minivmac-devel/files/fix-svd-0.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..fd58eaa
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac-devel/files/fix-svd-0.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,23 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix a bug in the "-svd 0" configuration flag that prevented it from
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+being able to create the "out" directory on 10.6 and earlier.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://gist.github.com/ryandesign/a7fdea794e1b84a01f15536fabe7f9ff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/OSGLUCCO.m.orig 2018-07-06 23:28:04.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/OSGLUCCO.m 2018-07-06 23:31:33.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -4014,7 +4014,7 @@
</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;'>+ if ([fm respondsToSelector:@selector(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-createDirectoryAtURL:withIntermediateDirectories:attributes:error:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++createDirectoryAtPath:withIntermediateDirectories:attributes:error:
</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;'>+ if ([fm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -4028,7 +4028,7 @@
</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;'>+ if ([fm respondsToSelector:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- @selector(createDirectoryAtURL:attributes:)])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ @selector(createDirectoryAtPath:attributes:)])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ([fm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ createDirectoryAtPath:r
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac/files/SaveDialogDisable.patch b/emulators/minivmac/files/SaveDialogDisable.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 99245ed..55cafe3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/minivmac/files/SaveDialogDisable.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac/files/SaveDialogDisable.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,5 +1,7 @@
</span> Backport the effects of the "-svd 0" configuration flag introduced in
<span style='display:block; white-space:pre;background:#ffe0e0;'>-36.00alpha20180520.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+36.00alpha20180520 and fix a bug that prevented it from being able to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+create the "out" directory on 10.6 and earlier.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://gist.github.com/ryandesign/a7fdea794e1b84a01f15536fabe7f9ff
</span> --- src/CNFGRAPI.h.orig 2018-06-18 10:41:10.000000000 -0500
+++ src/CNFGRAPI.h 2018-06-18 15:48:56.000000000 -0500
@@ -19,6 +19,7 @@
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,7 +45,7 @@ Backport the effects of the "-svd 0" configuration flag introduced in
</span> + }
+ } else {
+ if ([fm respondsToSelector:@selector(
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+createDirectoryAtURL:withIntermediateDirectories:attributes:error:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++createDirectoryAtPath:withIntermediateDirectories:attributes:error:
</span> + )])
+ {
+ if ([fm
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -57,7 +59,7 @@ Backport the effects of the "-svd 0" configuration flag introduced in
</span> + }
+ } else
+ if ([fm respondsToSelector:
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ @selector(createDirectoryAtURL:attributes:)])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ @selector(createDirectoryAtPath:attributes:)])
</span> + {
+ if ([fm
+ createDirectoryAtPath:r
</pre><pre style='margin:0'>
</pre>