<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7ea0d36faeca103e8a043faef3373c8f4052abf1">https://github.com/macports/macports-ports/commit/7ea0d36faeca103e8a043faef3373c8f4052abf1</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7ea0d36faeca103e8a043faef3373c8f4052abf1
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Sat May 27 14:29:17 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> libxc{5,6}: portfile cleanup
</span>---
science/libxc5/Portfile | 16 +++++++---------
science/libxc6/Portfile | 18 ++++++++----------
2 files changed, 15 insertions(+), 19 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/libxc5/Portfile b/science/libxc5/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c347944e8c8..8d72eb75625 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/libxc5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/libxc5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,37 +13,35 @@ license MPL-2.0
</span> maintainers nomaintainer
description Exchange-correlation functionals for DFT
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> long_description Libxc is a library of exchange-correlation functionals \
for density-functional theory. The aim is to provide \
a portable, well tested and reliable set of exchange \
and correlation functionals that can be used by all \
the ETSF codes and also other codes.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> homepage https://www.tddft.org/programs/libxc
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> master_sites https://www.tddft.org/programs/libxc/down.php?file=${version}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+distname libxc-${version}
</span>
checksums rmd160 6293113e068e9af1409dc3fd7ed82fd5e33b1869 \
sha256 7b7a96d8eeb472c7b8cca7ac38eae27e0a8113ef44dae5359b0eb12592b4bcf2 \
size 45810705
<span style='display:block; white-space:pre;background:#ffe0e0;'>-distname libxc-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-cmake-macports.diff
</span>
compiler.c_standard 1999
# gcc-4.2 builds libxc5, but doesnʼt support -march=native and Fortran
compiler.blacklist-append *gcc-4.* {clang < 421}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-cmake-macports.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set libxc5_path ${prefix}/libexec/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set port_path ${prefix}/libexec/${name}
</span> configure.args-append \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=ON \
-DENABLE_CUDA=OFF \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DCMAKE_INSTALL_BINDIR=${libxc5_path}/bin \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DCMAKE_INSTALL_INCLUDEDIR=${libxc5_path}/include \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DCMAKE_INSTALL_LIBDIR=${libxc5_path}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_BINDIR=${port_path}/bin \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_INCLUDEDIR=${port_path}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_LIBDIR=${port_path}/lib
</span>
variant fortran description {Enable Fortran 2003} {
compilers.setup require_fortran
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/libxc6/Portfile b/science/libxc6/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b56d9b05ad6..77b9c184307 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/libxc6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/libxc6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,37 +13,35 @@ license MPL-2.0
</span> maintainers nomaintainer
description Exchange-correlation functionals for DFT
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> long_description Libxc is a library of exchange-correlation functionals \
for density-functional theory. The aim is to provide \
a portable, well tested and reliable set of exchange \
and correlation functionals that can be used by all \
the ETSF codes and also other codes.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> homepage https://www.tddft.org/programs/libxc
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> master_sites https://www.tddft.org/programs/libxc/down.php?file=${version}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+distname libxc-${version}
</span>
checksums rmd160 95d163f0652fa4dc0677145060e7129db41aed70 \
sha256 a3aa16915942543031a5d9c4a92c439ce54249bdcda8c91c4e69e65329dc9a54 \
size 63610774
<span style='display:block; white-space:pre;background:#ffe0e0;'>-distname libxc-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-cmake-macports.diff
</span>
compiler.c_standard 1999
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# gcc-4.2 doesnʼt support -march=native (on Intel) and Fortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# gcc-4.2 builds libxc5, but doesnʼt support -march=native and Fortran
</span> compiler.blacklist-append *gcc-4.* {clang < 421}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-cmake-macports.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set libxc6_path ${prefix}/libexec/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set port_path ${prefix}/libexec/${name}
</span> configure.args-append \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=ON \
-DENABLE_CUDA=OFF \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DCMAKE_INSTALL_BINDIR=${libxc6_path}/bin \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DCMAKE_INSTALL_INCLUDEDIR=${libxc6_path}/include \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DCMAKE_INSTALL_LIBDIR=${libxc6_path}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_BINDIR=${port_path}/bin \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_INCLUDEDIR=${port_path}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_LIBDIR=${port_path}/lib
</span>
variant fortran description {Enable Fortran 2003} {
compilers.setup require_fortran
</pre><pre style='margin:0'>
</pre>