summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2022-11-10 11:20:32 +0100
committerGitHub <noreply@github.com>2022-11-10 11:20:32 +0100
commit30ffd6d33e962639005399dd4b1012425d78e3a8 (patch)
treea669e79f2821657fce18a9438b87efc20be7dc86 /var
parentc1aec72f60d7d1b74c957636b85177bc6faf056a (diff)
downloadspack-30ffd6d33e962639005399dd4b1012425d78e3a8.tar.gz
spack-30ffd6d33e962639005399dd4b1012425d78e3a8.tar.bz2
spack-30ffd6d33e962639005399dd4b1012425d78e3a8.tar.xz
spack-30ffd6d33e962639005399dd4b1012425d78e3a8.zip
dcap: add variant ~plugins: Disables the build of plugins (#33524)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/dcap/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dcap/package.py b/var/spack/repos/builtin/packages/dcap/package.py
index db8f7d42e7..745cab88b7 100644
--- a/var/spack/repos/builtin/packages/dcap/package.py
+++ b/var/spack/repos/builtin/packages/dcap/package.py
@@ -19,6 +19,12 @@ class Dcap(AutotoolsPackage):
depends_on("libtool", type="build")
depends_on("m4", type="build")
+ variant("plugins", default=True, description="Build plugins")
+
+ def patch(self):
+ if self.spec.satisfies("~plugins"):
+ filter_file("SUBDIRS = .*", "SUBDIRS = src", "Makefile.am")
+
def autoreconf(self, spec, prefix):
bash = which("bash")
bash("./bootstrap.sh")