MacPorts: Installing wxWidgets-devel @2.9.4

For OSX users installing GNU Radio via MacPorts, the WX branch is
getting closer to working; still a few days away, but getting closer.
In the meantime, a few folks have tried out the following “script” and
it seems to work for them to get wxWidgets-devel @2.9.4 installed –
which matches the version of wxPython-devel already installed, and thus
forms a temporary work-around for the current WX issues. Watch wrap
when doing cut-and-paste, and I look forward to feedback if this works
or does not for you. - MLD

{{{

mkdir tmp
cd tmp
svn co -r 108793
http://svn.macports.org/repository/macports/trunk/dports/graphics/wxWidgets-devel
cd wxWidgets-devel
old_active_wxWidgets_devel=port installed | grep wxWidgets | grep active | sed -e 's@(active)@@g'
this_wxWidgets_devel_vars=port installed | grep wxWidgets | grep active | tail -1 | awk '{ print $2 }' | sed -e 's|[@0-9_\.]*||g'
sudo port -f deactivate $old_active_wxWidgets_devel
sudo port install $this_wxWidgets_devel_vars

}}}

and if that succeeds (or, if you just want to), you can clean up by
doing:

{{{

cd …/…
rm -rf tmp

}}}