<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a923704fd2a8086ce31f78a4a79c19abd50755aa">https://github.com/macports/macports-ports/commit/a923704fd2a8086ce31f78a4a79c19abd50755aa</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a923704fd2a8086ce31f78a4a79c19abd50755aa
</span>Author: Nicklas Larsson <n_larsson@yahoo.com>
AuthorDate: Wed Apr 3 14:49:50 2024 +0200
<span style='display:block; white-space:pre;color:#404040;'> libosmium: general overhaul; add libosmium-doc subport
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - Add `libosmium` build dependencies, enable test without +tests variant.
</span><span style='display:block; white-space:pre;color:#404040;'> - Remove +tests variant.
</span><span style='display:block; white-space:pre;color:#404040;'> - Update build dependency of `proj4` to `proj7`.
</span><span style='display:block; white-space:pre;color:#404040;'> - Add new `libosmium-doc` subport.
</span>---
gis/libosmium/Portfile | 73 +++++++++++++++++++++++++++++---------------------
1 file changed, 42 insertions(+), 31 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/libosmium/Portfile b/gis/libosmium/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 67c2d37d335..20ab46af30c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gis/libosmium/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/libosmium/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,14 +18,19 @@ supported_archs noarch
</span>
description A fast and flexible C++ library for working with OpenStreetMap data
<span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description Low-level: this is designed to be a building block \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- for writing a very customized decoder for a stable \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- protobuf schema. If your protobuf schema is \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- changing frequently or lazy decoding is not \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- critical for your application then this approach \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- offers no value: just use the C++ API that can be \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- generated with the Google Protobufs protoc \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- program.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description The Osmium Library has extensive support for all types of \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OSM entities: nodes, ways, relations, and changesets. It \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ allows reading from and writing to OSM files in XML, PBF, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and several other formats, including change files and full \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ history files. Osmium can store OSM data in memory and on \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ disk in various formats and using various indexes. Its easy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ to use handler interface allows you to quickly write data \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ filtering and conversion functions. Osmium can create WKT, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WKB, OGR, GEOS and GeoJSON geometries for easy conversion \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ into many GIS formats and it can assemble multipolygons \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from ways and relations.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://osmcode.org/libosmium/
</span>
checksums rmd160 a1c24ae0e4cf67eee1127cb4858703688638987a \
sha256 6911a8ca8e81d49205357177982df908af11376919f93b814cccf02f1d4d63e3 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,33 +39,39 @@ checksums rmd160 a1c24ae0e4cf67eee1127cb4858703688638987a \
</span> compiler.cxx_standard 2011
configure.args-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DBUILD_TESTING=OFF \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DBUILD_EXAMPLES=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_EXAMPLES=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DINSTALL_GDALCPP=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPROJ_INCLUDE_DIR=${prefix}/lib/proj7/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPROJ_LIBRARY=${prefix}/lib/proj7/lib/libproj.dylib
</span>
depends_build-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:protozero
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:bzip2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:expat \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gdal \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:lz4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:proj7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:protozero \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:sparsehash \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib
</span>
boost.depends_type build
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant tests description {Build and run unit tests} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport ${name}-doc {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description {*}${description} - documentation
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description {*}${long_description} \nThis port contains the Osmium \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ library documentation.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:bzip2 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:expat \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gdal \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:lz4 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:proj4 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:sparsehash \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:zlib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-delete \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DBUILD_TESTING=OFF \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DBUILD_EXAMPLES=OFF
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DPROJ_INCLUDE_DIR=${prefix}/lib/proj49/include \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DPROJ_LIBRARY=${prefix}/lib/proj49/lib/libproj.dylib \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test.cmd ctest --output-on-failure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:doxygen \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:graphviz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target doc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/share/doc/${name}/html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file rename -force ${workpath}/build/doc/html ${destroot}${prefix}/share/doc/${name}
</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;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.cmd ctest --output-on-failure
</span></pre><pre style='margin:0'>
</pre>