On Sep 20, 2012, at 15:35, [email protected] wrote:
> Revision: 97955
> http://trac.macports.org//changeset/97955
> Author: [email protected]
> Date: 2012-09-20 13:35:59 -0700 (Thu, 20 Sep 2012)
> Log Message:
> -----------
> math/petsc: update to 3.3-p3, check whether hdf5-18 is installed with
> +fortran variant, make sure old petsc version is deactivated before upgrade
>
> Modified Paths:
> --------------
> trunk/dports/math/petsc/Portfile
> +pre-fetch {
> + if {![file exists ${prefix}/lib/libhdf5_fortran.a]} {
> + return -code error "Please install hdf5-18 with the +fortran variant
> enabled first."
> + }
> +}
You cannot assume that dependencies have been installed by fetch time. This
should be pre-configure not pre-fetch.
> + if {[file exists ${prefix}/lib/petsc/lib/libpetsc.a]} {
> + ui_error "petsc must be deactivated before upgrade."
> + error "Please run `sudo port deactivate petsc` and try again."
> + }
You could use the conflicts_build portgroup for this.
PortGroup conflicts_build 1.0
conflicts_build petsc
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev