summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Vu <owls@nilsvu.de>2022-03-08 16:51:05 +0100
committerGitHub <noreply@github.com>2022-03-08 16:51:05 +0100
commitcd5e7579be9358bc7bf624eea299b7ea9a035090 (patch)
tree22e8617a6c3b0d9e496bb50d42129a4e75a80e93
parentb559b99c8f168f5473559cacd8638c98dbebf162 (diff)
downloadspack-cd5e7579be9358bc7bf624eea299b7ea9a035090.tar.gz
spack-cd5e7579be9358bc7bf624eea299b7ea9a035090.tar.bz2
spack-cd5e7579be9358bc7bf624eea299b7ea9a035090.tar.xz
spack-cd5e7579be9358bc7bf624eea299b7ea9a035090.zip
spectre: add docs dependencies, `BUILD_DOCS` toggle (#29399)
New versions don't try to configure docs targets at all when the BUILD_DOCS option is turned off. This avoids CMake warnings when docs dependencies are not found.
-rw-r--r--var/spack/repos/builtin/packages/spectre/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/spectre/package.py b/var/spack/repos/builtin/packages/spectre/package.py
index b6622a5e3a..ce8c171ede 100644
--- a/var/spack/repos/builtin/packages/spectre/package.py
+++ b/var/spack/repos/builtin/packages/spectre/package.py
@@ -117,8 +117,10 @@ class Spectre(CMakePackage):
# Docs
with when('+doc'):
depends_on('doxygen', type='build')
+ depends_on('perl', type='build', when="@2022.03.07:")
depends_on('py-beautifulsoup4', type='build')
depends_on('py-pybtex', type='build')
+ depends_on('py-nbconvert', type='build', when="@2022.03.07:")
# Incompatibilities
# - Shared libs builds on macOS don't work before
@@ -198,6 +200,7 @@ class Spectre(CMakePackage):
self.define('Python_EXECUTABLE', self.spec['python'].command.path),
self.define_from_variant('BUILD_PYTHON_BINDINGS', 'python'),
self.define('BUILD_TESTING', self.run_tests),
+ self.define_from_variant('BUILD_DOCS', 'doc'),
self.define('USE_GIT_HOOKS', False),
self.define('USE_IWYU', False),
self.define_from_variant('USE_FORMALINE', 'formaline'),