summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorKelly (KT) Thompson <kgt@lanl.gov>2016-03-11 09:51:12 -0700
committerKelly (KT) Thompson <kgt@lanl.gov>2016-03-11 09:51:12 -0700
commitf5e8857c5e44719778e531bcc149c9fe228240b3 (patch)
tree94c567c3ac2c419b8a7f858c9c3efbbdbdd4670a /var
parent280384fce32fe8320087fa789c81e94d9859f1d3 (diff)
downloadspack-f5e8857c5e44719778e531bcc149c9fe228240b3.tar.gz
spack-f5e8857c5e44719778e531bcc149c9fe228240b3.tar.bz2
spack-f5e8857c5e44719778e531bcc149c9fe228240b3.tar.xz
spack-f5e8857c5e44719778e531bcc149c9fe228240b3.zip
+ Rename variant 'sphinxbuild' to 'doc' as recommended in the discussion of
PR#526. Also, remove a debug print statement that was accidentally committed.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cmake/package.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/cmake/package.py b/var/spack/repos/builtin/packages/cmake/package.py
index 806c37a68c..cc93c7067c 100644
--- a/var/spack/repos/builtin/packages/cmake/package.py
+++ b/var/spack/repos/builtin/packages/cmake/package.py
@@ -39,12 +39,12 @@ class Cmake(Package):
variant('ncurses', default=True, description='Enables the build of the ncurses gui')
variant('qt', default=False, description='Enables the build of cmake-gui')
- variant('sphinxbuild', default=False, description='Enables the generation of html and man page documentation')
+ variant('doc', default=False, description='Enables the generation of html and man page documentation')
depends_on('ncurses', when='+ncurses')
depends_on('qt', when='+qt')
- depends_on('python@2.7.11:', when='+sphinxbuild')
- depends_on('py-sphinx', when='+sphinxbuild')
+ depends_on('python@2.7.11:', when='+doc')
+ depends_on('py-sphinx', when='+doc')
def url_for_version(self, version):
"""Handle CMake's version-based custom URLs."""
@@ -58,8 +58,6 @@ class Cmake(Package):
:raises RuntimeError: in case of inconsistencies
"""
- print spec
-
if '+qt' in spec and spec.satisfies('^qt@5.4.0'):
msg = 'qt-5.4.0 has broken CMake modules.'
raise RuntimeError(msg)
@@ -75,7 +73,7 @@ class Cmake(Package):
if '+qt' in spec:
options.append('--qt-gui')
- if '+sphinxbuild' in spec:
+ if '+doc' in spec:
options.append('--sphinx-html')
options.append('--sphinx-man')