<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/606f55392f0a9ec3b3c846f70e223d9c2f2989ef">https://github.com/macports/macports-ports/commit/606f55392f0a9ec3b3c846f70e223d9c2f2989ef</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 606f55392f0a9ec3b3c846f70e223d9c2f2989ef
</span>Author: Nicklas Larsson <n_larsson@yahoo.com>
AuthorDate: Tue Jun 25 15:30:46 2024 +0200
<span style='display:block; white-space:pre;color:#404040;'> gdal-pdf: new gdal PDF driver port
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> replaces gdal +poppler variant
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/70269
</span>---
gis/gdal/Portfile | 39 +++++++++++++++++++++++++++++++++++----
1 file changed, 35 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/gdal/Portfile b/gis/gdal/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6379bb769cd..48e7faf288f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gis/gdal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/gdal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -281,7 +281,6 @@ configure.args-append \
</span> -DGDAL_USE_PCRE2=ON \
-DGDAL_USE_PDFIUM=OFF \
-DGDAL_USE_PNG=ON \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DGDAL_USE_POPPLER=OFF \
</span> -DGDAL_USE_POSTGRESQL=ON \
-DGDAL_USE_QHULL=ON \
-DGDAL_USE_SPATIALITE=ON \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -322,6 +321,15 @@ pre-configure {
</span> }
if {$subport eq $name} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Register plugins
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDAL_REGISTER_DRIVER_PDF_FOR_LATER_PLUGIN=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDAL_DRIVER_PDF_PLUGIN_INSTALLATION_MESSAGE="Install the PDF driver with 'sudo port gdal-pdf'." \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDAL_USE_POPPLER=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/poppler.pc:poppler \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {[variant_isset kea] && ![variant_isset hdf5]} {
ui_msg "NOTE: KEA driver support depends on HDF5, +hdf5 variant is added."
default_variants +hdf5
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -544,9 +552,8 @@ if {$subport eq $name} {
</span> }
variant poppler description {Enable Poppler support} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append path:lib/pkgconfig/poppler.pc:poppler
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace -DGDAL_USE_POPPLER=OFF -DGDAL_USE_POPPLER=ON
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -DGDAL_ENABLE_DRIVER_PDF=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "The '+poppler' variant is removed. It is replaced by 'grass-pdf' subport."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "unsupported variant"
</span> }
variant tiledb description {Enable TileDB support} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -728,3 +735,27 @@ proc set_gdal_variants {} {
</span> }
}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport gdal-pdf {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description GDAL - PDF driver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description {*}${description}.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib path:lib/pkgconfig/poppler.pc:poppler \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gdal
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set_gdal_variants
</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;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDAL_ENABLE_DRIVER_PDF=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDAL_ENABLE_DRIVER_PDF_PLUGIN=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDAL_USE_POPPLER=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${destroot} "find . ! -name 'gdal_PDF.dylib' \\( -type f -or -type l \\) -exec rm -f {} +"
</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;'>+ livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>