blob: 49f8a3563aab9547a7e965da98f855ff5cae1abb (
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
|
# 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)
from spack import *
class Flashdimmsim(Package):
"""FlashDIMMSim: a reasonably accurate flash DIMM simulator."""
homepage = "https://github.com/slunk/FlashDIMMSim"
git = "https://github.com/slunk/FlashDIMMSim.git"
version('master', branch='master')
build_directory = 'src'
def install(self, spec, prefix):
with working_dir(self.build_directory):
make() # build program
make('libfdsim.so') # build shared library
mkdir(prefix.bin)
mkdir(prefix.lib)
mkdir(prefix.include)
install_tree('ini', join_path(prefix, 'ini'))
install('FDSim', prefix.bin)
install('libfdsim.so', prefix.lib)
install('*.h', prefix.include)
|