From 30ffd6d33e962639005399dd4b1012425d78e3a8 Mon Sep 17 00:00:00 2001 From: iarspider Date: Thu, 10 Nov 2022 11:20:32 +0100 Subject: dcap: add variant ~plugins: Disables the build of plugins (#33524) --- var/spack/repos/builtin/packages/dcap/package.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'var') 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") -- cgit v1.2.3-70-g09d2