<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/c363173174a3ee15f692cc57b25df9a4d55c1efb">https://github.com/macports/macports-ports/commit/c363173174a3ee15f692cc57b25df9a4d55c1efb</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new c363173 hpddm: new port
</span>c363173 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit c363173174a3ee15f692cc57b25df9a4d55c1efb
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sat Nov 10 17:20:38 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> hpddm: new port
</span>---
math/hpddm/Portfile | 89 ++++++++++++++++++++++++++++++++
math/hpddm/files/patch-install_name.diff | 18 +++++++
2 files changed, 107 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/hpddm/Portfile b/math/hpddm/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..4a22a59
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/hpddm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,89 @@
</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 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;'>+PortGroup cxx11 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup muniversal 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup hpddm hpddm 58158b54b1ff9f916b85f897adfb6993093d220f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# see ${worksrcpath}/include/HPDDM.hpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 993
</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-3+
</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 framework for high-performance domain decomposition methods
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ HPDDM is an efficient implementation of various domain decomposition methods.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 38f92cca0a91f8d94852cd160c8bc0fa6f583552 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 4499193e0127d6968bccec68666b96c0268d3b21e971a1cec50eed21b512c2f9 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 248106
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+mpi.setup require require_fortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:python27 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:mumps \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:arpack \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:scalapack \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:hypre
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-install_name.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|__MACPORTS_PREFIX__|${prefix}|g" ${worksrcpath}/Makefile
</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;'>+# see https://lists.macports.org/pipermail/macports-dev/2018-November/thread.html#39694
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/Make.inc/Makefile.OSX ${worksrcpath}/Makefile.inc
</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;'>+ configure.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MPICXX=${configure.cxx} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MPICC=${configure.cc} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MPIF90=${configure.f90} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MPIRUN="${prefix}/bin/${mpi.exec} -np" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MUMPS_INCS=-I${prefix}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PYTHON_INCS=-I${prefix}/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BLAS_LIBS="-L${prefix}/lib ${linalglib}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ARPACK_LIBS="-L${prefix}/lib -larpack" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SCALAPACK_LIBS="-L${prefix}/lib -lscalapack" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MUMPS_LIBS="-L${prefix}/lib -lmumps_common -lsmumps -ldmumps -lcmumps -lzmumps -lpord" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ HYPRE_LIBS="-L${prefix}/lib -lHYPRE" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PYTHON_LIBS="-L${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib -lpython2.7"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cmd printenv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.pre_args
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.universal_args
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.post_args {>> Makefile.inc}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach flags {CXXFLAGS CFLAGS} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|^${flags}=|override ${flags}+=|g" ${worksrcpath}/Makefile.inc
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Makefile searches for gfortran in $(MPIF90) name, which is not always true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# even though $(MPIF90) uses gfortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args-append F90MOD=-J
</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 -m 0755 ${destroot}${prefix}/include/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 {*}[glob ${worksrcpath}/include/*] ${destroot}${prefix}/include/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 {*}[glob ${worksrcpath}/lib/*.dylib] ${destroot}${prefix}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #xinstall -m 0644 {*}[glob ${worksrcpath}/lib/*.a] ${destroot}${prefix}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach bin {custom_operator schwarz_c schwarz_cpp} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 ${worksrcpath}/bin/${bin} ${destroot}${prefix}/bin
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_test-append port:py27-mpi4py \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py27-numpy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py27-scipy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-test {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.args-append PATH=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin:$env(PATH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/hpddm/files/patch-install_name.diff b/math/hpddm/files/patch-install_name.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..440563d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/hpddm/files/patch-install_name.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile.orig 2018-09-18 00:52:23.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile 2018-11-10 09:25:13.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -240,11 +240,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${TOP_DIR}/${LIB_DIR}/lib%.${EXTENSION_LIB}: interface/%.cpp ${TOP_DIR}/${TRASH_DIR}/%.d ${TOP_DIR}/${TRASH_DIR}/compiler_flags_cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @if [ "$<" = "interface/hpddm_python.cpp" ]; then \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- echo ${MPICXX} ${DEPFLAGS} ${CXXFLAGS} ${HPDDMFLAGS} ${INCS} ${PYTHON_INCS} -shared $< -o $@ ${LIBS} ${PYTHON_LIBS}; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${MPICXX} ${DEPFLAGS} ${CXXFLAGS} ${HPDDMFLAGS} ${INCS} ${PYTHON_INCS} -shared $< -o $@ ${LIBS} ${PYTHON_LIBS}; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ echo ${MPICXX} ${DEPFLAGS} ${CXXFLAGS} ${HPDDMFLAGS} ${INCS} ${PYTHON_INCS} -shared -install_name __MACPORTS_PREFIX__/lib/$(notdir $@) $< -o $@ ${LIBS} ${PYTHON_LIBS}; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${MPICXX} ${DEPFLAGS} ${CXXFLAGS} ${HPDDMFLAGS} ${INCS} ${PYTHON_INCS} -shared -install_name __MACPORTS_PREFIX__/lib/$(notdir $@) $< -o $@ ${LIBS} ${PYTHON_LIBS}; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- echo ${MPICXX} ${DEPFLAGS} ${CXXFLAGS} ${HPDDMFLAGS} ${INCS} -shared $< -o $@ ${LIBS}; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${MPICXX} ${DEPFLAGS} ${CXXFLAGS} ${HPDDMFLAGS} ${INCS} -shared $< -o $@ ${LIBS}; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ echo ${MPICXX} ${DEPFLAGS} ${CXXFLAGS} ${HPDDMFLAGS} ${INCS} -shared -install_name __MACPORTS_PREFIX__/lib/$(notdir $@) $< -o $@ ${LIBS}; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${MPICXX} ${DEPFLAGS} ${CXXFLAGS} ${HPDDMFLAGS} ${INCS} -shared -install_name __MACPORTS_PREFIX__/lib/$(notdir $@) $< -o $@ ${LIBS}; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${POSTCOMPILE}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>