summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Paul Pelteret <jppelteret@gmail.com>2022-04-19 11:42:41 +0200
committerGitHub <noreply@github.com>2022-04-19 11:42:41 +0200
commitd6483fe4830680d639af3cbe62445c8f5de321cb (patch)
treee75f2e3ce6d80a6833e6071e3d88a85f5e8136c2
parentbe12fea11ebaddf659114e07dde13508f7c60075 (diff)
downloadspack-d6483fe4830680d639af3cbe62445c8f5de321cb.tar.gz
spack-d6483fe4830680d639af3cbe62445c8f5de321cb.tar.bz2
spack-d6483fe4830680d639af3cbe62445c8f5de321cb.tar.xz
spack-d6483fe4830680d639af3cbe62445c8f5de321cb.zip
SymEngine: add v0.9 (#30115)
-rw-r--r--var/spack/repos/builtin/packages/symengine/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/symengine/package.py b/var/spack/repos/builtin/packages/symengine/package.py
index c94cd4b61e..8a2cae617f 100644
--- a/var/spack/repos/builtin/packages/symengine/package.py
+++ b/var/spack/repos/builtin/packages/symengine/package.py
@@ -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 @@ class Symengine(CMakePackage):
'-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',