[125000] trunk/dports/science/gnuradio

michaelld at macports.org michaelld at macports.org
Tue Sep 2 07:30:00 PDT 2014


Revision: 125000
          https://trac.macports.org/changeset/125000
Author:   michaelld at macports.org
Date:     2014-09-02 07:30:00 -0700 (Tue, 02 Sep 2014)
Log Message:
-----------
gnuradio:
+ update release to 3.7.5;
+ update devel to 1a1f502b and next to dd52842b, both 20140830;
+ fix version setting to be more robust;
+ move release below legacy to keep like ports together;
+ remove integrated patchfile.

Modified Paths:
--------------
    trunk/dports/science/gnuradio/Portfile
    trunk/dports/science/gnuradio/files/patch-cmake-expand.release.diff
    trunk/dports/science/gnuradio/files/patch-remove-SIZE_T_32.diff

Removed Paths:
-------------
    trunk/dports/science/gnuradio/files/patch-CMAKE_MODULES_DIR.diff

Modified: trunk/dports/science/gnuradio/Portfile
===================================================================
--- trunk/dports/science/gnuradio/Portfile	2014-09-02 13:48:03 UTC (rev 124999)
+++ trunk/dports/science/gnuradio/Portfile	2014-09-02 14:30:00 UTC (rev 125000)
@@ -20,27 +20,6 @@
 
 dist_subdir         gnuradio
 
-if {${subport} eq ${name}} {
-
-    github.setup    gnuradio gnuradio 3.7.4 v
-    revision        1
-
-    long_description    ${description}: \
-        This port is kept up with the GNU Radio release, currently ${version}, which is typically updated every few months.
-
-    conflicts       gnuradio-legacy gnuradio-next gnuradio-devel
-
-    checksums \
-        rmd160 565f1a840502664e5a142cb314d566c243e0c584 \
-        sha256 960433dd098f6a536f1e04a10d5b2c5e9f1dbed17caa7130aa16165743b90489
-
-    # overload the github livecheck regex to look for versions that
-    # are just numbers and '.', no letters (e.g., "3.7.3git").
-
-    livecheck.regex archive/[join ${github.tag_prefix} ""](\[0-9\.\]+)${extract.suffix}
-
-}
-
 subport gnuradio-legacy {
 
     name            gnuradio-legacy
@@ -85,20 +64,52 @@
 
 }
 
+# set top-level versions for release, delel, and next
+
+set major           3
+set minor_base      7
+set patch           5
+set minor_next      [expr {${minor_base} + 1}]
+set patch_devel     [expr {${patch} + 1}]
+set branch_base     [join "${major} ${minor_base}" .]
+set base_version    [join "${branch_base} ${patch}" .]
+set devel_version   [join "${branch_base} ${patch_devel}" .]
+set next_version    [join "${major} ${minor_next}" .]
+
+if {${subport} eq ${name}} {
+
+    github.setup    gnuradio gnuradio ${base_version} v
+
+    long_description    ${description}: \
+        This port is kept up with the GNU Radio release, currently ${version}, which is typically updated every few months.
+
+    conflicts       gnuradio-legacy gnuradio-next gnuradio-devel
+
+    checksums \
+        rmd160 0b04edbc816210ed40607b29fa8c93ba9902c8f2 \
+        sha256 5a573d7b84a09bb9549f7a8f08e9909ef1d71b16d8eeb446c6b153a175d46e16
+
+    # overload the github livecheck regex to look for versions that
+    # are just numbers and '.', no letters (e.g., "3.7.3git").
+
+    livecheck.regex archive/[join ${github.tag_prefix} ""](\[0-9\.\]+)${extract.suffix}
+
+}
+
 subport gnuradio-devel {
 
     long_description    ${description}: \
         This port is kept up with the GNU Radio GIT 'master' branch, which is typically updated daily to weekly.  This version of GNU Radio generally contains fixes to, and its API is compatible with, the current GNU Radio release, and will be incorporated in an upcoming release.  This port may or not compile or function correctly, as it represents a work in progress.  If it does not work, check back in a few days.  Or try deactivating the currently active gnuradio port, cleaning any current builds, and trying again.
 
     name                gnuradio-devel
-    github.setup        gnuradio gnuradio 76a271ac7d79c7b857e6b47b8d35386eaafde617
-    version             3.7.5_20140826
+    github.setup        gnuradio gnuradio 1a1f502b5dc4fa10d471a49795dddd54a9b4e444
+    version             ${devel_version}_20140830
 
     conflicts           gnuradio-legacy gnuradio gnuradio-next
 
     checksums \
-        rmd160 b23d7d874632992da34afa05440a8205f031cdcd \
-        sha256 8be9dfbe0ebbfbefb79ca50bc3df42f58016f631a317e9d4acd4b43a7b7ff03e
+        rmd160 48a055185cc9c89a7f5ec769378744b701de1853 \
+        sha256 7cf7ba618d38be4c43eb74487961a4c1121342fe2a48e0057f4f538d4b54df66
 
 }
 
@@ -108,14 +119,14 @@
         This port is kept up with the GNU Radio GIT 'next' branch, which is typically updated daily to weekly.  This version of GNU Radio represents the next major release of GNU Radio, and hence its API is likely to be different than that provided by either gnuradio or gnuradio-devel.  This port may or not compile or function correctly, as it represents a work in progress.  If it does not work, check back in a few days.  Or try deactivating the currently active gnuradio port, cleaning any current builds, and trying again.
 
     name                gnuradio-next
-    github.setup        gnuradio gnuradio 954444af3529389b6cfe3ce6979da27805855bfa
-    version             3.8.0_20140826
+    github.setup        gnuradio gnuradio dd52842b4b4164191e7a949787dac5d56cbfb1a4
+    version             ${next_version}_20140830
 
     conflicts           gnuradio-legacy gnuradio gnuradio-devel
 
     checksums \
-        rmd160 60a4a65383e43fe1e83e131a58c1ecd0d7ff5311 \
-        sha256 7591960e6e528014f521bb46694f97d479b1db1ec1af50c3206427365b12a26e
+        rmd160 da052c1a6e6d811b21daaeefe3c0a16d1f2c4263 \
+        sha256 e37ffc214c3ec2adab33175da80f364ad0a1a2b790258f3c9bc6e220d2abe1a0
 
     # overload the github livecheck URL with the correct branch
 
@@ -134,10 +145,6 @@
 
     patchfiles-append patch-remove-SIZE_T_32.diff
 
-    # temporary patch to fix CMAKE_MODULES_DIR
-
-    patchfiles-append patch-CMAKE_MODULES_DIR.diff
-
     # temporary patch to fix header creation to be before dependencies
     # are determined, such that local (to the build) headers are found
     # before already-installed ones.

