diff options
author | Bruno Turcksin <bruno.turcksin@gmail.com> | 2016-09-20 05:46:30 -0400 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-09-20 02:46:30 -0700 |
commit | 20fcd3f1dd31aa36bd535ba187de98af259ea260 (patch) | |
tree | 8e1d145d65a721d5c5cbaf2a98556da6313b922a /var | |
parent | e73a7c80bf98e7b95647a7dd6322a0aa9609c2b0 (diff) | |
download | spack-20fcd3f1dd31aa36bd535ba187de98af259ea260.tar.gz spack-20fcd3f1dd31aa36bd535ba187de98af259ea260.tar.bz2 spack-20fcd3f1dd31aa36bd535ba187de98af259ea260.tar.xz spack-20fcd3f1dd31aa36bd535ba187de98af259ea260.zip |
Add Python support to gdb. (#1790)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/gdb/package.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gdb/package.py b/var/spack/repos/builtin/packages/gdb/package.py index a14e166ed4..f90e4e7ff0 100644 --- a/var/spack/repos/builtin/packages/gdb/package.py +++ b/var/spack/repos/builtin/packages/gdb/package.py @@ -41,9 +41,18 @@ class Gdb(Package): version('7.9', '8f8ced422fe462a00e0135a643544f17') version('7.8.2', '8b0ea8b3559d3d90b3ff4952f0aeafbc') + variant('python', default=True, description='Compile with Python support') + + # Required dependency depends_on('texinfo', type='build') + # Optional dependency + depends_on('python', when='+python') + def install(self, spec, prefix): - configure('--prefix=%s' % prefix) + options = ['--prefix=%s' % prefix] + if '+python' in spec: + options.extend(['--with-python']) + configure(*options) make() make("install") |