<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d959ca95a85873762ec230cd412775aa5504e4e6">https://github.com/macports/macports-ports/commit/d959ca95a85873762ec230cd412775aa5504e4e6</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 d959ca95a85 DMFTtools: new port in science
</span>d959ca95a85 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit d959ca95a85873762ec230cd412775aa5504e4e6
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Sun Jul 9 17:44:32 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> DMFTtools: new port in science
</span>---
science/DMFTtools/Portfile | 53 +++++++++++++++++++
science/DMFTtools/files/patch-dmft_tools.pc.diff | 17 ++++++
science/DMFTtools/files/patch-prefix.diff | 66 ++++++++++++++++++++++++
3 files changed, 136 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/DMFTtools/Portfile b/science/DMFTtools/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..f8f5fc362d2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/DMFTtools/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,53 @@
</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 cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compilers 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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup QcmPlab DMFTtools 2.6.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories science fortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license LGPL-3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description A collection of Fortran modules and routines to support quantum many-body calculations, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ with a strong focus on Dynamical Mean-Field Theory
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 2a70f56c6a258d0ff21dacbcfc5054e555db218d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 6515010580fd53f8b82f66c686f0423da1aa41ed8c26a33c63994988554fbec7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 190940
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.generator Ninja
</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;'>+ port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:scifor
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-prefix.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-dmft_tools.pc.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s,@PREFIX@,${prefix}," ${worksrcpath}/cmake/MainConfig.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s,@PREFIX@,${prefix}," ${worksrcpath}/etc/dmft_tools.pc.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s,@VERSION@,${version}," ${worksrcpath}/etc/dmft_tools.pc.in
</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;'>+compilers.choose fc f90
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compilers.setup require_fortran -g95
</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;'>+ -DUSE_MPI=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Provided install scripts are a mess, avoid them.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${build.dir}/libdmft_tools.a ${destroot}/${prefix}/lib/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/lib/pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${worksrcpath}/etc/dmft_tools.pc.in ${destroot}${prefix}/lib/pkgconfig/dmft_tools.pc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/include/dmft_tools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fs-traverse f ${build.dir}/include {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file isfile ${f}] && [file extension ${f}] == ".mod"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${f} ${destroot}${prefix}/include/dmft_tools/
</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;color:#808080;'>diff --git a/science/DMFTtools/files/patch-dmft_tools.pc.diff b/science/DMFTtools/files/patch-dmft_tools.pc.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c3949ba1979
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/DMFTtools/files/patch-dmft_tools.pc.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- etc/dmft_tools.pc.in.orig 2023-02-16 20:49:32.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ etc/dmft_tools.pc.in 2023-07-09 17:30:00.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,10 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-prefix=@CMAKE_INSTALL_PREFIX@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++prefix=@PREFIX@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exec_prefix=${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ includedir=${prefix}/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libdir=${prefix}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Name: dmft_tools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-Description: A DMFT & Cond.Mat. collections of routines
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-Version:@VERSION@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-Cflags: -I${includedir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++Description: A DMFT & Cond. Mat. collections of routines
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++Version: @VERSION@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++Cflags: -I${includedir}/dmft_tools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Libs: -L${libdir} -ldmft_tools
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/DMFTtools/files/patch-prefix.diff b/science/DMFTtools/files/patch-prefix.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..defc1dd4b6e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/DMFTtools/files/patch-prefix.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,66 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- cmake/MainConfig.cmake.orig 2023-02-16 20:49:32.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cmake/MainConfig.cmake 2023-07-09 17:27:58.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,44 +1,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(USER_HOME $ENV{HOME})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(USER $ENV{USER})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-STRING(TOLOWER "${CMAKE_Fortran_COMPILER_ID}" FC_ID)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-STRING(TOLOWER "${CMAKE_BUILD_TYPE}" BUILD_TYPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#default prefix is $HOME/opt/<libname>/<fc_id>/[<git_branch>[/<debug>]]/<version>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SET(PREFIX_DEF_LOC "$ENV{HOME}/opt")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SET(PREFIX_PROJ "${PROJECT_NAME}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SET(PREFIX_PATH "${FC_ID}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #user can change the default location of the library but not the remaining naming conventions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SET(PREFIX "${PREFIX_DEF_LOC}" CACHE PATH "Prefix prepended to install directories")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if prefix has not be changed use default module name conventions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-IF(PREFIX STREQUAL "${PREFIX_DEF_LOC}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET(USE_DEFAULT_MODULE_NAME TRUE)
</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;'>+-#if not master branch, include simplified branch name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-IF( (NOT GIT_BRANCH MATCHES "master") )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET(PREFIX_PATH "${PREFIX_PATH}/${GIT_BRANCH}")
</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;'>+-#If DEBUG, add /debug to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-IF("${BUILD_TYPE}" MATCHES "debug")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET(PREFIX_PATH "${PREFIX_PATH}/${BUILD_TYPE}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ENDIF()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(PREFIX "@PREFIX@" CACHE PATH "Prefix prepended to install directories")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #set default prefix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SET(FULL_VER "${PREFIX_PATH}/${VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SET(VERSION_PATH "${PREFIX_PROJ}/${PREFIX_PATH}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SET(DEFAULT_PREFIX "${PREFIX}/${PREFIX_PROJ}/${PREFIX_PATH}/${VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SET(CMAKE_INSTALL_PREFIX "${DEFAULT_PREFIX}" CACHE INTERNAL "Prefix prepended to install directories" FORCE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#Now set module name corresponding to given prefix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if prefix is default nothing to be done.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if user defined prefix prepend
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-IF(USE_DEFAULT_MODULE_NAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET(MODULE_NAME "${PREFIX_PROJ}/${PREFIX_PATH}/${VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ELSE()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET(MODULE_NAME "${PREFIX_PROJ}/user_prefix/${PREFIX_PATH}/${VERSION}")
</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;'>++SET(CMAKE_INSTALL_PREFIX "${PREFIX}" CACHE INTERNAL "Prefix prepended to install directories" FORCE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig 2023-02-16 20:49:32.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2023-07-09 17:28:24.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -171,13 +171,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GROUP_WRITE GROUP_READ GROUP_EXECUTE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WORLD_WRITE WORLD_READ WORLD_EXECUTE)
</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;'>+-#Build the PKG-CONFIG file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SET(TMP_PKCONFIG_FILE ${LIB_TMP_ETC}/${PROJECT_NAME}.pc)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CONFIGURE_FILE( ${LIB_ETC}/${PROJECT_NAME}.pc.in ${TMP_PKCONFIG_FILE} @ONLY)
</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;'>+-############################################################
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-INCLUDE(${CMAKE_MODULE_PATH}/PostConfig.cmake)
</span></pre><pre style='margin:0'>
</pre>