Deleted: trunk/dports/science/gnuradio/files/patch-CMAKE_MODULES_DIR.diff
===================================================================
--- trunk/dports/science/gnuradio/files/patch-CMAKE_MODULES_DIR.diff	2014-09-02 13:48:03 UTC (rev 124999)
+++ trunk/dports/science/gnuradio/files/patch-CMAKE_MODULES_DIR.diff	2014-09-02 14:30:00 UTC (rev 125000)
@@ -1,38 +0,0 @@
---- CMakeLists.txt.orig
-+++ CMakeLists.txt
-@@ -364,7 +364,7 @@ SET(cmake_configs
- )
- 
- if(NOT CMAKE_MODULES_DIR)
--   set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake/gnuradio)
-+  set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
- endif(NOT CMAKE_MODULES_DIR)
- 
- # Install all other cmake files into same directory
-@@ -375,7 +375,7 @@ list(REMOVE_ITEM cmake_others
- 
- install(
-   FILES ${cmake_configs} ${cmake_others}
--  DESTINATION ${CMAKE_MODULES_DIR}
-+  DESTINATION ${CMAKE_MODULES_DIR}/gnuradio
-   COMPONENT "runtime_devel"
- )
- 
---- volk/CMakeLists.txt.orig
-+++ volk/CMakeLists.txt
-@@ -135,9 +135,14 @@ install(FILES
- ########################################################################
- # Install cmake search routine for external use
- ########################################################################
-+
-+if(NOT CMAKE_MODULES_DIR)
-+    set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
-+endif(NOT CMAKE_MODULES_DIR)
-+
- install(
-     FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/VolkConfig.cmake
--    DESTINATION lib${LIB_SUFFIX}/cmake/volk/
-+    DESTINATION ${CMAKE_MODULES_DIR}/volk
-     COMPONENT "volk_devel"
- )
- 

Modified: trunk/dports/science/gnuradio/files/patch-cmake-expand.release.diff
===================================================================
--- trunk/dports/science/gnuradio/files/patch-cmake-expand.release.diff	2014-09-02 13:48:03 UTC (rev 124999)
+++ trunk/dports/science/gnuradio/files/patch-cmake-expand.release.diff	2014-09-02 14:30:00 UTC (rev 125000)
@@ -1,41 +1,9 @@
---- cmake/Modules/GrMiscUtils.cmake.orig
-+++ cmake/Modules/GrMiscUtils.cmake
-@@ -345,3 +345,210 @@ set(CMAKE_REQUIRED_LIBRARIES -lpthread)
-     GR_ADD_COND_DEF(HAVE_SCHED_SETSCHEDULER)
- endmacro(GR_CHECK_LINUX_SCHED_AVAIL)
+--- cmake/Modules/GrMiscUtils.cmake.orig	2014-07-28 15:14:06.000000000 -0400
++++ cmake/Modules/GrMiscUtils.cmake	2014-07-29 09:35:15.000000000 -0400
+@@ -383,6 +383,13 @@
+   endforeach(sig)
+   unset(name)
  
-+########################################################################
-+# Macros to generate source and header files from template
-+########################################################################
-+macro(GR_EXPAND_X_H component root)
-+
-+  include(GrPython)
-+
-+  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
-+"#!${PYTHON_EXECUTABLE}
-+
-+import sys, os, re
-+sys.path.append('${GR_RUNTIME_PYTHONPATH}')
-+os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
-+os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
-+
-+if __name__ == '__main__':
-+    import build_utils
-+    root, inp = sys.argv[1:3]
-+    for sig in sys.argv[3:]:
-+        name = re.sub ('X+', sig, root)
-+        d = build_utils.standard_dict2(name, sig, '${component}')
-+        build_utils.expand_template(d, inp)
-+")
-+
-+  #make a list of all the generated headers
-+  unset(expanded_files_h)
-+  foreach(sig ${ARGN})
-+    string(REGEX REPLACE "X+" ${sig} name ${root})
-+    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
-+  endforeach(sig)
-+  unset(name)
-+
 +  #try to force generate the headers
 +  execute_process(
 +    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
@@ -43,51 +11,13 @@
 +    ${root} ${root}.h.t ${ARGN}
 +  )
 +
-+  #create a command to generate the headers
-+  add_custom_command(
-+    OUTPUT ${expanded_files_h}
-+    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
-+    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
-+    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
-+    ${root} ${root}.h.t ${ARGN}
-+  )
-+
-+  #install rules for the generated headers
-+  list(APPEND generated_includes ${expanded_files_h})
-+
-+endmacro(GR_EXPAND_X_H)
-+
-+macro(GR_EXPAND_X_CC_H component root)
-+
-+  include(GrPython)
-+
-+  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
-+"#!${PYTHON_EXECUTABLE}
-+
-+import sys, os, re
-+sys.path.append('${GR_RUNTIME_PYTHONPATH}')
-+os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
-+os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
-+
-+if __name__ == '__main__':
-+    import build_utils
-+    root, inp = sys.argv[1:3]
-+    for sig in sys.argv[3:]:
-+        name = re.sub ('X+', sig, root)
-+        d = build_utils.standard_impl_dict2(name, sig, '${component}')
-+        build_utils.expand_template(d, inp)
-+")
-+
-+  #make a list of all the generated files
-+  unset(expanded_files_cc)
-+  unset(expanded_files_h)
-+  foreach(sig ${ARGN})
-+    string(REGEX REPLACE "X+" ${sig} name ${root})
-+    list(APPEND expanded_files_cc ${CMAKE_CURRENT_BINARY_DIR}/${name}.cc)
-+    list(APPEND expanded_files_h  ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
-+  endforeach(sig)
-+  unset(name)
-+
+   #create a command to generate the headers
+   add_custom_command(
+     OUTPUT ${expanded_files_h}
+@@ -428,6 +435,13 @@
+   endforeach(sig)
+   unset(name)
+ 
 +  #try to force generate the source files
 +  execute_process(
 +    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
@@ -95,15 +25,13 @@
 +    ${root} ${root}.cc.t ${ARGN}
 +  )
 +
-+  #create a command to generate the source files
-+  add_custom_command(
-+    OUTPUT ${expanded_files_cc}
-+    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.cc.t
-+    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
-+    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
-+    ${root} ${root}.cc.t ${ARGN}
-+  )
-+
+   #create a command to generate the source files
+   add_custom_command(
+     OUTPUT ${expanded_files_cc}
+@@ -437,6 +451,13 @@
+     ${root} ${root}.cc.t ${ARGN}
+   )
+ 
 +  #try to force generate the header files
 +  execute_process(
 +    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
@@ -111,59 +39,13 @@
 +    ${root} ${root}.h.t ${ARGN}
 +  )
 +
-+  #create a command to generate the header files
-+  add_custom_command(
-+    OUTPUT ${expanded_files_h}
-+    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
-+    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
-+    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
-+    ${root} ${root}.h.t ${ARGN}
-+  )
-+
-+  #make source files depends on headers to force generation
-+  set_source_files_properties(${expanded_files_cc}
-+    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
-+  )
-+
-+  #install rules for the generated files
-+  list(APPEND generated_sources ${expanded_files_cc})
-+  list(APPEND generated_headers ${expanded_files_h})
-+
-+endmacro(GR_EXPAND_X_CC_H)
-+
-+macro(GR_EXPAND_X_CC_H_IMPL component root)
-+
-+  include(GrPython)
-+
-+  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
-+"#!${PYTHON_EXECUTABLE}
-+
-+import sys, os, re
-+sys.path.append('${GR_RUNTIME_PYTHONPATH}')
-+os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
-+os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
-+
-+if __name__ == '__main__':
-+    import build_utils
-+    root, inp = sys.argv[1:3]
-+    for sig in sys.argv[3:]:
-+        name = re.sub ('X+', sig, root)
-+        d = build_utils.standard_dict(name, sig, '${component}')
-+        build_utils.expand_template(d, inp, '_impl')
-+")
-+
-+  #make a list of all the generated files
-+  unset(expanded_files_cc_impl)
-+  unset(expanded_files_h_impl)
-+  unset(expanded_files_h)
-+  foreach(sig ${ARGN})
-+    string(REGEX REPLACE "X+" ${sig} name ${root})
-+    list(APPEND expanded_files_cc_impl ${CMAKE_CURRENT_BINARY_DIR}/${name}_impl.cc)
-+    list(APPEND expanded_files_h_impl ${CMAKE_CURRENT_BINARY_DIR}/${name}_impl.h)
-+    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/../include/gnuradio/${component}/${name}.h)
-+  endforeach(sig)
-+  unset(name)
-+
+   #create a command to generate the header files
+   add_custom_command(
+     OUTPUT ${expanded_files_h}
+@@ -490,6 +511,13 @@
+   endforeach(sig)
+   unset(name)
+ 
 +  #try to force generate the _impl.cc files
 +  execute_process(
 +    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
@@ -171,15 +53,13 @@
 +    ${root} ${root}_impl.cc.t ${ARGN}
 +  )
 +
-+  #create a command to generate the _impl.cc files
-+  add_custom_command(
-+    OUTPUT ${expanded_files_cc_impl}
-+    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}_impl.cc.t
-+    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
-+    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
-+    ${root} ${root}_impl.cc.t ${ARGN}
-+  )
-+
+   #create a command to generate the _impl.cc files
+   add_custom_command(
+     OUTPUT ${expanded_files_cc_impl}
+@@ -499,6 +527,13 @@
+     ${root} ${root}_impl.cc.t ${ARGN}
+   )
+ 
 +  #try to force generate the _impl.h files
 +  execute_process(
 +    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
@@ -187,963 +67,6 @@
 +    ${root} ${root}_impl.h.t ${ARGN}
 +  )
 +
-+  #create a command to generate the _impl.h files
-+  add_custom_command(
-+    OUTPUT ${expanded_files_h_impl}
-+    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}_impl.h.t
-+    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
-+    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
-+    ${root} ${root}_impl.h.t ${ARGN}
-+  )
-+
-+  #make _impl.cc source files depend on _impl.h to force generation
-+  set_source_files_properties(${expanded_files_cc_impl}
-+    PROPERTIES OBJECT_DEPENDS "${expanded_files_h_impl}"
-+  )
-+
-+  #make _impl.h source files depend on headers to force generation
-+  set_source_files_properties(${expanded_files_h_impl}
-+    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
-+  )
-+
-+  #install rules for the generated files
-+  list(APPEND generated_sources ${expanded_files_cc_impl})
-+  list(APPEND generated_headers ${expanded_files_h_impl})
-+
-+endmacro(GR_EXPAND_X_CC_H_IMPL)
---- gr-analog/include/gnuradio/analog/CMakeLists.txt.orig
-+++ gr-analog/include/gnuradio/analog/CMakeLists.txt
-@@ -1,4 +1,4 @@
--# Copyright 2012 Free Software Foundation, Inc.
-+# Copyright 2012-2013 Free Software Foundation, Inc.
- #
- # This file is part of GNU Radio
- #
-@@ -18,55 +18,12 @@
- # Boston, MA 02110-1301, USA.
- 
- ########################################################################
--# generate helper scripts to expand templated files
-+# Invoke macro to generate various headers
- ########################################################################
--include(GrPython)
--
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py "
--#!${PYTHON_EXECUTABLE}
--
--import sys, os, re
--sys.path.append('${GR_RUNTIME_PYTHONPATH}')
--os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
--os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
--
--if __name__ == '__main__':
--    import build_utils
--    root, inp = sys.argv[1:3]
--    for sig in sys.argv[3:]:
--        name = re.sub ('X+', sig, root)
--        d = build_utils.standard_dict2(name, sig, 'analog')
--        build_utils.expand_template(d, inp)
--
--")
--
--macro(expand_h root)
--  #make a list of all the generated files
--  unset(expanded_files_h)
--  foreach(sig ${ARGN})
--    string(REGEX REPLACE "X+" ${sig} name ${root})
--    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
--  endforeach(sig)
--
--  #create a command to generate the files
--  add_custom_command(
--    OUTPUT ${expanded_files_h}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.h.t ${ARGN}
--    )
--
--  #install rules for the generated h files
--  list(APPEND generated_includes ${expanded_files_h})
--endmacro(expand_h)
--
--########################################################################
--# Invoke macro to generate various sources
--#######################################################################
--expand_h(noise_source_X     s i f c)
--expand_h(fastnoise_source_X s i f c)
--expand_h(sig_source_X       s i f c)
-+include(GrMiscUtils)
-+GR_EXPAND_X_H(analog noise_source_X     s i f c)
-+GR_EXPAND_X_H(analog fastnoise_source_X s i f c)
-+GR_EXPAND_X_H(analog sig_source_X       s i f c)
- 
- add_custom_target(analog_generated_includes DEPENDS
-     ${generated_includes}
---- gr-analog/lib/CMakeLists.txt.orig
-+++ gr-analog/lib/CMakeLists.txt
-@@ -41,72 +41,12 @@ if(ENABLE_GR_CTRLPORT)
- endif(ENABLE_GR_CTRLPORT)
- 
- ########################################################################
--# generate helper scripts to expand templated files
-+# Invoke macro to generate various sources and headers
- ########################################################################
--include(GrPython)
--
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py "
--#!${PYTHON_EXECUTABLE}
--
--import sys, os, re
--sys.path.append('${GR_RUNTIME_PYTHONPATH}')
--os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
--os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
--
--if __name__ == '__main__':
--    import build_utils
--    root, inp = sys.argv[1:3]
--    for sig in sys.argv[3:]:
--        name = re.sub ('X+', sig, root)
--        d = build_utils.standard_impl_dict2(name, sig, 'analog')
--        build_utils.expand_template(d, inp)
--")
--
--macro(expand_cc root)
--  #make a list of all the generated files
--  unset(expanded_files_cc)
--  unset(expanded_files_h)
--  foreach(sig ${ARGN})
--    string(REGEX REPLACE "X+" ${sig} name ${root})
--    list(APPEND expanded_files_cc ${CMAKE_CURRENT_BINARY_DIR}/${name}.cc)
--    list(APPEND expanded_files_h  ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
--  endforeach(sig)
--
--  #create a command to generate the source files
--  add_custom_command(
--    OUTPUT ${expanded_files_cc}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.cc.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.cc.t ${ARGN}
--  )
--
--  #create a command to generate the header file
--  add_custom_command(
--    OUTPUT ${expanded_files_h}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.h.t ${ARGN}
--  )
--
--  #make source files depends on headers to force generation
--  set_source_files_properties(${expanded_files_cc}
--    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
--  )
--
--  #install rules for the generated cc files
--  list(APPEND generated_sources ${expanded_files_cc})
--  list(APPEND generated_headers ${expanded_files_h})
--endmacro(expand_cc)
--
--
--########################################################################
--# Invoke macro to generate various sources
--########################################################################
--expand_cc(noise_source_X_impl     s i f c)
--expand_cc(fastnoise_source_X_impl s i f c)
--expand_cc(sig_source_X_impl     s i f c)
-+include(GrMiscUtils)
-+GR_EXPAND_X_CC_H(analog noise_source_X_impl     s i f c)
-+GR_EXPAND_X_CC_H(analog fastnoise_source_X_impl s i f c)
-+GR_EXPAND_X_CC_H(analog sig_source_X_impl     s i f c)
- 
- ########################################################################
- # Setup library
---- gr-blocks/include/gnuradio/blocks/CMakeLists.txt.orig
-+++ gr-blocks/include/gnuradio/blocks/CMakeLists.txt
-@@ -18,81 +18,38 @@
- # Boston, MA 02110-1301, USA.
- 
- ########################################################################
--# generate helper scripts to expand templated files
-+# Invoke macro to generate various headers
- ########################################################################
--include(GrPython)
--
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py "
--#!${PYTHON_EXECUTABLE}
--
--import sys, os, re
--sys.path.append('${GR_RUNTIME_PYTHONPATH}')
--os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
--os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
--
--if __name__ == '__main__':
--    import build_utils
--    root, inp = sys.argv[1:3]
--    for sig in sys.argv[3:]:
--        name = re.sub ('X+', sig, root)
--        d = build_utils.standard_dict(name, sig, 'blocks')
--        build_utils.expand_template(d, inp)
--
--")
--
--macro(expand_h root)
--  #make a list of all the generated files
--  unset(expanded_files_h)
--  foreach(sig ${ARGN})
--    string(REGEX REPLACE "X+" ${sig} name ${root})
--    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
--  endforeach(sig)
--
--  #create a command to generate the files
--  add_custom_command(
--    OUTPUT ${expanded_files_h}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.h.t ${ARGN}
--    )
--
--  #install rules for the generated h files
--  list(APPEND generated_includes ${expanded_files_h})
--endmacro(expand_h)
--
--########################################################################
--# Invoke macro to generate various sources
--########################################################################
--expand_h(abs_XX             ss ii ff)
--expand_h(add_XX             ss ii cc)
--expand_h(add_const_XX       bb ss ii ff cc)
--expand_h(add_const_vXX      bb ss ii ff cc)
--expand_h(and_XX             bb ss ii)
--expand_h(and_const_XX       bb ss ii)
--expand_h(argmax_XX          fs is ss)
--expand_h(divide_XX          ss ii ff cc)
--expand_h(integrate_XX       ss ii ff cc)
--expand_h(max_XX             ff ii ss)
--expand_h(moving_average_XX  ss ii ff cc)
--expand_h(multiply_XX        ss ii)
--expand_h(multiply_const_XX  ss ii)
--expand_h(multiply_const_vXX ss ii ff cc)
--expand_h(mute_XX            ss ii ff cc)
--expand_h(not_XX             bb ss ii)
--expand_h(or_XX              bb ss ii)
--expand_h(peak_detector_XX   fb ib sb)
--expand_h(probe_signal_X     b s i f c)
--expand_h(probe_signal_vX    b s i f c)
--expand_h(sample_and_hold_XX bb ss ii ff)
--expand_h(sub_XX             ss ii ff cc)
--expand_h(tsb_vector_sink_X  b s i f c)
--expand_h(xor_XX             bb ss ii)
--expand_h(packed_to_unpacked_XX bb ss ii)
--expand_h(unpacked_to_packed_XX bb ss ii)
--expand_h(vector_insert_X    b s i f c)
--expand_h(vector_sink_X      b s i f c)
--expand_h(vector_source_X    b s i f c)
-+include(GrMiscUtils)
-+GR_EXPAND_X_H(blocks abs_XX             ss ii ff)
-+GR_EXPAND_X_H(blocks add_XX             ss ii cc)
-+GR_EXPAND_X_H(blocks add_const_XX       bb ss ii ff cc)
-+GR_EXPAND_X_H(blocks add_const_vXX      bb ss ii ff cc)
-+GR_EXPAND_X_H(blocks and_XX             bb ss ii)
-+GR_EXPAND_X_H(blocks and_const_XX       bb ss ii)
-+GR_EXPAND_X_H(blocks argmax_XX          fs is ss)
-+GR_EXPAND_X_H(blocks divide_XX          ss ii ff cc)
-+GR_EXPAND_X_H(blocks integrate_XX       ss ii ff cc)
-+GR_EXPAND_X_H(blocks max_XX             ff ii ss)
-+GR_EXPAND_X_H(blocks moving_average_XX  ss ii ff cc)
-+GR_EXPAND_X_H(blocks multiply_XX        ss ii)
-+GR_EXPAND_X_H(blocks multiply_const_XX  ss ii)
-+GR_EXPAND_X_H(blocks multiply_const_vXX ss ii ff cc)
-+GR_EXPAND_X_H(blocks mute_XX            ss ii ff cc)
-+GR_EXPAND_X_H(blocks not_XX             bb ss ii)
-+GR_EXPAND_X_H(blocks or_XX              bb ss ii)
-+GR_EXPAND_X_H(blocks peak_detector_XX   fb ib sb)
-+GR_EXPAND_X_H(blocks probe_signal_X     b s i f c)
-+GR_EXPAND_X_H(blocks probe_signal_vX    b s i f c)
-+GR_EXPAND_X_H(blocks sample_and_hold_XX bb ss ii ff)
-+GR_EXPAND_X_H(blocks sub_XX             ss ii ff cc)
-+GR_EXPAND_X_H(blocks tsb_vector_sink_X  b s i f c)
-+GR_EXPAND_X_H(blocks xor_XX             bb ss ii)
-+GR_EXPAND_X_H(blocks packed_to_unpacked_XX bb ss ii)
-+GR_EXPAND_X_H(blocks unpacked_to_packed_XX bb ss ii)
-+GR_EXPAND_X_H(blocks vector_insert_X    b s i f c)
-+GR_EXPAND_X_H(blocks vector_sink_X      b s i f c)
-+GR_EXPAND_X_H(blocks vector_source_X    b s i f c)
- 
- add_custom_target(blocks_generated_includes DEPENDS
-     ${generated_includes}
---- gr-blocks/lib/CMakeLists.txt.orig
-+++ gr-blocks/lib/CMakeLists.txt
-@@ -23,102 +23,38 @@
- include(${CMAKE_CURRENT_SOURCE_DIR}/ConfigChecks.cmake)
- 
- ########################################################################
--# generate helper scripts to expand templated files
--########################################################################
--include(GrPython)
--
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py "
--#!${PYTHON_EXECUTABLE}
--
--import sys, os, re
--sys.path.append('${GR_RUNTIME_PYTHONPATH}')
--os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
--os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
--
--if __name__ == '__main__':
--    import build_utils
--    root, inp = sys.argv[1:3]
--    for sig in sys.argv[3:]:
--        name = re.sub ('X+', sig, root)
--        d = build_utils.standard_dict(name, sig, 'blocks')
--        build_utils.expand_template(d, inp, '_impl')
--")
--
--macro(expand_cc_h_impl root)
--  #make a list of all the generated files
--  unset(expanded_files_cc_impl)
--  unset(expanded_files_h_impl)
--  foreach(sig ${ARGN})
--    string(REGEX REPLACE "X+" ${sig} name ${root})
--    list(APPEND expanded_files_cc_impl ${CMAKE_CURRENT_BINARY_DIR}/${name}_impl.cc)
--    list(APPEND expanded_files_h_impl ${CMAKE_CURRENT_BINARY_DIR}/${name}_impl.h)
--    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/../include/${name}.h)
--  endforeach(sig)
--
--  #create a command to generate the _impl.cc files
--  add_custom_command(
--    OUTPUT ${expanded_files_cc_impl}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}_impl.cc.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}_impl.cc.t ${ARGN}
--  )
--
--  #create a command to generate the _impl.h files
--  add_custom_command(
--    OUTPUT ${expanded_files_h_impl}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}_impl.h.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}_impl.h.t ${ARGN}
--  )
--
--  #make _impl.cc source files depend on headers to force generation
--  set_source_files_properties(${expanded_files_cc_impl}
--    PROPERTIES OBJECT_DEPENDS "${expanded_files_h_impl}"
--  )
--
--  #make _impl.h source files depend on headers to force generation
--  set_source_files_properties(${expanded_files_h_impl}
--    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
--  )
--
--  #install rules for the generated cc files
--  list(APPEND generated_sources ${expanded_files_cc_impl})
--endmacro(expand_cc_h_impl)
--
--########################################################################
- # Invoke macro to generate various sources
- ########################################################################
--expand_cc_h_impl(abs_XX             ss ii ff)
--expand_cc_h_impl(add_XX             ss ii cc)
--expand_cc_h_impl(add_const_XX       bb ss ii ff cc)
--expand_cc_h_impl(add_const_vXX      bb ss ii ff cc)
--expand_cc_h_impl(and_XX             bb ss ii)
--expand_cc_h_impl(and_const_XX       bb ss ii)
--expand_cc_h_impl(argmax_XX          fs is ss)
--expand_cc_h_impl(divide_XX          ss ii ff cc)
--expand_cc_h_impl(integrate_XX       ss ii ff cc)
--expand_cc_h_impl(max_XX             ff ii ss)
--expand_cc_h_impl(moving_average_XX  ss ii ff cc)
--expand_cc_h_impl(multiply_XX        ss ii)
--expand_cc_h_impl(multiply_const_XX  ss ii)
--expand_cc_h_impl(multiply_const_vXX ss ii ff cc)
--expand_cc_h_impl(mute_XX            ss ii ff cc)
--expand_cc_h_impl(not_XX             bb ss ii)
--expand_cc_h_impl(or_XX              bb ss ii)
--expand_cc_h_impl(peak_detector_XX   fb ib sb)
--expand_cc_h_impl(probe_signal_X     b s i f c)
--expand_cc_h_impl(probe_signal_vX    b s i f c)
--expand_cc_h_impl(sample_and_hold_XX bb ss ii ff)
--expand_cc_h_impl(tsb_vector_sink_X  b s i f c)
--expand_cc_h_impl(sub_XX             ss ii ff cc)
--expand_cc_h_impl(xor_XX             bb ss ii)
--expand_cc_h_impl(packed_to_unpacked_XX bb ss ii)
--expand_cc_h_impl(unpacked_to_packed_XX bb ss ii)
--expand_cc_h_impl(vector_insert_X    b s i f c)
--expand_cc_h_impl(vector_sink_X      b s i f c)
--expand_cc_h_impl(vector_source_X    b s i f c)
-+include(GrMiscUtils)
-+GR_EXPAND_X_CC_H_IMPL(blocks abs_XX             ss ii ff)
-+GR_EXPAND_X_CC_H_IMPL(blocks add_XX             ss ii cc)
-+GR_EXPAND_X_CC_H_IMPL(blocks add_const_XX       bb ss ii ff cc)
-+GR_EXPAND_X_CC_H_IMPL(blocks add_const_vXX      bb ss ii ff cc)
-+GR_EXPAND_X_CC_H_IMPL(blocks and_XX             bb ss ii)
-+GR_EXPAND_X_CC_H_IMPL(blocks and_const_XX       bb ss ii)
-+GR_EXPAND_X_CC_H_IMPL(blocks argmax_XX          fs is ss)
-+GR_EXPAND_X_CC_H_IMPL(blocks divide_XX          ss ii ff cc)
-+GR_EXPAND_X_CC_H_IMPL(blocks integrate_XX       ss ii ff cc)
-+GR_EXPAND_X_CC_H_IMPL(blocks max_XX             ff ii ss)
-+GR_EXPAND_X_CC_H_IMPL(blocks moving_average_XX  ss ii ff cc)
-+GR_EXPAND_X_CC_H_IMPL(blocks multiply_XX        ss ii)
-+GR_EXPAND_X_CC_H_IMPL(blocks multiply_const_XX  ss ii)
-+GR_EXPAND_X_CC_H_IMPL(blocks multiply_const_vXX ss ii ff cc)
-+GR_EXPAND_X_CC_H_IMPL(blocks mute_XX            ss ii ff cc)
-+GR_EXPAND_X_CC_H_IMPL(blocks not_XX             bb ss ii)
-+GR_EXPAND_X_CC_H_IMPL(blocks or_XX              bb ss ii)
-+GR_EXPAND_X_CC_H_IMPL(blocks peak_detector_XX   fb ib sb)
-+GR_EXPAND_X_CC_H_IMPL(blocks probe_signal_X     b s i f c)
-+GR_EXPAND_X_CC_H_IMPL(blocks probe_signal_vX    b s i f c)
-+GR_EXPAND_X_CC_H_IMPL(blocks sample_and_hold_XX bb ss ii ff)
-+GR_EXPAND_X_CC_H_IMPL(blocks sub_XX             ss ii ff cc)
-+GR_EXPAND_X_CC_H_IMPL(blocks tsb_vector_sink_X  b s i f c)
-+GR_EXPAND_X_CC_H_IMPL(blocks xor_XX             bb ss ii)
-+GR_EXPAND_X_CC_H_IMPL(blocks packed_to_unpacked_XX bb ss ii)
-+GR_EXPAND_X_CC_H_IMPL(blocks unpacked_to_packed_XX bb ss ii)
-+GR_EXPAND_X_CC_H_IMPL(blocks vector_insert_X    b s i f c)
-+GR_EXPAND_X_CC_H_IMPL(blocks vector_sink_X      b s i f c)
-+GR_EXPAND_X_CC_H_IMPL(blocks vector_source_X    b s i f c)
- 
- ########################################################################
- # Setup the include and linker paths
---- gr-digital/include/gnuradio/digital/CMakeLists.txt.orig
-+++ gr-digital/include/gnuradio/digital/CMakeLists.txt
-@@ -18,53 +18,10 @@
- # Boston, MA 02110-1301, USA.
- 
- ########################################################################
--# generate helper scripts to expand templated files
--########################################################################
--include(GrPython)
--
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py "
--#!${PYTHON_EXECUTABLE}
--
--import sys, os, re
--sys.path.append('${GR_RUNTIME_PYTHONPATH}')
--os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
--os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
--
--if __name__ == '__main__':
--    import build_utils
--    root, inp = sys.argv[1:3]
--    for sig in sys.argv[3:]:
--        name = re.sub ('X+', sig, root)
--        d = build_utils.standard_dict2(name, sig, 'digital')
--        build_utils.expand_template(d, inp)
--
--")
--
--macro(expand_h root)
--  #make a list of all the generated files
--  unset(expanded_files_h)
--  foreach(sig ${ARGN})
--    string(REGEX REPLACE "X+" ${sig} name ${root})
--    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
--  endforeach(sig)
--
--  #create a command to generate the files
--  add_custom_command(
--    OUTPUT ${expanded_files_h}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.h.t ${ARGN}
--    )
--
--  #install rules for the generated h files
--  list(APPEND generated_includes ${expanded_files_h})
--endmacro(expand_h)
--
--########################################################################
--# Invoke macro to generate various sources
-+# Invoke macro to generate various headers
- #######################################################################
--expand_h(chunks_to_symbols_XX     bf bc sf sc if ic)
-+include(GrMiscUtils)
-+GR_EXPAND_X_H(digital chunks_to_symbols_XX     bf bc sf sc if ic)
- 
- add_custom_target(digital_generated_includes DEPENDS
-     ${generated_includes}
---- gr-digital/lib/CMakeLists.txt.orig
-+++ gr-digital/lib/CMakeLists.txt
-@@ -42,70 +42,10 @@ if(ENABLE_GR_CTRLPORT)
- endif(ENABLE_GR_CTRLPORT)
- 
- ########################################################################
--# generate helper scripts to expand templated files
--########################################################################
--include(GrPython)
--
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py "
--#!${PYTHON_EXECUTABLE}
--
--import sys, os, re
--sys.path.append('${GR_RUNTIME_PYTHONPATH}')
--os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
--os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
--
--if __name__ == '__main__':
--    import build_utils
--    root, inp = sys.argv[1:3]
--    for sig in sys.argv[3:]:
--        name = re.sub ('X+', sig, root)
--        d = build_utils.standard_impl_dict2(name, sig, 'digital')
--        build_utils.expand_template(d, inp)
--")
--
--macro(expand_cc root)
--  #make a list of all the generated files
--  unset(expanded_files_cc)
--  unset(expanded_files_h)
--  foreach(sig ${ARGN})
--    string(REGEX REPLACE "X+" ${sig} name ${root})
--    list(APPEND expanded_files_cc ${CMAKE_CURRENT_BINARY_DIR}/${name}.cc)
--    list(APPEND expanded_files_h  ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
--  endforeach(sig)
--
--  #create a command to generate the source files
--  add_custom_command(
--    OUTPUT ${expanded_files_cc}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.cc.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.cc.t ${ARGN}
--  )
--
--  #create a command to generate the header file
--  add_custom_command(
--    OUTPUT ${expanded_files_h}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.h.t ${ARGN}
--  )
--
--  #make source files depends on headers to force generation
--  set_source_files_properties(${expanded_files_cc}
--    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
--  )
--
--  #install rules for the generated cc files
--  list(APPEND generated_sources ${expanded_files_cc})
--  list(APPEND generated_headers ${expanded_files_h})
--endmacro(expand_cc)
--
--
--########################################################################
- # Invoke macro to generate various sources
- ########################################################################
--expand_cc(chunks_to_symbols_XX_impl     bf bc sf sc if ic)
-+include(GrMiscUtils)
-+GR_EXPAND_X_CC_H(digital chunks_to_symbols_XX_impl     bf bc sf sc if ic)
- 
- ########################################################################
- # Setup library
-@@ -203,7 +143,6 @@ list(APPEND digital_libs
-     ${LOG4CPP_LIBRARIES}
- )
- 
--
- add_library(gnuradio-digital SHARED ${digital_sources})
- target_link_libraries(gnuradio-digital ${digital_libs})
- GR_LIBRARY_FOO(gnuradio-digital RUNTIME_COMPONENT "digital_runtime" DEVEL_COMPONENT "digital_devel")
---- gr-fec/include/gnuradio/fec/CMakeLists.txt.orig
-+++ gr-fec/include/gnuradio/fec/CMakeLists.txt
-@@ -18,63 +18,9 @@
- # Boston, MA 02110-1301, USA.
- 
- ########################################################################
--# generate helper scripts to expand templated files
--########################################################################
--include(GrPython)
--
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py "
--#!${PYTHON_EXECUTABLE}
--
--import sys, os, re
--sys.path.append('${GR_RUNTIME_PYTHONPATH}')
--os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
--os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
--
--if __name__ == '__main__':
--    import build_utils
--    root, inp = sys.argv[1:3]
--    for sig in sys.argv[3:]:
--        name = re.sub ('X+', sig, root)
--        d = build_utils.standard_dict(name, sig, 'fec')
--        build_utils.expand_template(d, inp)
--
--")
--
--macro(expand_h root)
--  #make a list of all the generated files
--  unset(expanded_files_h)
--  foreach(sig ${ARGN})
--    string(REGEX REPLACE "X+" ${sig} name ${root})
--    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
--  endforeach(sig)
--
--  #create a command to generate the files
--  add_custom_command(
--    OUTPUT ${expanded_files_h}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.h.t ${ARGN}
--    )
--
--  #install rules for the generated h files
--  list(APPEND generated_includes ${expanded_files_h})
--endmacro(expand_h)
--
--########################################################################
--# Invoke macro to generate various sources
--########################################################################
--#expand_h(foo_XX             ss ii cc)
--
--add_custom_target(fec_generated_includes DEPENDS
--    ${generated_includes}
--)
--
--########################################################################
- # Install header files
- ########################################################################
- install(FILES
--    ${generated_includes}
-     api.h
-     generic_decoder.h
-     generic_encoder.h
---- gr-filter/include/gnuradio/filter/CMakeLists.txt.orig
-+++ gr-filter/include/gnuradio/filter/CMakeLists.txt
-@@ -18,56 +18,13 @@
- # Boston, MA 02110-1301, USA.
- 
- ########################################################################
--# generate helper scripts to expand templated files
--########################################################################
--include(GrPython)
--
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py "
--#!${PYTHON_EXECUTABLE}
--
--import sys, os, re
--sys.path.append('${GR_RUNTIME_PYTHONPATH}')
--os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
--os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
--
--if __name__ == '__main__':
--    import build_utils
--    root, inp = sys.argv[1:3]
--    for sig in sys.argv[3:]:
--        name = re.sub ('X+', sig, root)
--        d = build_utils.standard_dict2(name, sig, 'filter')
--        build_utils.expand_template(d, inp)
--
--")
--
--macro(expand_h root)
--  #make a list of all the generated files
--  unset(expanded_files_h)
--  foreach(sig ${ARGN})
--    string(REGEX REPLACE "X+" ${sig} name ${root})
--    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
--  endforeach(sig)
--
--  #create a command to generate the files
--  add_custom_command(
--    OUTPUT ${expanded_files_h}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.h.t ${ARGN}
--    )
--
--  #install rules for the generated h files
--  list(APPEND generated_includes ${expanded_files_h})
--endmacro(expand_h)
--
--########################################################################
--# Invoke macro to generate various sources
-+# Invoke macro to generate various headers
- #######################################################################
--expand_h(fir_filter_XXX              ccc ccf fcc fff fsf scc)
--expand_h(freq_xlating_fir_filter_XXX ccc ccf fcc fcf scf scc)
--expand_h(interp_fir_filter_XXX       ccc ccf fcc fff fsf scc)
--expand_h(rational_resampler_base_XXX ccc ccf fcc fff fsf scc)
-+include(GrMiscUtils)
-+GR_EXPAND_X_H(filter fir_filter_XXX              ccc ccf fcc fff fsf scc)
-+GR_EXPAND_X_H(filter freq_xlating_fir_filter_XXX ccc ccf fcc fcf scf scc)
-+GR_EXPAND_X_H(filter interp_fir_filter_XXX       ccc ccf fcc fff fsf scc)
-+GR_EXPAND_X_H(filter rational_resampler_base_XXX ccc ccf fcc fff fsf scc)
- 
- add_custom_target(filter_generated_includes DEPENDS
-     ${generated_includes}
---- gr-filter/lib/CMakeLists.txt.orig
-+++ gr-filter/lib/CMakeLists.txt
-@@ -18,73 +18,13 @@
- # Boston, MA 02110-1301, USA.
- 
- ########################################################################
--# generate helper scripts to expand templated files
-+# Invoke macro to generate various sources and headers
- ########################################################################
--include(GrPython)
--
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py "
--#!${PYTHON_EXECUTABLE}
--
--import sys, os, re
--sys.path.append('${GR_RUNTIME_PYTHONPATH}')
--os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
--os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
--
--if __name__ == '__main__':
--    import build_utils
--    root, inp = sys.argv[1:3]
--    for sig in sys.argv[3:]:
--        name = re.sub ('X+', sig, root)
--        d = build_utils.standard_impl_dict2(name, sig, 'filter')
--        build_utils.expand_template(d, inp)
--")
--
--macro(expand_cc root)
--  #make a list of all the generated files
--  unset(expanded_files_cc)
--  unset(expanded_files_h)
--  foreach(sig ${ARGN})
--    string(REGEX REPLACE "X+" ${sig} name ${root})
--    list(APPEND expanded_files_cc ${CMAKE_CURRENT_BINARY_DIR}/${name}.cc)
--    list(APPEND expanded_files_h  ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
--  endforeach(sig)
--
--  #create a command to generate the source files
--  add_custom_command(
--    OUTPUT ${expanded_files_cc}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.cc.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.cc.t ${ARGN}
--  )
--
--  #create a command to generate the header file
--  add_custom_command(
--    OUTPUT ${expanded_files_h}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.h.t ${ARGN}
--  )
--
--  #make source files depends on headers to force generation
--  set_source_files_properties(${expanded_files_cc}
--    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
--  )
--
--  #install rules for the generated cc files
--  list(APPEND generated_sources ${expanded_files_cc})
--  list(APPEND generated_headers ${expanded_files_h})
--endmacro(expand_cc)
--
--########################################################################
--# Invoke macro to generate various sources
--########################################################################
--expand_cc(fir_filter_XXX_impl              ccc ccf fcc fff fsf scc)
--expand_cc(freq_xlating_fir_filter_XXX_impl ccc ccf fcc fcf scf scc)
--expand_cc(interp_fir_filter_XXX_impl       ccc ccf fcc fff fsf scc)
--expand_cc(rational_resampler_base_XXX_impl ccc ccf fcc fff fsf scc)
--
-+include(GrMiscUtils)
-+GR_EXPAND_X_CC_H(filter fir_filter_XXX_impl              ccc ccf fcc fff fsf scc)
-+GR_EXPAND_X_CC_H(filter freq_xlating_fir_filter_XXX_impl ccc ccf fcc fcf scf scc)
-+GR_EXPAND_X_CC_H(filter interp_fir_filter_XXX_impl       ccc ccf fcc fff fsf scc)
-+GR_EXPAND_X_CC_H(filter rational_resampler_base_XXX_impl ccc ccf fcc fff fsf scc)
- 
- ########################################################################
- # Setup the include and linker paths
---- gr-trellis/include/gnuradio/trellis/CMakeLists.txt.orig
-+++ gr-trellis/include/gnuradio/trellis/CMakeLists.txt
-@@ -1,4 +1,4 @@
--# Copyright 2012 Free Software Foundation, Inc.
-+# Copyright 2012-2013 Free Software Foundation, Inc.
- #
- # This file is part of GNU Radio
- #
-@@ -18,62 +18,19 @@
- # Boston, MA 02110-1301, USA.
- 
- ########################################################################
--# generate helper scripts to expand templated files
-+# Invoke macro to generate various headers
- ########################################################################
--include(GrPython)
--
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py "
--#!${PYTHON_EXECUTABLE}
--
--import sys, os, re
--sys.path.append('${GR_RUNTIME_PYTHONPATH}')
--os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
--os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
--
--if __name__ == '__main__':
--    import build_utils
--    root, inp = sys.argv[1:3]
--    for sig in sys.argv[3:]:
--        name = re.sub ('X+', sig, root)
--        d = build_utils.standard_dict2(name, sig, 'trellis')
--        build_utils.expand_template(d, inp)
--
--")
--
--macro(expand_h root)
--  #make a list of all the generated files
--  unset(expanded_files_h)
--  foreach(sig ${ARGN})
--    string(REGEX REPLACE "X+" ${sig} name ${root})
--    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
--  endforeach(sig)
--
--  #create a command to generate the files
--  add_custom_command(
--    OUTPUT ${expanded_files_h}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.h.t ${ARGN}
--    )
--
--  #install rules for the generated h files
--  list(APPEND generated_includes ${expanded_files_h})
--endmacro(expand_h)
--
--########################################################################
--# Invoke macro to generate various sources
--#######################################################################
--expand_h(encoder_XX                 bb bs bi ss si ii)
--expand_h(sccc_encoder_XX            bb bs bi ss si ii)
--expand_h(pccc_encoder_XX            bb bs bi ss si ii)
--expand_h(metrics_X                  s i f c)
--expand_h(viterbi_X                  b s i)
--expand_h(viterbi_combined_XX        sb ss si ib is ii fb fs fi cb cs ci)
--expand_h(sccc_decoder_X             b s i)
--expand_h(sccc_decoder_combined_XX   fb fs fi cb cs ci)
--expand_h(pccc_decoder_X             b s i)
--expand_h(pccc_decoder_combined_XX   fb fs fi cb cs ci)
-+include(GrMiscUtils)
-+GR_EXPAND_X_H(trellis encoder_XX                 bb bs bi ss si ii)
-+GR_EXPAND_X_H(trellis sccc_encoder_XX            bb bs bi ss si ii)
-+GR_EXPAND_X_H(trellis pccc_encoder_XX            bb bs bi ss si ii)
-+GR_EXPAND_X_H(trellis metrics_X                  s i f c)
-+GR_EXPAND_X_H(trellis viterbi_X                  b s i)
-+GR_EXPAND_X_H(trellis viterbi_combined_XX        sb ss si ib is ii fb fs fi cb cs ci)
-+GR_EXPAND_X_H(trellis sccc_decoder_X             b s i)
-+GR_EXPAND_X_H(trellis sccc_decoder_combined_XX   fb fs fi cb cs ci)
-+GR_EXPAND_X_H(trellis pccc_decoder_X             b s i)
-+GR_EXPAND_X_H(trellis pccc_decoder_combined_XX   fb fs fi cb cs ci)
- 
- add_custom_target(trellis_generated_includes DEPENDS
-     ${generated_includes}
---- gr-trellis/lib/CMakeLists.txt.orig
-+++ gr-trellis/lib/CMakeLists.txt
-@@ -1,4 +1,4 @@
--# Copyright 2012 Free Software Foundation, Inc.
-+# Copyright 2012-2013 Free Software Foundation, Inc.
- #
- # This file is part of GNU Radio
- #
-@@ -38,78 +38,19 @@ if(ENABLE_GR_CTRLPORT)
- endif(ENABLE_GR_CTRLPORT)
- 
- #######################################################################
--# generate the python helper script which calls into the build utils
-+# Invoke macro to generate various sources and headers
- ########################################################################
--include(GrPython)
--
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py "
--#!${PYTHON_EXECUTABLE}
--
--import sys, os, re
--sys.path.append('${GR_RUNTIME_PYTHONPATH}')
--os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
--os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
--
--if __name__ == '__main__':
--    import build_utils
--    root, inp = sys.argv[1:3]
--    for sig in sys.argv[3:]:
--        name = re.sub ('X+', sig, root)
--        d = build_utils.standard_impl_dict2(name, sig, 'trellis')
--        build_utils.expand_template(d, inp)
--")
--
--macro(expand_cc root)
--  #make a list of all the generated files
--  unset(expanded_files_cc)
--  unset(expanded_files_h)
--  foreach(sig ${ARGN})
--    string(REGEX REPLACE "X+" ${sig} name ${root})
--    list(APPEND expanded_files_cc ${CMAKE_CURRENT_BINARY_DIR}/${name}.cc)
--    list(APPEND expanded_files_h  ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
--  endforeach(sig)
--
--  #create a command to generate the source files
--  add_custom_command(
--    OUTPUT ${expanded_files_cc}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.cc.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.cc.t ${ARGN}
--  )
--
--  #create a command to generate the header file
--  add_custom_command(
--    OUTPUT ${expanded_files_h}
--    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
--    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
--    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
--    ${root} ${root}.h.t ${ARGN}
--  )
--
--  #make source files depends on headers to force generation
--  set_source_files_properties(${expanded_files_cc}
--    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
--  )
--
--  #install rules for the generated cc files
--  list(APPEND generated_sources ${expanded_files_cc})
--  list(APPEND generated_headers ${expanded_files_h})
--endmacro(expand_cc)
--
--########################################################################
--# Invoke macro to generate various sources
--########################################################################
--expand_cc(encoder_XX_impl                bb bs bi ss si ii)
--expand_cc(sccc_encoder_XX_impl           bb bs bi ss si ii)
--expand_cc(pccc_encoder_XX_impl           bb bs bi ss si ii)
--expand_cc(metrics_X_impl                 s i f c)
--expand_cc(viterbi_X_impl                 b s i)
--expand_cc(viterbi_combined_XX_impl       sb ss si ib is ii fb fs fi cb cs ci)
--expand_cc(sccc_decoder_X_impl            b s i)
--expand_cc(sccc_decoder_combined_XX_impl  fb fs fi cb cs ci)
--expand_cc(pccc_decoder_X_impl            b s i)
--expand_cc(pccc_decoder_combined_XX_impl  fb fs fi cb cs ci)
-+include(GrMiscUtils)
-+GR_EXPAND_X_CC_H(trellis encoder_XX_impl                bb bs bi ss si ii)
-+GR_EXPAND_X_CC_H(trellis sccc_encoder_XX_impl           bb bs bi ss si ii)
-+GR_EXPAND_X_CC_H(trellis pccc_encoder_XX_impl           bb bs bi ss si ii)
-+GR_EXPAND_X_CC_H(trellis metrics_X_impl                 s i f c)
-+GR_EXPAND_X_CC_H(trellis viterbi_X_impl                 b s i)
-+GR_EXPAND_X_CC_H(trellis viterbi_combined_XX_impl       sb ss si ib is ii fb fs fi cb cs ci)
-+GR_EXPAND_X_CC_H(trellis sccc_decoder_X_impl            b s i)
-+GR_EXPAND_X_CC_H(trellis sccc_decoder_combined_XX_impl  fb fs fi cb cs ci)
-+GR_EXPAND_X_CC_H(trellis pccc_decoder_X_impl            b s i)
-+GR_EXPAND_X_CC_H(trellis pccc_decoder_combined_XX_impl  fb fs fi cb cs ci)
- 
- ########################################################################
- # Setup library
+   #create a command to generate the _impl.h files
+   add_custom_command(
+     OUTPUT ${expanded_files_h_impl}

Modified: trunk/dports/science/gnuradio/files/patch-remove-SIZE_T_32.diff
===================================================================
--- trunk/dports/science/gnuradio/files/patch-remove-SIZE_T_32.diff	2014-09-02 13:48:03 UTC (rev 124999)
+++ trunk/dports/science/gnuradio/files/patch-remove-SIZE_T_32.diff	2014-09-02 14:30:00 UTC (rev 125000)
@@ -1,6 +1,6 @@
---- cmake/Modules/GrSwig.cmake.orig
-+++ cmake/Modules/GrSwig.cmake
-@@ -105,18 +105,6 @@ endfunction(GR_SWIG_MAKE_DOCS)
+--- cmake/Modules/GrSwig.cmake.orig	2014-08-30 12:33:12.000000000 -0400
++++ cmake/Modules/GrSwig.cmake	2014-09-01 08:37:32.000000000 -0400
+@@ -105,18 +105,6 @@
  macro(GR_SWIG_MAKE name)
      set(ifiles ${ARGN})
  
@@ -9,7 +9,7 @@
 -    # vector<long unsigned int> (on 64-bit machines). Use this to test
 -    # the size of size_t, then set SIZE_T_32 if it's a 32-bit machine
 -    # or not if it's 64-bit. The logic in gr_type.i handles the rest.
--    INCLUDE (CheckTypeSize)
+-    INCLUDE(CheckTypeSize)
 -    CHECK_TYPE_SIZE("size_t" SIZEOF_SIZE_T)
 -    CHECK_TYPE_SIZE("unsigned int" SIZEOF_UINT)
 -    if(${SIZEOF_SIZE_T} EQUAL ${SIZEOF_UINT})
@@ -17,7 +17,7 @@
 -    endif(${SIZEOF_SIZE_T} EQUAL ${SIZEOF_UINT})
 -
      #do swig doc generation if specified
-     if (GR_SWIG_DOC_FILE)
+     if(GR_SWIG_DOC_FILE)
          set(GR_SWIG_DOCS_SOURCE_DEPS ${GR_SWIG_SOURCE_DEPS})
 --- gnuradio-runtime/swig/gr_types.i.orig
 +++ gnuradio-runtime/swig/gr_types.i
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140902/7486d3fb/attachment-0001.html>


More information about the macports-changes mailing list