[112986] trunk/dports/math/gnudatalanguage/Portfile

Ryan Schmidt ryandesign at macports.org
Wed Nov 6 16:45:42 PST 2013


On Nov 6, 2013, at 03:16, takeshi at macports.org wrote:

> Revision
> 112986
> Author
> takeshi at macports.org
> Date
> 2013-11-06 01:16:22 -0800 (Wed, 06 Nov 2013)
> Log Message
> 
> gnudatalangauge: terminate if port:antlr is installed
> Modified Paths
> 
> 	• trunk/dports/math/gnudatalanguage/Portfile
> Diff
> 
> Modified: trunk/dports/math/gnudatalanguage/Portfile (112985 => 112986)
> 
> --- trunk/dports/math/gnudatalanguage/Portfile	2013-11-06 06:02:42 UTC (rev 112985)
> +++ trunk/dports/math/gnudatalanguage/Portfile	2013-11-06 09:16:22 UTC (rev 112986)
> 
> @@ -58,6 +58,12 @@
> 
>     reinplace "s|\.\./gshhs|gshhs|" ${worksrcpath}/src/gshhs.cpp
> 
>  }
> 
>  
> 
> +pre-configure {
> +    if {[file exists ${prefix}/bin/antlr]} {
> +        return -code error "Before installing ${name}, please uninstall (or deactivate) antlr."
> +    }
> +}
> +

Please use the conflicts_build portgroup for this kind of thing.





More information about the macports-dev mailing list