blob: 59e00555fdf5ad924e55221829898c9a2804915c (
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
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 2013-2024 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 Compose(MakefilePackage):
"""CompOSE: CompStar Online Supernovae Equations of State
The online service CompOSE provides data tables for different
state of the art equations of state (EoS) ready for further usage
in astrophysical applications, nuclear physics and beyond."""
homepage = "https://compose.obspm.fr/home"
url = "https://compose.obspm.fr/download/code/codehdf5.zip"
maintainers("eschnett")
# Spack must not modify our url which doesn't contain a version number
def url_for_version(self, version):
return "https://compose.obspm.fr/download/code/codehdf5.zip"
# There is no version number for the zip file itself. This is the version
# number output by the `compose` executable.
version("2.17", sha256="f3f68203a50bb898abe31ee0b3dc750a1f1164c9e5d7fb9c4546b4eaa0cd172b")
depends_on("hdf5 +fortran")
parallel = False
executables = ["compose", "test_read_hdf5", "test_read_opacity"]
@property
def build_targets(self):
return self.executables
def install(self, spec, prefix):
mkdir(prefix.bin)
for f in self.executables:
install(f, prefix.bin)
|