Everytrace: update (#7995)

This commit is contained in:
Elizabeth Fischer 2018-05-03 18:00:21 -04:00 committed by Adam J. Stewart
parent 7542fbfefd
commit 28adaa4e55

View file

@ -29,15 +29,18 @@ class Everytrace(CMakePackage):
"""Get stack trace EVERY time a program exits.""" """Get stack trace EVERY time a program exits."""
homepage = "https://github.com/citibeth/everytrace" homepage = "https://github.com/citibeth/everytrace"
url = "https://github.com/citibeth/everytrace/tarball/0.2.0" url = "https://github.com/citibeth/everytrace/archive/0.2.2.tar.gz"
version('0.2.0', '2af0e5b6255064d5191accebaa70d222') maintainers = ['citibeth']
version('0.2.2', 'dd60b8bf68cbf3dc2be305a040f2fe3e')
version('develop', version('develop',
git='https://github.com/citibeth/everytrace.git', branch='develop') git='https://github.com/citibeth/everytrace.git', branch='develop')
variant('mpi', default=True, description='Enables MPI parallelism') variant('mpi', default=True, description='Enables MPI parallelism')
variant('fortran', default=True, variant('fortran', default=True,
description='Enable use with Fortran programs') description='Enable use with Fortran programs')
variant('cxx', default=True, description='Enable C++ Exception-based features')
depends_on('mpi', when='+mpi') depends_on('mpi', when='+mpi')
@ -45,7 +48,8 @@ def cmake_args(self):
spec = self.spec spec = self.spec
return [ return [
'-DUSE_MPI=%s' % ('YES' if '+mpi' in spec else 'NO'), '-DUSE_MPI=%s' % ('YES' if '+mpi' in spec else 'NO'),
'-DUSE_FORTRAN=%s' % ('YES' if '+fortran' in spec else 'NO')] '-DUSE_FORTRAN=%s' % ('YES' if '+fortran' in spec else 'NO'),
'-DUSE_CXX=%s' % ('YES' if '+cxx' in spec else 'NO')]
def setup_environment(self, spack_env, run_env): def setup_environment(self, spack_env, run_env):
run_env.prepend_path('PATH', join_path(self.prefix, 'bin')) run_env.prepend_path('PATH', join_path(self.prefix, 'bin'))