<pre style='margin:0'>
Sebastien Maret (smaret) pushed a commit to branch fix-57365
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2d6cc5cd94144ddc0f3ca51c350764ea29dd316e">https://github.com/macports/macports-ports/commit/2d6cc5cd94144ddc0f3ca51c350764ea29dd316e</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 2d6cc5cd94144ddc0f3ca51c350764ea29dd316e
</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 phase explicitly, and increase
</span><span style='display:block; white-space:pre;color:#404040;'> the revision number to force the rebuild of broken slatec
</span><span style='display:block; white-space:pre;color:#404040;'> 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 | 10 +++++-----
1 file changed, 5 insertions(+), 5 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 42fb4e4..6d0580b 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,13 +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;'>-post-fetch {
</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:#ffe0e0;'>-}
</span>
build.target libslatec.a
<span style='display:block; white-space:pre;background:#e0ffe0;'>+build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} "${build.cmd} -j${build.jobs} FC=${configure.fc} ${build.target}"
</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>