SymEngine: add v0.9 (#30115)

This commit is contained in:
Jean-Paul Pelteret 2022-04-19 11:42:41 +02:00 committed by GitHub
parent be12fea11e
commit d6483fe483
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,9 +15,10 @@ class Symengine(CMakePackage):
homepage = "https://symengine.org"
url = "https://github.com/symengine/symengine/archive/v0.2.0.tar.gz"
git = "https://github.com/symengine/symengine.git"
maintainers = ['HaoZeke']
maintainers = ['HaoZeke', 'jppelteret']
version('master', branch='master')
version('0.9.0', sha256='dcf174ac708ed2acea46691f6e78b9eb946d8a2ba62f75e87cf3bf4f0d651724')
version('0.8.1', sha256='41eb6ae6901c09e53d7f61f0758f9201e81fc534bfeecd4b2bd4b4e6f6768693')
version('0.7.0', sha256='8b865bb72b71539d9cd2488a0468c6c3ea90cc606062a7880c3ff5af6abd74b1')
version('0.6.0', sha256='4d2caa86c03eaaa8ed004084d02f87b5c51b6229f8ba70d161227e22d6302f0a')
@ -57,6 +58,7 @@ class Symengine(CMakePackage):
# for instance depends_on('boost +filesystem')
# See https://github.com/spack/spack/pull/22303 for reference
depends_on(Boost.with_default_variants, when='+boostmp')
depends_on('cereal', when='@0.9:')
depends_on('gmp', when='~boostmp')
depends_on('llvm', when='+llvm')
depends_on('mpc', when='+mpc~boostmp')
@ -86,6 +88,12 @@ def cmake_args(self):
'-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=on'
])
# The use of the Cereal serialization library is a hard dependency
if spec.satisfies('@0.9:'):
options.extend([
'-DWITH_SYSTEM_CEREAL:BOOL=on'
])
if '+boostmp' in spec:
options.extend([
'-DINTEGER_CLASS:STRING=boostmp',