summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/virtest/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/virtest/package.py')
-rw-r--r--var/spack/repos/builtin/packages/virtest/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/virtest/package.py b/var/spack/repos/builtin/packages/virtest/package.py
new file mode 100644
index 0000000000..c1fe879af8
--- /dev/null
+++ b/var/spack/repos/builtin/packages/virtest/package.py
@@ -0,0 +1,26 @@
+# 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)
+
+import os
+
+from spack import *
+
+
+class Virtest(CMakePackage):
+ """Header-only unit test framework, as easy as possible to use"""
+
+ homepage = 'https://github.com/mattkretz/virtest'
+ git = 'https://github.com/mattkretz/virtest.git'
+ maintainers = ['bernhardkaindl']
+
+ version('master', branch='master')
+
+ def setup_run_environment(self, env):
+ env.prepend_path('CPATH', self.prefix.include.vir)
+
+ @run_after('install')
+ def rename_include_for_vc_package(self):
+ with working_dir(self.prefix.include):
+ os.rename('vir', 'virtest')