<pre style='margin:0'>
David Strubbe (dstrubbe) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7005b84532e6e72640e36a9e632ac2e2759d4131">https://github.com/macports/macports-ports/commit/7005b84532e6e72640e36a9e632ac2e2759d4131</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7005b84532e6e72640e36a9e632ac2e2759d4131
</span>Author: Giovanni Bussi <giovanni.bussi@gmail.com>
AuthorDate: Thu Aug 31 08:54:12 2017 +0200
<span style='display:block; white-space:pre;color:#404040;'> New subport: gromacs-plumed
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This subport allows installing gromacs with plumed support.
</span>---
science/gromacs/Portfile | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/gromacs/Portfile b/science/gromacs/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2a546fa..ef410db 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/gromacs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/gromacs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -81,6 +81,29 @@ post-test {
</span> #For more information and tips for troubleshooting, please check the GROMACS
#website at http://www.gromacs.org/Documentation/Errors
<span style='display:block; white-space:pre;background:#e0ffe0;'>+## ADDITION FOR PLUMED SUBPORT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport gromacs-plumed {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description ${description}: \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ THIS PORT INSTALLS A VERSION OF GROMACS PATCHED WITH PLUMED
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts gromacs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:plumed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:plumed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mpi.enforce_variant plumed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# I need to execute with full path since PATH variable is not properly set here
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Also notice that I am patching with runtime. Notice that
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# plumed compiled for MacPorts have the hardcoded path also in the runtime patch.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This allows the user to work with MacPorts plumed and possibly
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# override the choice setting the PLUMED_KERNEL environment variable.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Also notice that gromacs version is hardcoded here. Plumed patch is not always
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# updated when gromacs is.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exec ${prefix}/bin/plumed patch --mdroot=${worksrcpath} -e gromacs-5.1.4 --runtime -p
</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;'>+## END ADDITION FOR PLUMED SUBPORT ONLY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> linalg.setup noveclibfort
pre-configure {
if {[mpi_variant_isset]} {
</pre><pre style='margin:0'>
</pre>