spack/var/spack/repos/builtin/packages/assimp/package.py
Todd Gamblin 62927654dd checksums: use sha256 checksums everywhere
We'd like to use a consistent checksum scheme everywhere so that we can:

    a) incorporate archive checksums into our specs and have a
       consistent hashing algorithm across all specs.

    b) index mirrors with a consistent type of checksum, and not one that
       is dependent on how spack packages are written.

- [x] convert existing md5, sha224, sha512, sha1 checksums to sha256
2019-10-12 07:19:43 -07:00

36 lines
1.1 KiB
Python

# Copyright 2013-2019 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 Assimp(CMakePackage):
"""Open Asset Import Library (Assimp) is a portable Open Source library to
import various well-known 3D model formats in a uniform manner."""
homepage = "https://www.assimp.org"
url = "https://github.com/assimp/assimp/archive/v4.0.1.tar.gz"
version('4.0.1', sha256='60080d8ab4daaab309f65b3cffd99f19eb1af8d05623fff469b9b652818e286e')
variant('shared', default=True,
description='Enables the build of shared libraries')
depends_on('boost')
def cmake_args(self):
args = [
'-DASSIMP_BUILD_TESTS=OFF',
'-DBUILD_SHARED_LIBS:BOOL=%s' % (
'ON' if '+shared' in self.spec else 'OFF'),
]
return args
def flag_handler(self, name, flags):
flags = list(flags)
if name == 'cxxflags':
flags.append(self.compiler.cxx11_flag)
return (None, None, flags)