Prevent use of system GTK+

This commit is contained in:
Adam J. Stewart 2016-03-31 14:14:44 -05:00
parent 6dad59cb92
commit 61e5ee5d63

View File

@ -101,7 +101,7 @@ def patch(self):
@property @property
def common_config_args(self): def common_config_args(self):
return [ config_args = [
'-prefix', self.prefix, '-prefix', self.prefix,
'-v', '-v',
'-opensource', '-opensource',
@ -115,7 +115,16 @@ def common_config_args(self):
'-no-openvg', '-no-openvg',
'-no-pch', '-no-pch',
# NIS is deprecated in more recent glibc # NIS is deprecated in more recent glibc
'-no-nis'] '-no-nis'
]
if '+gtk' in self.spec:
config_args.append('-gtkstyle')
else:
config_args.append('-no-gtkstyle')
return config_args
# Don't disable all the database drivers, but should # Don't disable all the database drivers, but should
# really get them into spack at some point. # really get them into spack at some point.
@ -128,8 +137,8 @@ def configure(self):
'-thread', '-thread',
'-shared', '-shared',
'-release', '-release',
'-fast' '-fast',
) *self.common_config_args)
@when('@4') @when('@4')
def configure(self): def configure(self):