<pre style='margin:0'>
Andrea D'Amore (anddam) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b7a93dbac8ac78e0725d35dd7f47a60e90e6d710">https://github.com/macports/macports-ports/commit/b7a93dbac8ac78e0725d35dd7f47a60e90e6d710</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b7a93dbac8ac78e0725d35dd7f47a60e90e6d710
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Sun Dec 11 10:34:21 2016 -0500
<span style='display:block; white-space:pre;color:#404040;'> gnuradio: update devel to 0ec18440 (20161210); remove $id$ line; add patch to fix building on 10.6 Snow Leopard due to missing function prototype, which addresses ticket https://trac.macports.org/ticket/53042 .
</span>---
science/gnuradio/Portfile | 16 +++++++++++-----
.../files/patch-gr-blocks_lib_float_array_to_int.cc.diff | 15 +++++++++++++++
2 files changed, 26 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/gnuradio/Portfile b/science/gnuradio/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c6f7949..9750a71 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/gnuradio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/gnuradio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,5 +1,4 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# $Id$
</span>
PortSystem 1.0
PortGroup cmake 1.0
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,11 +51,11 @@ subport gnuradio-devel {
</span> name gnuradio-devel
conflicts gnuradio gnuradio-next
<span style='display:block; white-space:pre;background:#ffe0e0;'>- github.setup gnuradio gnuradio db1a0a96785577c20dd254e6825eac050cf4d59b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- version 20161127
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup gnuradio gnuradio 0ec18440b11abe865f463474d99cf59be18b207f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 20161210
</span> checksums \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 2a296add4518adfff6ac10dd69548073faced0ce \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 22b851636b9d8d72ee33cb7aec2ecddb144bee5a6289ff294b1156d83e8ce29a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 a73f0263a64d3f077fe06183739b61c5a0640477 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 60486f1163a1a6b65a5a69894302915e7f66363535de008eb9a734533958e2a9
</span>
# set the version override string
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -113,6 +112,13 @@ if {${subport} eq "gnuradio"} {
</span>
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin 10 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # add missing long long math prototype accidentally
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # left out of snow leopard (10.6)'s <math.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-gr-blocks_lib_float_array_to_int.cc.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # override githib PortGroup homepage setting
homepage http://gnuradio.org/
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/gnuradio/files/patch-gr-blocks_lib_float_array_to_int.cc.diff b/science/gnuradio/files/patch-gr-blocks_lib_float_array_to_int.cc.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..4580e7f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/gnuradio/files/patch-gr-blocks_lib_float_array_to_int.cc.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gr-blocks/lib/float_array_to_int.cc.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gr-blocks/lib/float_array_to_int.cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -29,6 +29,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <math.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdint.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// declare missing long long math prototype accidentally
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// left out of snow leopard's <math.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ extern "C" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ extern long long int llrintf(float);
</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;'>+ static const int64_t MAX_INT = 2147483647; // (2^31)-1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static const int64_t MIN_INT = -2147483647; // -(2^31)-1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>