<pre style='margin:0'>
rainbow (ra1nb0w) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/cc393760cdb4f5e0a62e77f6e0ef37ef3dba6c0a">https://github.com/macports/macports-ports/commit/cc393760cdb4f5e0a62e77f6e0ef37ef3dba6c0a</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 cc39376 linrad: fix architecture discovery
</span>cc39376 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit cc393760cdb4f5e0a62e77f6e0ef37ef3dba6c0a
</span>Author: Davide Gerhard <ra1nb0w@macports.org>
AuthorDate: Sun Apr 12 16:04:02 2020 +0200
<span style='display:block; white-space:pre;color:#404040;'> linrad: fix architecture discovery
</span>---
science/linrad/Portfile | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/linrad/Portfile b/science/linrad/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e094c72..fc10251 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/linrad/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/linrad/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,8 +18,15 @@ svn.url https://svn.code.sf.net/p/linrad/code/trunk/
</span> svn.revision 964
version 20200411-${svn.revision}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# as default we use 64
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set linrad_arch 64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# set the arch to use during build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${build_arch} eq "i386"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set linrad_arch 32
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${build_arch} eq "x86_64"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set linrad_arch 64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${name} is not supported on your platform. Use Intel architecture."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "Unsupported architecture"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
patchfiles-append \
fix_data_directory.patch \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,15 +60,6 @@ configure.args-append \
</span> build.target xlinrad${linrad_arch}
pre-configure {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${build_arch} eq "i386"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set linrad_arch 32
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {${build_arch} eq "x86_64"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set linrad_arch 64
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${name} is not supported on your platform. Use Intel architecture."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "Unsupported architecture"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> reinplace "s|@LINRAD_BINARY@|${prefix}/bin/xlinrad${linrad_arch}|" ${worksrcpath}/bin/linrad
reinplace "s|@HELP_DIR@|${prefix}/share/${name}|" ${worksrcpath}/help.c
reinplace "s|@HELP_DIR@|${prefix}/share/${name}|" ${worksrcpath}/menu.c
</pre><pre style='margin:0'>
</pre>