
Add 'e4s' tags for all packages according to https://github.com/E4S-Project/e4s/blob/master/E4S_Products.md
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
# 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 Gotcha(CMakePackage):
|
|
"""C software library for shared library function wrapping,
|
|
enables tools to intercept calls into shared libraries"""
|
|
|
|
homepage = "https://github.com/LLNL/gotcha"
|
|
git = "https://github.com/LLNL/gotcha.git"
|
|
|
|
tags = ['e4s']
|
|
|
|
version('develop', branch='develop')
|
|
version('master', branch='master')
|
|
version('1.0.3', tag='1.0.3')
|
|
version('1.0.2', tag='1.0.2')
|
|
version('0.0.2', tag='0.0.2')
|
|
|
|
variant('test', default=False, description='Build tests for Gotcha')
|
|
patch(
|
|
'https://github.com/LLNL/GOTCHA/commit/e82b4a1ecb634075d8f5334b796c888c86da0427.patch',
|
|
sha256='9f7814fd3c3362c156bc617c755e7e50c2f9125ed4540e36f60e4d93884f1ce6',
|
|
when='@0.0.2:1.0.2')
|
|
|
|
def configure_args(self):
|
|
return [
|
|
self.define_from_variant('GOTCHA_ENABLE_TESTS', 'test')
|
|
]
|