[97955] trunk/dports/math/petsc/Portfile
Ryan Schmidt
ryandesign at macports.org
Thu Sep 20 20:33:39 PDT 2012
On Sep 20, 2012, at 15:35, mmoll at macports.org wrote:
> Revision: 97955
> http://trac.macports.org//changeset/97955
> Author: mmoll at macports.org
> 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
More information about the macports-dev
mailing list