Add Python support to gdb. (#1790)
This commit is contained in:
parent
e73a7c80bf
commit
20fcd3f1dd
@ -41,9 +41,18 @@ class Gdb(Package):
|
|||||||
version('7.9', '8f8ced422fe462a00e0135a643544f17')
|
version('7.9', '8f8ced422fe462a00e0135a643544f17')
|
||||||
version('7.8.2', '8b0ea8b3559d3d90b3ff4952f0aeafbc')
|
version('7.8.2', '8b0ea8b3559d3d90b3ff4952f0aeafbc')
|
||||||
|
|
||||||
|
variant('python', default=True, description='Compile with Python support')
|
||||||
|
|
||||||
|
# Required dependency
|
||||||
depends_on('texinfo', type='build')
|
depends_on('texinfo', type='build')
|
||||||
|
|
||||||
|
# Optional dependency
|
||||||
|
depends_on('python', when='+python')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
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()
|
||||||
make("install")
|
make("install")
|
||||||
|
Loading…
Reference in New Issue
Block a user