<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2e9192c89f2a7d4280efce09564f47331c48c0cf">https://github.com/macports/macports-ports/commit/2e9192c89f2a7d4280efce09564f47331c48c0cf</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 2e9192c slatec: set the fortran compiler properly
</span>2e9192c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 2e9192c89f2a7d4280efce09564f47331c48c0cf
</span>Author: Sebastien Maret <sebastien.maret@univ-grenoble-alpes.fr>
AuthorDate: Fri Oct 19 12:39:58 2018 +0200
<span style='display:block; white-space:pre;color:#404040;'> slatec: set the fortran compiler properly
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Setting the Fortran compiler with FC=${configure.fc} in
</span><span style='display:block; white-space:pre;color:#404040;'> build.args-append results in an empty FC variable. Oddly, the build
</span><span style='display:block; white-space:pre;color:#404040;'> with an empty FC does not fail, but the libslatec.a it produces is
</span><span style='display:block; white-space:pre;color:#404040;'> broken. Fix this by setting the build.args-append within a pre-build
</span><span style='display:block; white-space:pre;color:#404040;'> block, and increase the revision number to force the rebuild of broken
</span><span style='display:block; white-space:pre;color:#404040;'> slatec installations.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes https://trac.macports.org/ticket/57365
</span>---
science/slatec/Portfile | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/slatec/Portfile b/science/slatec/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9344251..0cf70ba 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/slatec/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/slatec/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup compilers 1.0
</span>
name slatec
version 4.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> categories science math
platforms darwin
maintainers gmail.com:sebastien.maret
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,10 +31,13 @@ use_configure no
</span>
compilers.choose fc f77 f90
compilers.setup require_fortran
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build.args-append FC=${configure.fc}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> build.target libslatec.a
<span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args-append FC=${configure.fc}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> destroot {
xinstall -m 644 ${worksrcpath}/static/libslatec.a ${destroot}${prefix}/lib
}
</pre><pre style='margin:0'>
</pre>