From 31f9135cbce3606d93377795b86922f2934bed43 Mon Sep 17 00:00:00 2001 From: "Russell J. Hewett" Date: Mon, 12 Aug 2019 15:47:54 -0400 Subject: 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. --- var/spack/repos/builtin/packages/blaze/package.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/blaze/package.py b/var/spack/repos/builtin/packages/blaze/package.py index 5fe6472ca4..e2eef8c4df 100644 --- a/var/spack/repos/builtin/packages/blaze/package.py +++ b/var/spack/repos/builtin/packages/blaze/package.py @@ -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')) -- cgit v1.2.3-70-g09d2