<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/60164e3fd3f8d006b408a4a58349f7e17b54e26d">https://github.com/macports/macports-ports/commit/60164e3fd3f8d006b408a4a58349f7e17b54e26d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 60164e3fd3f8d006b408a4a58349f7e17b54e26d
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Wed Mar 23 03:05:50 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> tidy: Fix undefined TARGET_OS_* in tidyplatform.h
</span>---
www/tidy/Portfile | 5 +++--
www/tidy/files/tidyplatform.h.patch | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/tidy/Portfile b/www/tidy/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 530671fc98c..52e8982d1c0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/www/tidy/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/tidy/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,14 +6,13 @@ PortGroup github 1.0
</span>
epoch 1
github.setup htacg tidy-html5 5.8.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> checksums rmd160 8b29c1ae58bf4a26a1befec08ebea8a98043aa13 \
sha256 2fc78c4369cde9a80f4ae3961880bd003ac31e8b160f6b9422645bab3be5a6cf \
size 1008951
name tidy
categories www
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers {ryandesign @ryandesign} openmaintainer
license MIT
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,6 +25,8 @@ github.tarball_from archive
</span>
depends_build-append port:libxslt
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles tidyplatform.h.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> cmake.build_dir ${worksrcpath}/build/cmake
configure.args-append -DBUILD_SHARED_LIB:BOOL=ON
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/tidy/files/tidyplatform.h.patch b/www/tidy/files/tidyplatform.h.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..6f4812c17f1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/tidy/files/tidyplatform.h.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,35 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Check whether TARGET_OS_* defines are defined before checking their
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+value to fix build failure of software that uses tidy on Mac OS X 10.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+(which doesn't define these) when using clang 11 or later (which
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+MacPorts now does) and remove incorrect use of TARGET_OS_MAC.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/htacg/tidy-html5/issues/1030
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/tidyplatform.h.orig 2021-07-10 15:53:56.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/tidyplatform.h 2022-03-23 03:03:02.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -115,16 +115,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define MAC_OS_X
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # ifndef PLATFORM_NAME
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include "TargetConditionals.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# if TARGET_OS_IOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# define PLATFORM_NAME "Apple iOS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# elif TARGET_OS_MAC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# define PLATFORM_NAME "Apple macOS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# elif TARGET_OS_TV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# define PLATFORM_NAME "Apple tvOS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# elif TARGET_OS_WATCH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# define PLATFORM_NAME "Apple watchOS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if defined(TARGET_OS_MACCATALYST) && TARGET_OS_MACCATALYST
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define PLATFORM_NAME "Apple macOS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# elif defined(TARGET_OS_TV) && TARGET_OS_TV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define PLATFORM_NAME "Apple tvOS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# elif defined(TARGET_OS_WATCH) && TARGET_OS_WATCH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define PLATFORM_NAME "Apple watchOS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define PLATFORM_NAME "Apple iOS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# define PLATFORM_NAME "Apple Unknown OS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define PLATFORM_NAME "Apple macOS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span></pre><pre style='margin:0'>
</pre>