[118977] trunk/dports/gis/orfeotoolbox

Ryan Schmidt ryandesign at macports.org
Mon Apr 14 07:24:35 PDT 2014


On Apr 14, 2014, at 08:28, stromnov at macports.org wrote:

> Revision
> 118977
> Author
> stromnov at macports.org
> Date
> 2014-04-14 06:28:00 -0700 (Mon, 14 Apr 2014)
> Log Message
> 
> orfeotoolbox: update to version 4.0.0
> Modified Paths
> 
> 	• trunk/dports/gis/orfeotoolbox/Portfile


> -worksrcdir          ${worksrcdir}/build
> +worksrcdir          ${worksrcdir}/../build

${workpath}/build should be equivalent and would be simpler.


>  pre-build {
> 
> -    if { ![catch {set installed [lindex [registry_active libsvm] 0]}]} {
> -        ui_msg "OrfeoToolbox will fail to build because the 'libsvm' port is active. Deactivate"
> -        ui_msg "'libsvm' by running 'port deactivate libsvm' and try again. You may reactivate"
> -        ui_msg "'libsvm' after installing OrfeoToolbox by running 'port activate libsvm'."
> -        return -code error "check is installed"
> 
> +    foreach c {libsvm openjpeg15 OpenSceneGraph InsightToolkit} {
> +        if { ![catch {set installed [lindex [registry_active $c] 0]}]} {
> +            ui_msg "OrfeoToolbox will fail to build because the '$c' port is active. Deactivate"
> +            ui_msg "'$c' by running 'port deactivate $c' and try again. You may reactivate"
> +            ui_msg "'$c' after installing OrfeoToolbox by running 'port activate $c'."
> +            return -code error "check is installed"
> +        }
> 
>      }
> 
>  }

You should use the conflicts_build portgroup here, instead of reinventing its functionality.



More information about the macports-dev mailing list