<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7224c34936150a2c92effc2f5cbe2ec41e4f6b54">https://github.com/macports/macports-ports/commit/7224c34936150a2c92effc2f5cbe2ec41e4f6b54</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7224c34936150a2c92effc2f5cbe2ec41e4f6b54
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Fri Jun 21 17:26:00 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> deal.ii: new port
</span>---
math/deal.ii/Portfile | 133 +++++++++++++++++++++++++++++
math/deal.ii/files/patch-boost_python.diff | 11 +++
2 files changed, 144 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/deal.ii/Portfile b/math/deal.ii/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..5e7d2ba
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/deal.ii/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,133 @@
</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 github 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 cxx11 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup mpi 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup linear_algebra 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup dealii dealii 9.1.1 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name deal.ii
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories math science
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license LGPL-2.1+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description a C++ software library supporting the creation of finite element codes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${name} is ${description}.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.dealii.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 24ae505937cbe6534bfdd2a1b1fa69717e34531c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 8c58efba9fc4a7b68812882b046915a2a31f8555b12071a0835ee565f27324b6 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 19912517
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+mpi.setup require_fortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+veclibfort no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-boost_python.diff
</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;'>+ cmake.build_type Debug
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake.build_type Release
</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;'>+# deal.II sets its own optimization flags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.optflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# see https://github.com/dealii/dealii/issues/6125
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DDEAL_II_WITH_CXX17=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# install location for LICENSE.md, README.md, detailed.log, summary.log, etc.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# install location for examples
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DDEAL_II_DOCREADME_RELDIR=share/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEAL_II_EXAMPLES_RELDIR=share/${name}/examples \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEAL_II_DOCHTML_RELDIR=share/${name}/doc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# always use MacPorts library
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DDEAL_II_ALLOW_BUNDLED=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Boost is the only mandatory dependency
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:boost
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# optional dependencies:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# deal.II requires a version of ADOLC-C that has not been released yet
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# (see https://github.com/dealii/dealii/issues/7293)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# CUDA requires a graphics card from Nvidia
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Ginkgo does not exist in MacPorts and requires CUDA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# p4est requires MPI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# PETSc requires MPI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# ScaLAPACK requires MPI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# SLEPc requires MPI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Trilinos is not in MacPorts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# see https://www.dealii.org/developer/readme.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# see https://www.dealii.org/developer/users/cmake.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DDEAL_II_WITH_ADOLC=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:arpack \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:assimp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append ${cmake_linalglib}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DDEAL_II_WITH_CUDA=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEAL_II_WITH_GINKGO=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:gmsh \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gsl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:hdf5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:metis \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:muparser \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:nanoflann \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:netcdf port:netcdf-cxx \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:opencascade
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DDEAL_II_WITH_P4EST=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEAL_II_WITH_PETSC=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEAL_II_WITH_SCALAPACK=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEAL_II_WITH_SLEPC=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:sundials2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:symengine \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:tbb
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DDEAL_II_WITH_TRILINOS=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:SuiteSparse_UMFPACK \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+mpi.enforce_variant hdf5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+mpi.enforce_variant sundials2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+mpi.enforce_variant petsc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[mpi_variant_isset]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:p4est \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:petsc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:scalapack \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:slepc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DDEAL_II_WITH_MPI=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete -DDEAL_II_WITH_P4EST=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEAL_II_WITH_PETSC=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEAL_II_WITH_SCALAPACK=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEAL_II_WITH_SLEPC=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DPETSC_DIR=${prefix}/lib/petsc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DSLEPC_DIR=${prefix}/lib/slepc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # SUNDIALS links against KLU from SuiteSparse
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append -lklu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DDEAL_II_WITH_MPI=OFF
</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;'>+variant docs description "Install ${name} documentation" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:doxygen \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:graphviz \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:perl5.28
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DDEAL_II_COMPONENT_DOCUMENTATION=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPERL_EXECUTABLE=${prefix}/bin/perl5.28
</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;'>+variant python description "install python bindings" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set python_branch 3.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set python_version [string map {. ""} ${python_branch}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:python${python_version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants boost python${python_version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DDEAL_II_COMPONENT_PYTHON_BINDINGS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON_EXECUTABLE=${prefix}/bin/python${python_branch} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEAL_II_PYTHON_RELDIR=${frameworks_dir}/Python.framework/Versions/${python_branch}/lib/python${python_branch}/site-packages/PyDealII
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/deal.ii/files/patch-boost_python.diff b/math/deal.ii/files/patch-boost_python.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..7090570
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/deal.ii/files/patch-boost_python.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- contrib/python-bindings/source/CMakeLists.txt.orig 2019-05-26 19:07:17.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ contrib/python-bindings/source/CMakeLists.txt 2019-06-21 08:14:22.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -35,7 +35,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(Boost_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Use the low level _FIND_PACKAGE function instead of our wrapper
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-_FIND_PACKAGE(Boost 1.54 COMPONENTS python)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++_FIND_PACKAGE(Boost 1.54 COMPONENTS python3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(NOT Boost_FOUND)
</span></pre><pre style='margin:0'>
</pre>