From 0696497ffa4137cb2460ef5d7c6c84121dcdafee Mon Sep 17 00:00:00 2001 From: Gurkirat Singh Date: Wed, 13 Sep 2023 21:47:33 +0530 Subject: Add cmake package for v2.1.0 and master (git) versions of libfirefly (#39778) * libfirefly: Add cmake package for v2.1.0 and master (git) versions * Separate git URL from version declaration Co-authored-by: Alec Scott --- .../repos/builtin/packages/libfirefly/package.py | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 var/spack/repos/builtin/packages/libfirefly/package.py diff --git a/var/spack/repos/builtin/packages/libfirefly/package.py b/var/spack/repos/builtin/packages/libfirefly/package.py new file mode 100644 index 0000000000..a4fc6b00a0 --- /dev/null +++ b/var/spack/repos/builtin/packages/libfirefly/package.py @@ -0,0 +1,29 @@ +# Copyright 2013-2023 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.package import * + + +class Libfirefly(CMakePackage): + """A standalone C++ Library for vectors calculations""" + + homepage = "https://libfirefly.tbhaxor.com" + url = "https://github.com/tbhaxor/firefly/archive/refs/tags/v2.1.0.tar.gz" + git = "https://github.com/tbhaxor/firefly.git" + + maintainers("tbhaxor") + + version("master", branch="master") + version("2.1.0", sha256="4de4b216c73199a1826de7a0d45205b401603315347d7947d8b5950d3e6b893d") + + variant( + "double-precision", + description="Enables double type instead of float when enabled", + default=True, + ) + + def cmake_args(self): + args = [self.define_from_variant("Firefly_ENABLE_DOUBLE_PRECISION", "double-precision")] + return args -- cgit v1.2.3-70-g09d2