[106683] trunk/dports/science/gr-osmosdr

Ryan Schmidt ryandesign at macports.org
Tue Jun 4 19:14:57 PDT 2013


On Jun 4, 2013, at 21:05, michaelld at macports.org wrote:

> Revision: 106683
>          https://trac.macports.org/changeset/106683
> Author:   michaelld at macports.org
> Date:     2013-06-04 19:05:18 -0700 (Tue, 04 Jun 2013)
> Log Message:
> -----------
> gr-osmosdr:
> * update to latest;
> * split into 2 versions using GNU Radio APIs for 3.6 and 3.7;
> * add extra check for non-next version for the presence of gnuradio-next.
> 
> Modified Paths:
> --------------
>    trunk/dports/science/gr-osmosdr/Portfile


> +    pre-fetch {
> +        if {[file exists /opt/local/lib/libgnuradio-runtime.dylib]} {
> +            # gnuradio-next is installed
> +            ui_msg "\nError: ${name} requires the gnuradio or gnuradio-devel port, and will not work with gnuradio-next.  deactivate gnuradio-next, and then install or activate gnuradio or gnuradio-devel.\n"
> +            return -code error "Invalid port dependency"
> +        }
> +    }

Doesn't this "/opt/local" need to be "${prefix}"? In fact there may be a better way to accomplish this, by using the registry_active procedure, like the "deactivate hack" does:

https://trac.macports.org/wiki/PortfileRecipes#deactivatehack




More information about the macports-dev mailing list