diff options
-rw-r--r-- | var/spack/repos/builtin/packages/environment-modules/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/environment-modules/package.py b/var/spack/repos/builtin/packages/environment-modules/package.py index 11ddb12876..5c38dcc39a 100644 --- a/var/spack/repos/builtin/packages/environment-modules/package.py +++ b/var/spack/repos/builtin/packages/environment-modules/package.py @@ -34,6 +34,8 @@ class EnvironmentModules(Package): url = "http://prdownloads.sourceforge.net/modules/modules-3.2.10.tar.gz" version('3.2.10', '8b097fdcb90c514d7540bb55a3cb90fb') + + variant('X', default=True, description='Build with X functionality') # Dependencies: depends_on('tcl', type=('build', 'link', 'run')) @@ -74,6 +76,9 @@ class EnvironmentModules(Package): '--datarootdir=' + prefix.share, 'CPPFLAGS=' + ' '.join(cpp_flags) ] + + if '~X' in spec: + config_args = ['--without-x'] + config_args configure(*config_args) make() |