summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorvvolkl <valentin.volkl@cern.ch>2020-06-08 15:30:23 +0200
committerGitHub <noreply@github.com>2020-06-08 08:30:23 -0500
commit8995b3ad3a3e38edb51378706af0e8f98444f038 (patch)
tree7886d9ecd0db9a7c739c3f253e656f9057c69cd6 /var
parentc76ab4d8fefedc5b4499912a76fed720721dcb17 (diff)
downloadspack-8995b3ad3a3e38edb51378706af0e8f98444f038.tar.gz
spack-8995b3ad3a3e38edb51378706af0e8f98444f038.tar.bz2
spack-8995b3ad3a3e38edb51378706af0e8f98444f038.tar.xz
spack-8995b3ad3a3e38edb51378706af0e8f98444f038.zip
Add Package HSF-CMakeTools (#16951)
* [hsf-cmaketools] add package * fix formatting * Apply suggestions from code review Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * [hsf-cmaketools] remove cmake_prefix_path which is set already by spack Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hsf-cmaketools/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hsf-cmaketools/package.py b/var/spack/repos/builtin/packages/hsf-cmaketools/package.py
new file mode 100644
index 0000000000..7805351509
--- /dev/null
+++ b/var/spack/repos/builtin/packages/hsf-cmaketools/package.py
@@ -0,0 +1,26 @@
+# Copyright 2013-2020 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 HsfCmaketools(Package):
+ """CMake 'Find' modules for commonly used HEP Packages"""
+
+ homepage = "https://github.com/HSF/cmaketools/"
+ url = "https://github.com/HSF/cmaketools/archive/1.8.tar.gz"
+ git = "https://github.com/HSF/cmaketools.git"
+
+ maintainers = ['vvolkl']
+
+ version('master', branch='master')
+ version('1.8', sha256='91af30f5701dadf80a5d7e0d808c224c934f0784a3aff2d3b69aff24f7e1db41')
+
+ # this package only needs to be installed in CMAKE_PREFIX_PATH
+ # which is set by spack
+ def install(self, spec, prefix):
+ mkdir(prefix.modules)
+ install_tree('modules', prefix.modules)
+ install("CMakeToolsConfig.cmake", prefix)