<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/ceaf6d3652ee4c42cc5ec43cafbc949aca08da83">https://github.com/macports/macports-ports/commit/ceaf6d3652ee4c42cc5ec43cafbc949aca08da83</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ceaf6d3652ee4c42cc5ec43cafbc949aca08da83
</span>Author: nilason <n_larsson@yahoo.com>
AuthorDate: Wed May 10 21:29:37 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> pdal: Update to 2.5.3 with fix for gdal 3.7.0
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - added variant +postgresql15 which is now default
</span><span style='display:block; white-space:pre;color:#404040;'> - the fix added for GDAL 3.7.0 is addressed upstreams
</span><span style='display:block; white-space:pre;color:#404040;'> and will come with PDAL 2.5.4
</span>---
gis/pdal/Portfile | 16 +++++++++-------
gis/pdal/files/pdal_Geometry_cpp.diff | 20 ++++++++++++++++++++
2 files changed, 29 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/pdal/Portfile b/gis/pdal/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8d416b83317..d68135c870c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gis/pdal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/pdal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,8 +6,8 @@ PortGroup cmake 1.1
</span> PortGroup github 1.0
PortGroup openssl 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup PDAL PDAL 2.5.2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup PDAL PDAL 2.5.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> categories gis
license BSD
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,9 +32,9 @@ legacysupport.newest_darwin_requires_legacy \
</span>
compiler.cxx_standard 2017
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 b329f16bf6823b440972f395790ff7f1e8b2d91b \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 73bd0ad23d5c1f562959489f1ace505739d0821c8f445662dbc082eea77faf07 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 108124162
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 6cb5187424e44d5a20d9f0af25b7a972ab2425bb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 b02623885e66aebbddd9843e807b389a4bd9dd0fcc9a53579f1517d1d86d7780 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 108124300
</span>
depends_lib-append port:geos \
port:gdal \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -44,6 +44,8 @@ depends_lib-append port:geos \
</span> port:curl \
port:libunwind
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles pdal_Geometry_cpp.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>
# Python stuff
set python_suffixes {27 35 36 37 38 39 310}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -81,7 +83,7 @@ foreach suffix ${python_suffixes} {
</span>
# Database variants (from the GDAL port)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set postgresql_suffixes {14 13 12 11 10 95 96}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set postgresql_suffixes {15 14 13 12 11 10 95 96}
</span> set def_psql_var "if {"
set postgresql_variants {}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -92,7 +94,7 @@ foreach suffix ${postgresql_suffixes} {
</span>
# Set default variant
set def_psql_var [string range ${def_psql_var} 0 end-4]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set def_psql_var "${def_psql_var}} {default_variants +postgresql14}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set def_psql_var "${def_psql_var}} {default_variants +postgresql15}"
</span> eval ${def_psql_var}
foreach suffix ${postgresql_suffixes} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/pdal/files/pdal_Geometry_cpp.diff b/gis/pdal/files/pdal_Geometry_cpp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e8779eb27b5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/pdal/files/pdal_Geometry_cpp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- pdal/Geometry.cpp.orig 2023-04-13 20:07:49.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ pdal/Geometry.cpp 2023-05-02 20:18:42.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -153,7 +153,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bool Geometry::srsValid() const
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- OGRSpatialReference *srs = m_geom->getSpatialReference();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ OGRSpatialReference *srs = const_cast<OGRSpatialReference *>(m_geom->getSpatialReference());
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return srs && srs->GetRoot();
</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;'>+@@ -172,7 +172,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return StatusWithReason(-2,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "Geometry::transform() failed. NULL target SRS.");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- OGRSpatialReference *inSrs = m_geom->getSpatialReference();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ OGRSpatialReference *inSrs = const_cast<OGRSpatialReference *>(m_geom->getSpatialReference());
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SrsTransform transform(*inSrs, OGRSpatialReference(out.getWKT().data()));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (m_geom->transform(transform.get()) != OGRERR_NONE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return StatusWithReason(-1, "Geometry::transform() failed.");
</span></pre><pre style='margin:0'>
</pre>