summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/kripke/package.py
blob: b6f4e4fd738990a587f99b9fb2b1088f7693b037 (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
# FIXME:
# This is a template package file for Spack.  We've conveniently
# put "FIXME" labels next to all the things you'll want to change.
#
# Once you've edited all the FIXME's, delete this whole message,
# save this file, and test out your package like this:
#
#     spack install kripke
#
# You can always get back here to change things with:
#
#     spack edit kripke
#
# See the spack documentation for more information on building
# packages.
#
from spack import *

class Kripke(Package):
    """Kripke is a simple, scalable, 3D Sn deterministic particle transport proxy/mini app."""
    homepage = "https://codesign.llnl.gov/kripke.php"
    url      = "https://codesign.llnl.gov/downloads/kripke-openmp-1.1.tar.gz"

    version('1.1', '7fe6f2b26ed983a6ce5495ab701f85bf')

    #depends_on("mvapich2@1.9:")

    def install(self, spec, prefix):
        with working_dir('build', create=True):
         cmake('-DCMAKE_INSTALL_PREFIX:PATH=.', '-DENABLE_OPENMP=1', '-DENABLE_MPI=1', '..', *std_cmake_args)
         make()
	 #Kripke does not provide an install, so creating one here.
	 mkdirp(prefix.bin)
         install('kripke', prefix.bin)