<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3e6a44d9ad8a9a7d381e3d6b5e6f36930a91e597">https://github.com/macports/macports-ports/commit/3e6a44d9ad8a9a7d381e3d6b5e6f36930a91e597</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 3e6a44d9ad8 py-pyicu: patch for CXX standard, fix path name
</span>3e6a44d9ad8 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 3e6a44d9ad8a9a7d381e3d6b5e6f36930a91e597
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Thu Jun 20 20:43:42 2024 -0400
<span style='display:block; white-space:pre;color:#404040;'> py-pyicu: patch for CXX standard, fix path name
</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/70265
</span>---
python/py-pyicu/Portfile | 7 +++--
.../files/patch-cxx-standard-setup.py.diff | 30 ++++++++++++++++++++++
2 files changed, 35 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-pyicu/Portfile b/python/py-pyicu/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f3044f08bd1..f274b38e4d0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-pyicu/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-pyicu/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,6 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup compiler_blacklist_versions 1.0
</span> PortGroup python 1.0
name py-pyicu
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,9 +24,13 @@ checksums rmd160 8b49f59ace576511151eeb8b720d52caddc0b2f4 \
</span> python.versions 38 39 310 311 312
if {${name} ne ${subport}} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix naming issue on case-sensitive filesystems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ worksrcdir pyicu-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib-append path:lib/pkgconfig/icu-uc.pc:icu
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # icu requires C++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # icu requires C++11 ; change to 2017 after update to version 75
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-cxx-standard-setup.py.diff
</span> compiler.cxx_standard 2011
# clang 503.0.40 provided by Xcode 5.1.1 supports C++11 but apparently not <type_traits>
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-pyicu/files/patch-cxx-standard-setup.py.diff b/python/py-pyicu/files/patch-cxx-standard-setup.py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1ce5306adb5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-pyicu/files/patch-cxx-standard-setup.py.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;'>+--- setup.py.orig 2024-06-20 20:46:47
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup.py 2024-06-20 20:47:06
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -135,7 +135,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;'>+ CFLAGS = {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 'darwin': ['-std=c++17'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ 'darwin': ['-std=c++11'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'linux': ['-std=c++17'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'freebsd': ['-std=c++17'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'win32': ['/Zc:wchar_t', '/EHsc'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -195,7 +195,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ except:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if not _cflags:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ raise RuntimeError('''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-Please install pkg-config on your system or set the PYICU_CFLAGS environment
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++Please install pkg-config on your system or set the PYICU_CFLAGS environment
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variable to the flags required by the C++ compiler to find the header files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for ICU, and possibly -std=c++11 if using ICU version >= 60 or -std=c++17 if using ICU version >= 75
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ''')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -234,8 +234,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Please install pkg-config on your system or set the PYICU_LFLAGS environment
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variable to the flags required by the linker to find the libraries for ICU
</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;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if 'PYICU_LIBRARIES' in os.environ:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _libraries = os.environ['PYICU_LIBRARIES'].split(os.pathsep)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ elif ICU_VERSION < '58':
</span></pre><pre style='margin:0'>
</pre>