<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/49fecd209cde18cd6181b233aeb2bdfe8e32b6ec">https://github.com/macports/macports-ports/commit/49fecd209cde18cd6181b233aeb2bdfe8e32b6ec</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 49fecd2 harfbuzz: Fix build on Mac OS X 10.5 and earlier
</span>49fecd2 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 49fecd209cde18cd6181b233aeb2bdfe8e32b6ec
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Jan 15 02:33:11 2019 -0600
<span style='display:block; white-space:pre;color:#404040;'> harfbuzz: Fix build on Mac OS X 10.5 and earlier
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/57908
</span>---
graphics/harfbuzz/Portfile | 1 +
.../harfbuzz/files/dont-use-TARGET_OS_OSX.patch | 23 ++++++++++++++++++++++
2 files changed, 24 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/harfbuzz/Portfile b/graphics/harfbuzz/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4ccc8a4..0c556bc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/harfbuzz/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/harfbuzz/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,6 +25,7 @@ use_bzip2 yes
</span> depends_build port:pkgconfig
patchfiles move-_POSIX_C_SOURCE-out-of-header.patch
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append dont-use-TARGET_OS_OSX.patch
</span>
# clang 211.10.1 and earlier are known to fail. Assume 300 works?
compiler.blacklist-append {clang < 300}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/harfbuzz/files/dont-use-TARGET_OS_OSX.patch b/graphics/harfbuzz/files/dont-use-TARGET_OS_OSX.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..3fb133e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/harfbuzz/files/dont-use-TARGET_OS_OSX.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;'>+Don't use TARGET_OS_OSX to identify macOS; it doesn't exist on old versions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+of macOS.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/harfbuzz/harfbuzz/issues/1540
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/hb-coretext.cc.orig 2018-12-17 21:36:12.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/hb-coretext.cc 2019-01-14 23:26:51.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -214,7 +214,7 @@
</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;'>+ CFURLRef original_url = nullptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if TARGET_OS_OSX && MAC_OS_X_VERSION_MIN_REQUIRED < 1060
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if !TARGET_OS_IPHONE && MAC_OS_X_VERSION_MIN_REQUIRED < 1060
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ATSFontRef atsFont;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ FSRef fsref;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OSStatus status;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -244,7 +244,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * process in Blink. This can be detected by the new file URL location
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * that the newly found font points to. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CFURLRef new_url = nullptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if TARGET_OS_OSX && MAC_OS_X_VERSION_MIN_REQUIRED < 1060
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if !TARGET_OS_IPHONE && MAC_OS_X_VERSION_MIN_REQUIRED < 1060
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ atsFont = CTFontGetPlatformFont (new_ct_font, NULL);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ status = ATSFontGetFileReference (atsFont, &fsref);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (status == noErr)
</span></pre><pre style='margin:0'>
</pre>