diff options
author | Jen Herting <jen@herting.cc> | 2021-04-28 11:03:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 17:03:30 +0200 |
commit | d5b3d075d244fc2bf03a62c158a57f1e5927747c (patch) | |
tree | f595c7906c841ed6ec99af5feec7b0771e4709fb | |
parent | 5b12568c4f17fb9914be9e903eff3aad007049ef (diff) | |
download | spack-d5b3d075d244fc2bf03a62c158a57f1e5927747c.tar.gz spack-d5b3d075d244fc2bf03a62c158a57f1e5927747c.tar.bz2 spack-d5b3d075d244fc2bf03a62c158a57f1e5927747c.tar.xz spack-d5b3d075d244fc2bf03a62c158a57f1e5927747c.zip |
alembic: new package (#22223)
-rw-r--r-- | var/spack/repos/builtin/packages/alembic/package.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/alembic/package.py b/var/spack/repos/builtin/packages/alembic/package.py new file mode 100644 index 0000000000..35173009dc --- /dev/null +++ b/var/spack/repos/builtin/packages/alembic/package.py @@ -0,0 +1,38 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Alembic(CMakePackage): + """Alembic is an open computer graphics interchange + framework. Alembic distills complex, animated scenes into a + non-procedural, application-independent set of baked + geometric results.""" + + homepage = "https://www.alembic.io" + url = "https://github.com/alembic/alembic/archive/1.7.16.tar.gz" + + version('1.7.16', sha256='2529586c89459af34d27a36ab114ad1d43dafd44061e65cfcfc73b7457379e7c') + + variant('python', default=False, description='Python support') + variant('hdf5', default=False, description='HDF5 support') + + depends_on('cmake@2.8.11:', type='build') + depends_on('openexr@2.2.0:') + depends_on('hdf5@1.8.9:', when="+hdf5") + depends_on('boost@1.55:') + depends_on('zlib') + depends_on('py-ilmbase', when="+python") + + def cmake_args(self): + args = [ + self.define_from_variant('USE_HDF5', 'hdf5') + ] + + if self.spec.satisfies('+python') and self.spec['python'].satisfies('@3:'): + args.append('-DPython_ADDITIONAL_VERSIONS=3') + + return args |