blob: a4fc6b00a03876a9544775ff4e0c60b23af336d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|