diff options
author | Matthias Diener <matthias.diener@gmail.com> | 2020-02-11 03:03:44 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 10:03:44 +0100 |
commit | 7706b76d3a6e57e0be930843aa59e34c749104d0 (patch) | |
tree | f85b8cbae8f9461139013b0ee0294b80c7e05852 | |
parent | 1a41ec766a1d123a7663703e2708435cba139c25 (diff) | |
download | spack-7706b76d3a6e57e0be930843aa59e34c749104d0.tar.gz spack-7706b76d3a6e57e0be930843aa59e34c749104d0.tar.bz2 spack-7706b76d3a6e57e0be930843aa59e34c749104d0.tar.xz spack-7706b76d3a6e57e0be930843aa59e34c749104d0.zip |
unifdef: added new package (#14880)
-rw-r--r-- | var/spack/repos/builtin/packages/unifdef/package.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/unifdef/package.py b/var/spack/repos/builtin/packages/unifdef/package.py new file mode 100644 index 0000000000..7b38686d93 --- /dev/null +++ b/var/spack/repos/builtin/packages/unifdef/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 Unifdef(MakefilePackage): + """The unifdef utility selectively processes conditional C preprocessor #if + and #ifdef directives. It removes from a file both the directives and the + additional text that they delimit, while otherwise leaving the file + alone.""" + + homepage = "https://dotat.at/prog/unifdef/" + url = "https://dotat.at/prog/unifdef/unifdef-2.11.tar.xz" + + maintainers = ['matthiasdiener'] + + version('2.11', sha256='828ffc270ac262b88fe011136acef2780c05b0dc3c5435d005651740788d4537') + + def edit(self, spec, prefix): + makefile = FileFilter('Makefile') + makefile.filter(r'\$\{HOME\}', prefix) |