<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[131482] trunk/dports/science/gnuradio/Portfile</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/131482">131482</a></dd>
<dt>Author</dt> <dd>michaelld@macports.org</dd>
<dt>Date</dt> <dd>2015-01-12 10:04:40 -0800 (Mon, 12 Jan 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>gnuradio*: require Python 2.7; leave +python2[67] legacy variants for now.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportssciencegnuradioPortfile">trunk/dports/science/gnuradio/Portfile</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportssciencegnuradioPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/science/gnuradio/Portfile (131481 => 131482)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/gnuradio/Portfile        2015-01-12 17:46:19 UTC (rev 131481)
+++ trunk/dports/science/gnuradio/Portfile        2015-01-12 18:04:40 UTC (rev 131482)
</span><span class="lines">@@ -178,6 +178,13 @@
</span><span class="cx"> # anything until this is fixed.
</span><span class="cx">
</span><span class="cx"> # depends_lib-append port:zeroc-ice35
</span><ins>+
+ # pyice is not checked for at configure, but is
+ # required for runtime; so use depends_run.
+
+# depends_run-append \
+# port:py27-zeroc-ice35
+
</ins><span class="cx"> configure.args-append -DENABLE_GR_CTRLPORT=ON
</span><span class="cx">
</span><span class="cx"> } else {
</span><span class="lines">@@ -190,6 +197,13 @@
</span><span class="cx">
</span><span class="cx"> if {[variant_isset performance_counters]} {
</span><span class="cx">
</span><ins>+ # these are not checked for at configure, but are
+ # required for runtime; so use depends_run.
+
+ depends_run-append \
+ port:py27-pygraphviz \
+ port:py27-networkx
+
</ins><span class="cx"> configure.args-append \
</span><span class="cx"> -DENABLE_PERFORMANCE_COUNTERS=ON
</span><span class="cx">
</span><span class="lines">@@ -207,6 +221,12 @@
</span><span class="cx"> depends_lib-append \
</span><span class="cx"> port:cppzmq
</span><span class="cx">
</span><ins>+ # pyzmq is not checked for at configure, but is
+ # required for runtime; so use depends_run.
+
+ depends_run-append \
+ port:py27-zmq
+
</ins><span class="cx"> configure.args-append \
</span><span class="cx"> -DENABLE_GR_ZEROMQ=ON
</span><span class="cx">
</span><span class="lines">@@ -229,9 +249,6 @@
</span><span class="cx"> port:cppunit \
</span><span class="cx"> port:fftw-3-single
</span><span class="cx">
</span><del>-depends_build-append \
- port:pkgconfig
-
</del><span class="cx"> # do VPATH build
</span><span class="cx">
</span><span class="cx"> set vpath ${workpath}/build
</span><span class="lines">@@ -283,160 +300,43 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> # per user concensus: enable all variants except +debug and +universal
</span><del>-# (and, for next, except +ctrlport, +performance_counters, and +zeromq);
</del><ins>+# (and, for devel and next: except +ctrlport, +performance_counters, and +zeromq);
</ins><span class="cx">
</span><span class="cx"> default_variants +docs +grc +qtgui +wxgui +uhd +orc +wavelet \
</span><span class="cx"> +jack +portaudio +swig +sdl
</span><span class="cx">
</span><del>-# set Python variants
</del><ins>+# set Python legacy variants; these can be removed 2016-01-01
</ins><span class="cx">
</span><del>-set pythons_suffixes {26 27}
-global chosen_python_suffix
-set chosen_python_suffix ""
</del><ins>+variant python26 description {Legacy variant} {}
+variant python27 description {Legacy variant} {}
</ins><span class="cx">
</span><del>-set pythons_ports {}
-foreach s ${pythons_suffixes} {
- lappend pythons_ports python${s}
-}
</del><ins>+# require Python 2.7
</ins><span class="cx">
</span><del>-foreach s ${pythons_suffixes} {
- set p python${s}
- set v [join [split ${s} ""] "."]
- set i [lsearch -exact ${pythons_ports} ${p}]
- set c [lreplace ${pythons_ports} ${i} ${i}]
- eval [subst {
- variant ${p} description "Build GNU Radio using Python ${v}" \
- conflicts ${c} {
</del><ins>+depends_lib-append \
+ port:python27
</ins><span class="cx">
</span><del>- set chosen_python_suffix ${s}
</del><ins>+# these are checked for at configure, then required for
+# runtime; so use depends_lib to get both.
</ins><span class="cx">
</span><del>- # specify the Python dependencies
</del><ins>+depends_lib-append \
+ port:py27-numpy \
+ port:py27-cheetah
</ins><span class="cx">
</span><del>- depends_lib-append \
- port:${p}
</del><ins>+# these are not checked for at configure, but are required
+# for runtime; so use depends_run.
</ins><span class="cx">
</span><del>- # these are checked for at configure, then required for
- # runtime; so use depends_lib to get both.
</del><ins>+depends_run-append \
+ port:py27-opengl \
+ port:py27-scipy
</ins><span class="cx">
</span><del>- depends_lib-append \
- port:py${s}-numpy \
- port:py${s}-cheetah
</del><ins>+# specify the Python version to use
</ins><span class="cx">
</span><del>- # these are not checked for at configure, but are required
- # for runtime; so use depends_run.
</del><ins>+configure.args-append \
+ -DPYTHON_EXECUTABLE=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 \
+ -DPYTHON_INCLUDE_DIR=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Headers \
+ -DPYTHON_LIBRARY=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Python \
+ -DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
</ins><span class="cx">
</span><del>- depends_run-append \
- port:py${s}-opengl \
- port:py${s}-scipy
-
- # specify the Python version to use
-
- configure.args-append \
- -DPYTHON_EXECUTABLE=${prefix}/bin/python${v} \
- -DPYTHON_INCLUDE_DIR=${prefix}/Library/Frameworks/Python.framework/Versions/${v}/Headers \
- -DPYTHON_LIBRARY=${prefix}/Library/Frameworks/Python.framework/Versions/${v}/Python \
- -DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v}/site-packages
-
- # check for variants that require Python
-
- if {[variant_isset docs]} {
-
- depends_build-append \
- port:py${s}-sphinx
-
- configure.args-append \
- -DSPHINX_EXECUTABLE=${prefix}/bin/sphinx-build-${v}
-
- }
-
- if {[variant_isset grc]} {
-
- # these are checked for at configure, then required
- # for runtime; so use depends_lib to get both.
-
- depends_lib-append \
- port:py${s}-lxml \
- port:py${s}-pygtk
-
- }
-
- if {[variant_isset qtgui]} {
-
- # pyqt4 is checked for at configure, then required for
- # runtime; so use depends_lib to get both. Can use
- # either py*-pyqt4 or py*-pyqt4-devel.
-
- depends_lib-append \
- path:share/py${s}-sip/PyQt4:py${s}-pyqt4
-
- # pyqwt is not checked for at configure, but is
- # required for runtime; so use depends_run.
-
- depends_run-append \
- port:py${s}-pyqwt
-
- }
-
- if {[variant_isset wxgui]} {
-
- # wxpython is checked for at configure, then required
- # for runtime; so use depends_lib to get both.
-
- depends_lib-append \
- port:py${s}-wxpython-3.0
-
- }
-
- if {[variant_exists ctrlport] && \
- [variant_isset ctrlport]} {
-
- # pyice is not checked for at configure, but is
- # required for runtime; so use depends_run.
-
-# depends_run-append \
-# port:py${s}-zeroc-ice35
-
- }
-
- if {[variant_exists performance_counters] && \
- [variant_isset performance_counters]} {
-
- # these are not checked for at configure, but are
- # required for runtime; so use depends_run.
-
- depends_run-append \
- port:py${s}-pygraphviz \
- port:py${s}-networkx
-
- }
-
- if {[variant_exists zeromq] && \
- [variant_isset zeromq]} {
-
- # pyzmq is not checked for at configure, but is
- # required for runtime; so use depends_run.
-
- depends_run-append \
- port:py${s}-zmq
-
- }
- }
- }]
-}
-
-# Python is required; default to 2.7
-
-if {![variant_isset python26] && ![variant_isset python27]} {
- default_variants +python27
-}
-
-# Make sure -python27 was not specified alone
-
-if {![variant_isset python26] && ![variant_isset python27]} {
- ui_error "GNU Radio requires a Python to be selected; you cannot use -python27 as a variant alone."
- return -code error "Invalid variant selection"
-}
-
</del><span class="cx"> variant docs description "Install GNU Radio documentation" {
</span><span class="cx">
</span><span class="cx"> depends_lib-append \
</span><span class="lines">@@ -444,9 +344,13 @@
</span><span class="cx"> path:bin/dot:graphviz \
</span><span class="cx"> port:xmlto
</span><span class="cx">
</span><ins>+ depends_build-append \
+ port:py27-sphinx
+
</ins><span class="cx"> configure.args-append \
</span><span class="cx"> -DENABLE_DOXYGEN=ON \
</span><del>- -DENABLE_SPHINX=ON
</del><ins>+ -DENABLE_SPHINX=ON \
+ -DSPHINX_EXECUTABLE=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/sphinx-build
</ins><span class="cx">
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -463,6 +367,13 @@
</span><span class="cx"> configure.args-append \
</span><span class="cx"> -DENABLE_GRC=ON
</span><span class="cx">
</span><ins>+ # these are checked for at configure, then required
+ # for runtime; so use depends_lib to get both.
+
+ depends_lib-append \
+ port:py27-lxml \
+ port:py27-pygtk
+
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if {![variant_isset grc]} {
</span><span class="lines">@@ -474,24 +385,43 @@
</span><span class="cx">
</span><span class="cx"> variant qtgui description "Install GNU Radio with support for Qt GUI" {
</span><span class="cx">
</span><ins>+ PortGroup qt4 1.0
+
</ins><span class="cx"> depends_lib-append \
</span><del>- port:qt4-mac \
</del><span class="cx"> port:qwtplot3d
</span><span class="cx">
</span><del>- configure.args-append \
- -DENABLE_GR_QTGUI=ON \
- -DQT_QMAKE_EXECUTABLE=${prefix}/bin/qmake
</del><ins>+ # pyqt4 is checked for at configure, then required for
+ # runtime; so use depends_lib to get both. Can use
+ # either py*-pyqt4 or py*-pyqt4-devel.
</ins><span class="cx">
</span><ins>+ depends_lib-append \
+ path:share/py27-sip/PyQt4:py27-pyqt4
+
</ins><span class="cx"> # Requires qwt >= 5.2, so not the "qwt" port. Also requires
</span><span class="cx"> # py*-pyqwt which does not compile with qwt >= 6.0; so -have- to
</span><span class="cx"> # use qwt52 for now.
</span><span class="cx">
</span><span class="cx"> depends_lib-append port:qwt52
</span><span class="cx">
</span><ins>+ # pyqwt is not checked for at configure, but is
+ # required for runtime; so use depends_run.
+
+ depends_run-append \
+ port:py27-pyqwt
+
+ configure.args-append \
+ -DENABLE_GR_QTGUI=ON \
+ -DQT_QMAKE_EXECUTABLE=${qt_qmake_cmd}
+
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if {![variant_isset qtgui]} {
</span><span class="cx">
</span><ins>+ # qt4 portgroup provides pkgconfig, so if not using Qt need that here.
+
+ depends_build-append \
+ port:pkgconfig
+
</ins><span class="cx"> configure.args-append \
</span><span class="cx"> -DENABLE_GR_QTGUI=OFF \
</span><span class="cx"> -DQT_QMAKE_EXECUTABLE=
</span><span class="lines">@@ -503,6 +433,12 @@
</span><span class="cx"> depends_lib-append \
</span><span class="cx"> port:${wxWidgets.port}
</span><span class="cx">
</span><ins>+ # wxpython is checked for at configure, then required
+ # for runtime; so use depends_lib to get both.
+
+ depends_lib-append \
+ port:py27-wxpython-3.0
+
</ins><span class="cx"> configure.args-append \
</span><span class="cx"> -DENABLE_GR_WXGUI=ON
</span><span class="cx">
</span><span class="lines">@@ -517,6 +453,8 @@
</span><span class="cx">
</span><span class="cx"> variant uhd description "Install GNU Radio with support for UHD" {
</span><span class="cx">
</span><ins>+ # allow for uhd or uhd-devel
+
</ins><span class="cx"> depends_lib-append \
</span><span class="cx"> path:lib/libuhd.dylib:uhd
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>