Skip to content

Commit

Permalink
esmf: Update 8.5.0 --> 8.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave-Allured authored Mar 9, 2025
1 parent 105469f commit b3f1e9d
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions science/esmf/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@ PortGroup github 1.0

compilers.choose f90 cxx
compilers.setup require_fortran -clang
compilers.allow_arguments_mismatch \
yes
mpi.setup
mpi.enforce_variant netcdf-fortran

github.setup esmf-org esmf 8.5.0 v
revision 2
checksums rmd160 3d1edb514d5b09b46f1f60047e3f5cd3c0bf7b43 \
sha256 acd0b2641587007cc3ca318427f47b9cae5bfd2da8d2a16ea778f637107c29c4 \
size 14091400
github.setup esmf-org esmf 8.8.0 v
revision 0
checksums rmd160 f0d6f141700128d15267396caf3a8c963d784c3c \
sha256 f89327428aeef6ad34660b5b78f30d1c55ec67efb8f7df1991fdaa6b1eb3a27c \
size 14256488

version [string map {_ .} ${github.version}]
categories science devel
license NCSA
maintainers {takeshi @tenomoto} openmaintainer
maintainers {takeshi @tenomoto} \
{@Dave-Allured noaa.gov:dave.allured} \
openmaintainer

description software for building and coupling weather, climate, and related models
long_description The ESMF defines an architecture for composing complex, coupled \
modeling systems and includes data structures \
Expand All @@ -36,6 +37,10 @@ depends_lib port:netcdf \
port:xercesc3 \
port:yaml-cpp

# Avoid duplicate LC_RPATH.
# Discussion in https://github.com/macports/macports-ports/pull/21765
compilers.add_gcc_rpath_support no

if {${os.platform} eq "darwin" && ${os.major} < 12} {
known_fail yes
pre-fetch {
Expand All @@ -44,8 +49,6 @@ if {${os.platform} eq "darwin" && ${os.major} < 12} {
}
}

patchfiles install_name.patch

post-patch {
if {[variant_isset openmpi]} {
foreach c {g95 gfortran gfortranclang} {
Expand Down Expand Up @@ -179,22 +182,6 @@ post-destroot {
system -W ${destroot}${prefix}/lib "ranlib libesmf.a"
system -W ${destroot}${prefix}/lib "ranlib libesmftrace_static.a"
file delete ${destroot}${prefix}/lib/preload.sh
# Adhoc fix
foreach f {ESMF_PrintInfo ESMF_Regrid ESMF_Scrip2Unstruct \
ESMF_PrintInfoC ESMF_RegridWeightGen ESMF_WebServController} {
system -W ${destroot}${prefix}/bin \
"install_name_tool -change ${destroot}${prefix}/lib/libesmf.dylib ${prefix}/lib/libesmf.dylib ${f}"
foreach l {gfortran.5 quadmath.0} {
system -W ${destroot}${prefix}/bin \
"install_name_tool -change @rpath/lib${l}.dylib ${prefix}/lib/libgcc/lib${l}.dylib ${f}"
}
}
foreach f {esmf esmftrace_preload esmf_fullylinked} {
system -W ${destroot}${prefix}/lib \
"install_name_tool -change @rpath/libgfortran.5.dylib ${prefix}/lib/libgcc/libgfortran.5.dylib lib${f}.dylib"
system -W ${destroot}${prefix}/lib \
"install_name_tool -change ${worksrcpath}/lib${f}.dylib ${prefix}/lib/lib${f}.dylib lib${f}.dylib"
}
}

# Exclude pre-release candidates
Expand Down

0 comments on commit b3f1e9d

Please sign in to comment.