[125409] trunk/dports/science/gr-mac

michaelld at macports.org michaelld at macports.org
Tue Sep 16 19:54:16 PDT 2014


Revision: 125409
          https://trac.macports.org/changeset/125409
Author:   michaelld at macports.org
Date:     2014-09-16 19:54:15 -0700 (Tue, 16 Sep 2014)
Log Message:
-----------
gr-mac: add patch to fix packet_to_pdu block functionality, and notes on how to make use of this GNU Radio module once it is installed.

Modified Paths:
--------------
    trunk/dports/science/gr-mac/Portfile

Added Paths:
-----------
    trunk/dports/science/gr-mac/files/patch-python_packet_framer.py.diff

Modified: trunk/dports/science/gr-mac/Portfile
===================================================================
--- trunk/dports/science/gr-mac/Portfile	2014-09-17 02:18:10 UTC (rev 125408)
+++ trunk/dports/science/gr-mac/Portfile	2014-09-17 02:54:15 UTC (rev 125409)
@@ -8,6 +8,7 @@
 
 github.setup        jmalsbury gr-mac 0d636dd36a8e1667198aa59631d0d87dd17c6815
 version             20140913
+revision            1
 checksums           rmd160 3f70e72df016eee7a8a9f2c5ee4bc77b6dabc13a \
                     sha256 d28b32375c9d4e4169cb1c274f5921ba1280ffb546b97b7c34637330ab66598f
 
@@ -47,8 +48,13 @@
 build.dir           ${workpath}/build
 
 # temporary patch to fix CMake stuff on OSX
+
 patchfiles-append   patch-CMakeLists.txt.diff
 
+# temporary patch to fix packet_to_pdu block functionality
+
+patchfiles-append   patch-python_packet_framer.py.diff
+
 # remove top-level library path, such that internal libraries are used
 # instead of any already-installed ones.
 
@@ -126,3 +132,17 @@
     ![variant_isset python27]} {
     return -code error "Exactly one Python variant must be selected."
 }
+
+notes "
++-------------------------
+| Before ${name} will work correctly, you will need to execute
+|
+|   ${prefix}/bin/grcc ${prefix}/share/examples/mac/gmsk_radio.grc
+|
+| and
+|
+|   ${prefix}/bin/grcc ${prefix}/share/examples/mac/ofdm_radio.grc
+|
+| as the user as which you want to use ${name}.
++-------------------------
+"

Added: trunk/dports/science/gr-mac/files/patch-python_packet_framer.py.diff
===================================================================
--- trunk/dports/science/gr-mac/files/patch-python_packet_framer.py.diff	                        (rev 0)
+++ trunk/dports/science/gr-mac/files/patch-python_packet_framer.py.diff	2014-09-17 02:54:15 UTC (rev 125409)
@@ -0,0 +1,23 @@
+--- python/packet_framer.py.orig	2014-09-16 22:16:19.000000000 -0400
++++ python/packet_framer.py	2014-09-16 22:16:43.000000000 -0400
+@@ -177,7 +177,6 @@
+         self.dewhiten = dewhiten
+         self.output_invalid = output_invalid
+         self.thread = None
+-        self.start()
+     def post_data(self, data, type=None, arg1=None, arg2=None):
+         ok, payload = packet_utils.unmake_packet(data, int(arg1), self.dewhiten)
+         if not ok:
+@@ -193,10 +192,12 @@
+         if self.thread is None:
+             self.thread = msg_to_pdu_thread(self.msgq, self.post_data)
+             self.thread.start()
++        return True
+     def stop(self):
+         if self.thread:
+             self.thread.stop()
+             self.thread = None
++        return True
+     def __del__(self):
+         self.stop()
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140916/217a6698/attachment.html>


More information about the macports-changes mailing list