Fix +readline handling (#7048)
This commit is contained in:
parent
d6a43f180b
commit
dceb66741c
@ -65,7 +65,7 @@ class Slurm(AutotoolsPackage):
|
|||||||
depends_on('munge')
|
depends_on('munge')
|
||||||
depends_on('openssl')
|
depends_on('openssl')
|
||||||
depends_on('pkgconfig', type='build')
|
depends_on('pkgconfig', type='build')
|
||||||
depends_on('readline')
|
depends_on('readline', when='+readline')
|
||||||
depends_on('zlib')
|
depends_on('zlib')
|
||||||
|
|
||||||
depends_on('gtkplus+X', when='+gtk')
|
depends_on('gtkplus+X', when='+gtk')
|
||||||
@ -89,9 +89,7 @@ def configure_args(self):
|
|||||||
if '~gtk' in spec:
|
if '~gtk' in spec:
|
||||||
args.append('--disable-gtktest')
|
args.append('--disable-gtktest')
|
||||||
|
|
||||||
if '+readline' in spec:
|
if '~readline' in spec:
|
||||||
args.append('--with-readline={0}'.format(spec['readline'].prefix))
|
|
||||||
else:
|
|
||||||
args.append('--without-readline')
|
args.append('--without-readline')
|
||||||
|
|
||||||
if '+hdf5' in spec:
|
if '+hdf5' in spec:
|
||||||
|
Loading…
Reference in New Issue
Block a user