[82646] trunk/dports/science/mpich2/Portfile

Ryan Schmidt ryandesign at macports.org
Wed Aug 17 08:43:26 PDT 2011


On Aug 17, 2011, at 10:16, eborisch at macports.org wrote:

> Revision: 82646
>          http://trac.macports.org/changeset/82646
> Author:   eborisch at macports.org
> Date:     2011-08-17 08:16:06 -0700 (Wed, 17 Aug 2011)
> Log Message:
> -----------
> mpich2: Document conflict with lammpi and check before building. Fixes #30825. Adds clang and system_gcc variants.
> 
> Modified Paths:
> --------------
>    trunk/dports/science/mpich2/Portfile
> 
> Modified: trunk/dports/science/mpich2/Portfile
> ===================================================================
> --- trunk/dports/science/mpich2/Portfile	2011-08-17 14:37:08 UTC (rev 82645)
> +++ trunk/dports/science/mpich2/Portfile	2011-08-17 15:16:06 UTC (rev 82646)
> @@ -4,6 +4,7 @@
> PortSystem          1.0
> name                mpich2
> version             1.4
> +revision            1
> license             BSD
> categories          science parallel net
> platforms           darwin
> @@ -25,6 +26,12 @@
>                     sha1    011028456e268b013c55a00dfe51f4bc905c1c48 \
>                     rmd160  ecd60567d80ad08ecd06e8fe8cfaeb626941f768
> 
> +# Don't build if lammpi is around.
> +if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
> +  ui_error "Cannot co-exist with lammpi; please deactivate lammpi before building."
> +  return -code error
> +}

You can't do this in the main body of the port; you must do it in a pre-configure or pre-build block (whichever block it is that fails if lammpi is installed).





More information about the macports-dev mailing list