From 2f6027486d1d569f8ab063b47666502a356b5e4d Mon Sep 17 00:00:00 2001 From: Matthew Krafczyk Date: Tue, 7 Feb 2017 12:11:49 -0600 Subject: Add version of environment modules which does not depend on X windows --- var/spack/repos/builtin/packages/environment-modules/package.py | 5 +++++ 1 file changed, 5 insertions(+) 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() -- cgit v1.2.3-70-g09d2