On Jun 4, 2013, at 21:05, [email protected] wrote:

> Revision: 106683
>          https://trac.macports.org/changeset/106683
> Author:   [email protected]
> 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


_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to