diff options
-rw-r--r-- | var/spack/repos/builtin/packages/elfio/package.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/elfio/package.py b/var/spack/repos/builtin/packages/elfio/package.py new file mode 100644 index 0000000000..72a937552a --- /dev/null +++ b/var/spack/repos/builtin/packages/elfio/package.py @@ -0,0 +1,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 Elfio(CMakePackage): + """ + ELFIO is a header-only C++ library intended for reading and generating + files in the ELF binary format. + """ + + homepage = "https://github.com/serge1/ELFIO" + url = "https://github.com/serge1/ELFIO/releases/download/Release_3.9/elfio-3.9.tar.gz" + + maintainers = ['haampie'] + + version('3.9', sha256='767b269063fc35aba6d361139f830aa91c45dc6b77942f082666876c1aa0be0f') + version('3.8', sha256='9553ce2b8d8aa2fb43f0e9be9bcbd10cd52f40b385110ea54173889c982f9ac4') + version('3.7', sha256='0af2452214c32639f8dbe520b31e03802be184581ab5ad65e99ed745274dbd5d') + + depends_on('cmake@3.10:', type='build') + + def cmake_args(self): + return [ + self.define('ELFIO_BUILD_EXAMPLES', 'OFF'), + self.define('ELFIO_BUILD_TESTS', 'OFF'), + ] |