diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2021-09-10 18:48:19 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2021-09-10 18:50:08 +0000 |
commit | af1b8fdf83929fcf6acf149bcdb9b81a59cd5981 (patch) | |
tree | df3d3820d2958222534eb70ecd2442f97922a53a | |
parent | a08d1685140a234e7a7e02b4d701d450eaf58d07 (diff) | |
download | ports-af1b8fdf83929fcf6acf149bcdb9b81a59cd5981.tar.gz ports-af1b8fdf83929fcf6acf149bcdb9b81a59cd5981.zip |
science/cantera: New port: Chemical kinetics, thermodynamics, and transport tool suite
-rw-r--r-- | science/Makefile | 1 | ||||
-rw-r--r-- | science/cantera/Makefile | 51 | ||||
-rw-r--r-- | science/cantera/distinfo | 3 | ||||
-rw-r--r-- | science/cantera/files/patch-SConstruct | 35 | ||||
-rw-r--r-- | science/cantera/pkg-descr | 4 | ||||
-rw-r--r-- | science/cantera/pkg-plist | 312 |
6 files changed, 406 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile index a670fb648dff..0d094c356ee6 100644 --- a/science/Makefile +++ b/science/Makefile @@ -34,6 +34,7 @@ SUBDIR += berkeleygw SUBDIR += bodr SUBDIR += buddy + SUBDIR += cantera SUBDIR += cdcl SUBDIR += cdf SUBDIR += cdk diff --git a/science/cantera/Makefile b/science/cantera/Makefile new file mode 100644 index 000000000000..f8891b0e3d5d --- /dev/null +++ b/science/cantera/Makefile @@ -0,0 +1,51 @@ +PORTNAME= cantera +DISTVERSIONPREFIX= v +DISTVERSION= 2.5.1-552 +DISTVERSIONSUFFIX= -gcf085e47e +CATEGORIES= science # chemistry physics + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Chemical kinetics, thermodynamics, and transport tool suite + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/License.txt + +BUILD_DEPENDS= googletest>0:devel/googletest +LIB_DEPENDS= libfmt.so:devel/libfmt \ + libsundials_cvodes.so:math/sundials \ + libyaml-cpp.so:devel/yaml-cpp + +USES= compiler:c++11-lang eigen:3 python scons +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= Cantera + +MAKE_ARGS= system_eigen='y' \ + system_sundials='y' \ + system_fmt='y' \ + system_yamlcpp='y' \ + googletest='system' \ + sundials_include='/usr/local/include/sundials' \ + extra_inc_dirs="${LOCALBASE}/include:${LOCALBASE}/include/eigen3" \ + extra_lib_dirs="${LOCALBASE}/lib" \ + debug='no' \ + cc_flags="${CXXFLAGS}" \ + prefix="${PREFIX}" + +ALL_TARGET= build +TEST_TARGET= test # some tests fail, see https://github.com/Cantera/cantera/issues/1095 + +OPTIONS_DEFINE= PYTHON + +PYTHON_MAKE_ARGS= python_cmd="${PYTHON_CMD}" +PYTHON_MAKE_ARGS_OFF= python_package="none" +PYTHON_BROKEN= installs *.cpython-38.pyc files referring to the stage directory, see https://github.com/Cantera/cantera/issues/1094 + +do-install: + cd ${WRKSRC} && \ + ${MAKE_CMD} install \ + stage_dir="${STAGEDIR}" + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcantera_shared.so.2.6.0 + +.include <bsd.port.mk> diff --git a/science/cantera/distinfo b/science/cantera/distinfo new file mode 100644 index 000000000000..ddd23d1bb6a7 --- /dev/null +++ b/science/cantera/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1631262476 +SHA256 (Cantera-cantera-v2.5.1-552-gcf085e47e_GH0.tar.gz) = 3afb841fe2e20ed2b4271f8d9bc2b6dac87d2dac0fed6ae5b308bb51f73ba71a +SIZE (Cantera-cantera-v2.5.1-552-gcf085e47e_GH0.tar.gz) = 2465290 diff --git a/science/cantera/files/patch-SConstruct b/science/cantera/files/patch-SConstruct new file mode 100644 index 000000000000..e26a83d55b4b --- /dev/null +++ b/science/cantera/files/patch-SConstruct @@ -0,0 +1,35 @@ +--- SConstruct.orig 2021-09-03 11:33:59 UTC ++++ SConstruct +@@ -312,7 +312,7 @@ elif 'icc' in env.subst('$CC'): + defaults.warningFlags = '-Wcheck' + env['openmp_flag'] = ['-openmp'] + +-elif 'clang' in env.subst('$CC'): ++elif 'clang' in env.subst('$CC') or 'cc' in env.subst('$CC'): + defaults.ccFlags = '-fcolor-diagnostics' + defaults.cxxFlags = '-std=c++11' + defaults.buildPch = True +@@ -718,17 +718,18 @@ valid_arguments = (set(opt[0] for opt in windows_compi + for arg in ARGUMENTS: + if arg not in valid_arguments: + print('Encountered unexpected command line argument: %r' % arg) +- sys.exit(1) ++ #sys.exit(1) + + env["cantera_version"] = "2.6.0a2" + # For use where pre-release tags are not permitted (MSI, sonames) + env['cantera_pure_version'] = re.match(r'(\d+\.\d+\.\d+)', env['cantera_version']).group(0) + env['cantera_short_version'] = re.match(r'(\d+\.\d+)', env['cantera_version']).group(0) + +-try: +- env["git_commit"] = get_command_output("git", "rev-parse", "--short", "HEAD") +-except subprocess.CalledProcessError: +- env["git_commit"] = "unknown" ++#try: ++# env["git_commit"] = get_command_output("git", "rev-parse", "--short", "HEAD") ++#except subprocess.CalledProcessError: ++# env["git_commit"] = "unknown" ++env["git_commit"] = "unknown" + + # Print values of all build options: + print("Configuration variables read from 'cantera.conf' and command line:") diff --git a/science/cantera/pkg-descr b/science/cantera/pkg-descr new file mode 100644 index 000000000000..7ebb53c5c9c7 --- /dev/null +++ b/science/cantera/pkg-descr @@ -0,0 +1,4 @@ +Cantera is an open-source suite of tools for problems involving chemical +kinetics, thermodynamics, and transport processes. + +WWW: https://cantera.org/ diff --git a/science/cantera/pkg-plist b/science/cantera/pkg-plist new file mode 100644 index 000000000000..331000ae9a17 --- /dev/null +++ b/science/cantera/pkg-plist @@ -0,0 +1,312 @@ +bin/setup_cantera +bin/setup_cantera.csh +include/cantera/Cantera.mak +include/cantera/base/AnyMap.h +include/cantera/base/AnyMap.inl.h +include/cantera/base/Array.h +include/cantera/base/FactoryBase.h +include/cantera/base/Solution.h +include/cantera/base/Units.h +include/cantera/base/ValueCache.h +include/cantera/base/YamlWriter.h +include/cantera/base/clockWC.h +include/cantera/base/config.h +include/cantera/base/config.h.in +include/cantera/base/ct_defs.h +include/cantera/base/ctexceptions.h +include/cantera/base/ctml.h +include/cantera/base/fmt.h +include/cantera/base/global.h +include/cantera/base/logger.h +include/cantera/base/plots.h +include/cantera/base/stringUtils.h +include/cantera/base/utilities.h +include/cantera/base/xml.h +include/cantera/base/yaml.h +include/cantera/clib/clib_defs.h +include/cantera/clib/ct.h +include/cantera/clib/ctfunc.h +include/cantera/clib/ctmatlab.h +include/cantera/clib/ctmultiphase.h +include/cantera/clib/ctonedim.h +include/cantera/clib/ctreactor.h +include/cantera/clib/ctrpath.h +include/cantera/clib/ctsurf.h +include/cantera/clib/ctxml.h +include/cantera/cython/funcWrapper.h +include/cantera/cython/wrappers.h +include/cantera/equil/ChemEquil.h +include/cantera/equil/MultiPhase.h +include/cantera/equil/MultiPhaseEquil.h +include/cantera/equil/vcs_MultiPhaseEquil.h +include/cantera/equil/vcs_SpeciesProperties.h +include/cantera/equil/vcs_VolPhase.h +include/cantera/equil/vcs_defs.h +include/cantera/equil/vcs_internal.h +include/cantera/equil/vcs_solve.h +include/cantera/equil/vcs_species_thermo.h +include/cantera/kinetics.h +include/cantera/kinetics/BulkKinetics.h +include/cantera/kinetics/EdgeKinetics.h +include/cantera/kinetics/Falloff.h +include/cantera/kinetics/FalloffFactory.h +include/cantera/kinetics/FalloffMgr.h +include/cantera/kinetics/GasKinetics.h +include/cantera/kinetics/Group.h +include/cantera/kinetics/ImplicitSurfChem.h +include/cantera/kinetics/InterfaceKinetics.h +include/cantera/kinetics/Kinetics.h +include/cantera/kinetics/KineticsFactory.h +include/cantera/kinetics/MultiRate.h +include/cantera/kinetics/RateCoeffMgr.h +include/cantera/kinetics/Reaction.h +include/cantera/kinetics/ReactionData.h +include/cantera/kinetics/ReactionFactory.h +include/cantera/kinetics/ReactionPath.h +include/cantera/kinetics/ReactionRate.h +include/cantera/kinetics/ReactionRateFactory.h +include/cantera/kinetics/RxnRates.h +include/cantera/kinetics/StoichManager.h +include/cantera/kinetics/ThirdBodyCalc.h +include/cantera/kinetics/importKinetics.h +include/cantera/kinetics/reaction_defs.h +include/cantera/kinetics/solveSP.h +include/cantera/numerics/BandMatrix.h +include/cantera/numerics/CVodesIntegrator.h +include/cantera/numerics/DAE_Solver.h +include/cantera/numerics/DenseMatrix.h +include/cantera/numerics/Func1.h +include/cantera/numerics/FuncEval.h +include/cantera/numerics/GeneralMatrix.h +include/cantera/numerics/IDA_Solver.h +include/cantera/numerics/Integrator.h +include/cantera/numerics/ResidEval.h +include/cantera/numerics/ResidJacEval.h +include/cantera/numerics/ctlapack.h +include/cantera/numerics/eigen_dense.h +include/cantera/numerics/funcs.h +include/cantera/numerics/polyfit.h +include/cantera/oneD/Boundary1D.h +include/cantera/oneD/Domain1D.h +include/cantera/oneD/Inlet1D.h +include/cantera/oneD/IonFlow.h +include/cantera/oneD/MultiJac.h +include/cantera/oneD/MultiNewton.h +include/cantera/oneD/OneDim.h +include/cantera/oneD/Sim1D.h +include/cantera/oneD/StFlow.h +include/cantera/oneD/refine.h +include/cantera/onedim.h +include/cantera/reactionpaths.h +include/cantera/test/gtest_utils.h +include/cantera/thermo.h +include/cantera/thermo/BinarySolutionTabulatedThermo.h +include/cantera/thermo/ConstCpPoly.h +include/cantera/thermo/DebyeHuckel.h +include/cantera/thermo/EdgePhase.h +include/cantera/thermo/Elements.h +include/cantera/thermo/GibbsExcessVPSSTP.h +include/cantera/thermo/HMWSoln.h +include/cantera/thermo/IdealGasPhase.h +include/cantera/thermo/IdealMolalSoln.h +include/cantera/thermo/IdealSolidSolnPhase.h +include/cantera/thermo/IdealSolnGasVPSS.h +include/cantera/thermo/IonsFromNeutralVPSSTP.h +include/cantera/thermo/LatticePhase.h +include/cantera/thermo/LatticeSolidPhase.h +include/cantera/thermo/MargulesVPSSTP.h +include/cantera/thermo/MaskellSolidSolnPhase.h +include/cantera/thermo/MetalPhase.h +include/cantera/thermo/MixtureFugacityTP.h +include/cantera/thermo/MolalityVPSSTP.h +include/cantera/thermo/Mu0Poly.h +include/cantera/thermo/MultiSpeciesThermo.h +include/cantera/thermo/Nasa9Poly1.h +include/cantera/thermo/Nasa9PolyMultiTempRegion.h +include/cantera/thermo/NasaPoly1.h +include/cantera/thermo/NasaPoly2.h +include/cantera/thermo/PDSS.h +include/cantera/thermo/PDSSFactory.h +include/cantera/thermo/PDSS_ConstVol.h +include/cantera/thermo/PDSS_HKFT.h +include/cantera/thermo/PDSS_IdealGas.h +include/cantera/thermo/PDSS_IonsFromNeutral.h +include/cantera/thermo/PDSS_SSVol.h +include/cantera/thermo/PDSS_Water.h +include/cantera/thermo/PengRobinson.h +include/cantera/thermo/Phase.h +include/cantera/thermo/PureFluidPhase.h +include/cantera/thermo/RedlichKisterVPSSTP.h +include/cantera/thermo/RedlichKwongMFTP.h +include/cantera/thermo/ShomatePoly.h +include/cantera/thermo/SingleSpeciesTP.h +include/cantera/thermo/Species.h +include/cantera/thermo/SpeciesThermoFactory.h +include/cantera/thermo/SpeciesThermoInterpType.h +include/cantera/thermo/StoichSubstance.h +include/cantera/thermo/SurfPhase.h +include/cantera/thermo/ThermoFactory.h +include/cantera/thermo/ThermoPhase.h +include/cantera/thermo/VPStandardStateTP.h +include/cantera/thermo/WaterProps.h +include/cantera/thermo/WaterPropsIAPWS.h +include/cantera/thermo/WaterPropsIAPWSphi.h +include/cantera/thermo/WaterSSTP.h +include/cantera/thermo/electrolytes.h +include/cantera/thermo/speciesThermoTypes.h +include/cantera/tpx/Sub.h +include/cantera/tpx/utils.h +include/cantera/transport.h +include/cantera/transport/DustyGasTransport.h +include/cantera/transport/GasTransport.h +include/cantera/transport/HighPressureGasTransport.h +include/cantera/transport/IonGasTransport.h +include/cantera/transport/MixTransport.h +include/cantera/transport/MultiTransport.h +include/cantera/transport/TransportBase.h +include/cantera/transport/TransportData.h +include/cantera/transport/TransportFactory.h +include/cantera/transport/UnityLewisTransport.h +include/cantera/transport/WaterTransport.h +include/cantera/zeroD/ConstPressureReactor.h +include/cantera/zeroD/FlowDevice.h +include/cantera/zeroD/FlowDeviceFactory.h +include/cantera/zeroD/FlowReactor.h +include/cantera/zeroD/IdealGasConstPressureReactor.h +include/cantera/zeroD/IdealGasReactor.h +include/cantera/zeroD/Reactor.h +include/cantera/zeroD/ReactorBase.h +include/cantera/zeroD/ReactorFactory.h +include/cantera/zeroD/ReactorNet.h +include/cantera/zeroD/ReactorSurface.h +include/cantera/zeroD/Reservoir.h +include/cantera/zeroD/Wall.h +include/cantera/zeroD/WallFactory.h +include/cantera/zeroD/flowControllers.h +include/cantera/zerodim.h +lib/libcantera.a +lib/libcantera_shared.so +lib/libcantera_shared.so.2 +lib/libcantera_shared.so.2.6.0 +libdata/pkgconfig/cantera.pc +%%DATADIR%%/data/KOH.cti +%%DATADIR%%/data/KOH.xml +%%DATADIR%%/data/KOH.yaml +%%DATADIR%%/data/air.cti +%%DATADIR%%/data/air.xml +%%DATADIR%%/data/air.yaml +%%DATADIR%%/data/airNASA9.cti +%%DATADIR%%/data/airNASA9.xml +%%DATADIR%%/data/airNASA9.yaml +%%DATADIR%%/data/argon.cti +%%DATADIR%%/data/argon.xml +%%DATADIR%%/data/critProperties.xml +%%DATADIR%%/data/diamond.cti +%%DATADIR%%/data/diamond.xml +%%DATADIR%%/data/diamond.yaml +%%DATADIR%%/data/elements.xml +%%DATADIR%%/data/graphite.cti +%%DATADIR%%/data/graphite.xml +%%DATADIR%%/data/graphite.yaml +%%DATADIR%%/data/gri30.cti +%%DATADIR%%/data/gri30.xml +%%DATADIR%%/data/gri30.yaml +%%DATADIR%%/data/gri30_highT.cti +%%DATADIR%%/data/gri30_highT.xml +%%DATADIR%%/data/gri30_highT.yaml +%%DATADIR%%/data/gri30_ion.cti +%%DATADIR%%/data/gri30_ion.xml +%%DATADIR%%/data/gri30_ion.yaml +%%DATADIR%%/data/h2o2.cti +%%DATADIR%%/data/h2o2.xml +%%DATADIR%%/data/h2o2.yaml +%%DATADIR%%/data/liquidvapor.cti +%%DATADIR%%/data/liquidvapor.xml +%%DATADIR%%/data/liquidvapor.yaml +%%DATADIR%%/data/lithium_ion_battery.cti +%%DATADIR%%/data/lithium_ion_battery.xml +%%DATADIR%%/data/lithium_ion_battery.yaml +%%DATADIR%%/data/methane_pox_on_pt.cti +%%DATADIR%%/data/methane_pox_on_pt.xml +%%DATADIR%%/data/methane_pox_on_pt.yaml +%%DATADIR%%/data/nDodecane_Reitz.cti +%%DATADIR%%/data/nDodecane_Reitz.xml +%%DATADIR%%/data/nDodecane_Reitz.yaml +%%DATADIR%%/data/nasa.cti +%%DATADIR%%/data/nasa.xml +%%DATADIR%%/data/nasa_condensed.cti +%%DATADIR%%/data/nasa_condensed.xml +%%DATADIR%%/data/nasa_condensed.yaml +%%DATADIR%%/data/nasa_gas.cti +%%DATADIR%%/data/nasa_gas.xml +%%DATADIR%%/data/nasa_gas.yaml +%%DATADIR%%/data/ohn.cti +%%DATADIR%%/data/ohn.xml +%%DATADIR%%/data/ohn.yaml +%%DATADIR%%/data/ptcombust.cti +%%DATADIR%%/data/ptcombust.xml +%%DATADIR%%/data/ptcombust.yaml +%%DATADIR%%/data/sample-data/LiC6_electrodebulk.yaml +%%DATADIR%%/data/silane.cti +%%DATADIR%%/data/silane.xml +%%DATADIR%%/data/silane.yaml +%%DATADIR%%/data/silicon.cti +%%DATADIR%%/data/silicon.xml +%%DATADIR%%/data/silicon.yaml +%%DATADIR%%/data/silicon_carbide.cti +%%DATADIR%%/data/silicon_carbide.xml +%%DATADIR%%/data/silicon_carbide.yaml +%%DATADIR%%/data/sofc.cti +%%DATADIR%%/data/sofc.xml +%%DATADIR%%/data/sofc.yaml +%%DATADIR%%/data/water.cti +%%DATADIR%%/data/water.xml +%%DATADIR%%/data/water.yaml +%%DATADIR%%/doc/LICENSE.txt +%%DATADIR%%/samples/cxx/LiC6_electrode/CMakeLists.txt +%%DATADIR%%/samples/cxx/LiC6_electrode/LiC6_electrode.cpp +%%DATADIR%%/samples/cxx/LiC6_electrode/Makefile +%%DATADIR%%/samples/cxx/LiC6_electrode/SConstruct +%%DATADIR%%/samples/cxx/bvp/BoundaryValueProblem.h +%%DATADIR%%/samples/cxx/bvp/CMakeLists.txt +%%DATADIR%%/samples/cxx/bvp/Makefile +%%DATADIR%%/samples/cxx/bvp/SConstruct +%%DATADIR%%/samples/cxx/bvp/blasius.cpp +%%DATADIR%%/samples/cxx/combustor/CMakeLists.txt +%%DATADIR%%/samples/cxx/combustor/Makefile +%%DATADIR%%/samples/cxx/combustor/SConstruct +%%DATADIR%%/samples/cxx/combustor/combustor.cpp +%%DATADIR%%/samples/cxx/custom/CMakeLists.txt +%%DATADIR%%/samples/cxx/custom/Makefile +%%DATADIR%%/samples/cxx/custom/SConstruct +%%DATADIR%%/samples/cxx/custom/custom.cpp +%%DATADIR%%/samples/cxx/demo/CMakeLists.txt +%%DATADIR%%/samples/cxx/demo/Makefile +%%DATADIR%%/samples/cxx/demo/SConstruct +%%DATADIR%%/samples/cxx/demo/demo.cpp +%%DATADIR%%/samples/cxx/flamespeed/CMakeLists.txt +%%DATADIR%%/samples/cxx/flamespeed/Makefile +%%DATADIR%%/samples/cxx/flamespeed/SConstruct +%%DATADIR%%/samples/cxx/flamespeed/flamespeed.cpp +%%DATADIR%%/samples/cxx/gas_transport/CMakeLists.txt +%%DATADIR%%/samples/cxx/gas_transport/Makefile +%%DATADIR%%/samples/cxx/gas_transport/SConstruct +%%DATADIR%%/samples/cxx/gas_transport/gas_transport.cpp +%%DATADIR%%/samples/cxx/kinetics1/CMakeLists.txt +%%DATADIR%%/samples/cxx/kinetics1/Makefile +%%DATADIR%%/samples/cxx/kinetics1/SConstruct +%%DATADIR%%/samples/cxx/kinetics1/example_utils.h +%%DATADIR%%/samples/cxx/kinetics1/kinetics1.cpp +%%DATADIR%%/samples/cxx/openmp_ignition/CMakeLists.txt +%%DATADIR%%/samples/cxx/openmp_ignition/Makefile +%%DATADIR%%/samples/cxx/openmp_ignition/SConstruct +%%DATADIR%%/samples/cxx/openmp_ignition/openmp_ignition.cpp +%%DATADIR%%/samples/cxx/rankine/CMakeLists.txt +%%DATADIR%%/samples/cxx/rankine/Makefile +%%DATADIR%%/samples/cxx/rankine/SConstruct +%%DATADIR%%/samples/cxx/rankine/rankine.cpp +share/man/man1/ck2cti.1.gz +share/man/man1/ck2yaml.1.gz +share/man/man1/cti2yaml.1.gz +share/man/man1/ctml2yaml.1.gz +share/man/man1/ctml_writer.1.gz |