diff options
author | Derek Ryan Strong <dstrong@usc.edu> | 2023-11-27 06:25:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 15:25:07 +0100 |
commit | 89173b6d24795bddb2742d33bdcbd569c07bae70 (patch) | |
tree | 0f03c8440ac9ba55b4916373b917bbddc764cc13 | |
parent | 848d2705486117c39f6971af9b232628ce7b7b3a (diff) | |
download | spack-89173b6d24795bddb2742d33bdcbd569c07bae70.tar.gz spack-89173b6d24795bddb2742d33bdcbd569c07bae70.tar.bz2 spack-89173b6d24795bddb2742d33bdcbd569c07bae70.tar.xz spack-89173b6d24795bddb2742d33bdcbd569c07bae70.zip |
fpart: add license and variants (#41257)
-rw-r--r-- | var/spack/repos/builtin/packages/fpart/package.py | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/fpart/package.py b/var/spack/repos/builtin/packages/fpart/package.py index 1a6d36331c..26e3fee0b7 100644 --- a/var/spack/repos/builtin/packages/fpart/package.py +++ b/var/spack/repos/builtin/packages/fpart/package.py @@ -17,13 +17,33 @@ class Fpart(AutotoolsPackage): maintainers("drkrynstrng") + license("BSD-2-Clause") + version("master", branch="master") version("1.5.1", sha256="c353a28f48e4c08f597304cb4ebb88b382f66b7fabfc8d0328ccbb0ceae9220c") + variant("embfts", default=False, description="Build with embedded fts functions") + variant("static", default=False, description="Build static binary") + variant("debug", default=False, description="Build with debugging support") + # fpsync has the following run dependencies, at least one is required + variant( + "fpsynctools", + default="rsync", + values=("rsync", "tar", "cpio"), + multi=True, + description="Tools used by fpsync to copy files", + ) + depends_on("autoconf", type="build") depends_on("automake", type="build") depends_on("libtool", type="build") - # fpsync has the following run dependencies - depends_on("rsync", type="run") - depends_on("tar", type="run") - depends_on("cpio", type="run") + depends_on("rsync", when="fpsynctools=rsync", type="run") + depends_on("tar", when="fpsynctools=tar", type="run") + depends_on("cpio", when="fpsynctools=cpio", type="run") + + def configure_args(self): + config_args = [] + config_args.extend(self.enable_or_disable("embfts")) + config_args.extend(self.enable_or_disable("static")) + config_args.extend(self.enable_or_disable("debug")) + return config_args |