blaze: converted to CMakePackage (#12357)

The previous version does not properly install the required cmake
configuration files for blaze-lib, so find_package does not work
correctly.

This patch converts the blaze-lib package to use CMakePackage,
adds the required cmake dependency, and removes the install()
member function, which is not working correctly and is no longer
needed.
This commit is contained in:
Russell J. Hewett 2019-08-12 15:47:54 -04:00 committed by Adam J. Stewart
parent 6de750d860
commit 31f9135cbc

View File

@ -7,7 +7,7 @@
from spack import *
class Blaze(Package):
class Blaze(CMakePackage):
"""Blaze is an open-source, high-performance C++ math library for dense and
sparse arithmetic. With its state-of-the-art Smart Expression Template
implementation Blaze combines the elegance and ease of use of a
@ -19,6 +19,9 @@ class Blaze(Package):
url = "https://bitbucket.org/blaze-lib/blaze/downloads/blaze-3.5.tar.gz"
git = "https://bitbucket.org/blaze-lib/blaze.git"
# Blaze requires at least cmake 3.8.0 for C++14 features.
depends_on('cmake@3.8.0:', type='build')
version('master', branch='master')
version('3.5', sha256='f50d4a57796b8012d3e6d416667d9abe6f4d95994eb9deb86cd4491381dec624')
version('3.4', sha256='fd474ab479e81d31edf27d4a529706b418f874caa7b046c67489128c20dda66f')
@ -39,6 +42,3 @@ class Blaze(Package):
version('1.2', 'b1511324456c3f70fce198a2b63e71ef')
version('1.1', '5e52ebe68217f2e50d66dfdb9803d51e')
version('1.0', 'a46508a2965ace9d89ded30a386d9548')
def install(self, spec, prefix):
install_tree('blaze', join_path(prefix.include, 'blaze'))