<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/8b4220f3fc8f4334ecd63a0ca4ab278070c715a7">https://github.com/macports/macports-ports/commit/8b4220f3fc8f4334ecd63a0ca4ab278070c715a7</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8b4220f3fc8f4334ecd63a0ca4ab278070c715a7
</span>Author: Nicklas Larsson <n_larsson@yahoo.com>
AuthorDate: Tue Jan 16 10:56:56 2024 +0100
<span style='display:block; white-space:pre;color:#404040;'> pcraster: new port with version 4.4.1
</span>---
gis/pcraster/Portfile | 79 ++++++++++++++++++++++
.../files/patch-configure_python_extension.diff | 37 ++++++++++
2 files changed, 116 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/pcraster/Portfile b/gis/pcraster/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..bc4a66d0665
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/pcraster/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,79 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup boost 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup qt5 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup pcraster pcraster 4.4.1 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories gis
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {yahoo.com:n_larsson @nilason} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description PCRaster - Environmental modelling software
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description PCRaster is a collection of tools and software libraries \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tailored to the construction of spatio-temporal \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ environmental models. Application domains are amongst \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ others hydrology (rainfall-runoff, global water balance, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ groundwater (with Modflow)), ecology, or land use change.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://pcraster.geo.uu.nl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 ed65c46146cffb85922d77b33c065ec11014a031 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 76782c9b01d5c14a46a0f2ddf141dc436e2082aa09e93bbccdc428e7580823f6 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 24894109
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-configure_python_extension.diff
</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;'>+ -DPCRASTER_BUILD_MLDD=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPCRASTER_BUILD_MOC=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPCRASTER_BUILD_MULTICORE=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPCRASTER_WITH_FLAGS_IPO=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[variant_isset debug]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cflags-append -DDEBUG_BUILD -DDEBUG_DEVELOP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxxflags-append -DDEBUG_BUILD -DDEBUG_DEVELOP
</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;'>+depends_lib-append port:gdal \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:ncurses \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:xercesc3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+qt5.depends_component qtcharts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Python variants
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_suffixes {310 311 312}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_variants {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set plugin_variants {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach pyver ${python_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend python_variants python${pyver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend plugin_variants plugin_support${pyver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach pyver ${python_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set vrt python${pyver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pyversion [string index ${pyver} 0].[string range ${pyver} 1 end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set index [lsearch -exact ${python_variants} ${vrt}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set conf [lreplace ${python_variants} ${index} ${index}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pydir ${frameworks_dir}/Python.framework/Versions/${pyversion}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant ${vrt} description "Use Python ${pyversion} bindings" conflicts {*}${conf} "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:python${pyver} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${pyver}-pybind11 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${pyver}-pyqt5-chart \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${pyver}-matplotlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${pyver}-numpy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DPython3_EXECUTABLE=${pydir}/bin/python${pyversion} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPCRASTER_PYTHON_INSTALL_DIR=${pydir}/lib/python${pyversion}/site-packages
</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;'>+# Python default (keep in sync with QGIS' default Python variant)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_default "if {"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach pyver ${python_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set python_default "${python_default}!\[variant_isset python${pyver}\] && "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_default [string range ${python_default} 0 end-4]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_default "${python_default}} { default_variants +python311}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+eval ${python_default}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/pcraster/files/patch-configure_python_extension.diff b/gis/pcraster/files/patch-configure_python_extension.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ad781114ab3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/pcraster/files/patch-configure_python_extension.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,37 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Reported upstream with https://github.com/pcraster/pcraster/issues/384
</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;'>+--- source/pcraster_moc/python/CMakeLists.txt.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ source/pcraster_moc/python/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,9 +25,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-configure_python_extension(_pcraster_moc_python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "_pcraster_moc"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# configure_python_extension(_pcraster_moc_python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# "_pcraster_moc"
</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;'>+ set_target_properties(_pcraster_moc_python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PROPERTIES
</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;'>+--- source/mldd/python/CMakeLists.txt.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ source/mldd/python/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -13,9 +13,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $<IF:$<CXX_COMPILER_ID:GNU>,Python3::Python,Python3::Module>
</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_python_extension(_pcraster_mldd_python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "_pcraster_mldd"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# configure_python_extension(_pcraster_mldd_python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# "_pcraster_mldd"
</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;'>+ set_target_properties(_pcraster_mldd_python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PROPERTIES
</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>