diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-09-12 22:45:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 09:45:05 -0500 |
commit | e355fc16ad5a257ad4e2fb075b32ed3c5b19e0d1 (patch) | |
tree | 53bea3c4113a642715eeedf744ce4828365d33f9 | |
parent | 3211ac51360a45a46f0114947eccaf20f249c619 (diff) | |
download | spack-e355fc16ad5a257ad4e2fb075b32ed3c5b19e0d1.tar.gz spack-e355fc16ad5a257ad4e2fb075b32ed3c5b19e0d1.tar.bz2 spack-e355fc16ad5a257ad4e2fb075b32ed3c5b19e0d1.tar.xz spack-e355fc16ad5a257ad4e2fb075b32ed3c5b19e0d1.zip |
Add new package: dbxtool (#18651)
-rw-r--r-- | var/spack/repos/builtin/packages/dbxtool/package.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dbxtool/package.py b/var/spack/repos/builtin/packages/dbxtool/package.py new file mode 100644 index 0000000000..3a7524bf5f --- /dev/null +++ b/var/spack/repos/builtin/packages/dbxtool/package.py @@ -0,0 +1,25 @@ +# Copyright 2013-2020 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 Dbxtool(MakefilePackage): + """tool for managing dbx updates installed on a machine.""" + + homepage = "https://github.com/rhboot/dbxtool" + url = "https://github.com/rhboot/dbxtool/archive/dbxtool-8.tar.gz" + + version('8', sha256='196d9475f7cf3aa52d8e0c29c20affb7c903512e13895edb6296caf02d4a983b') + version('7', sha256='486b8a7cf4e149ab9630783e5259d6af70a7022209e1e48fbee9b54c48535c5e') + + depends_on('efivar') + depends_on('popt') + + def setup_build_environment(self, env): + env.prepend_path('CPATH', self.spec['efivar'].prefix.include.efivar) + + def install(self, spec, prefix): + make('PREFIX={0}'.format(prefix), 'install') |