summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Krafczyk <krafczyk.matthew@gmail.com>2017-02-07 12:11:49 -0600
committerMatthew Krafczyk <krafczyk.matthew@gmail.com>2017-02-08 16:28:50 -0600
commit2f6027486d1d569f8ab063b47666502a356b5e4d (patch)
tree5a3d6f5fd0eb19aa6317de83605daf4431259b83
parent3c4959f6668d3093e70fadaebed5db15e78ce958 (diff)
downloadspack-2f6027486d1d569f8ab063b47666502a356b5e4d.tar.gz
spack-2f6027486d1d569f8ab063b47666502a356b5e4d.tar.bz2
spack-2f6027486d1d569f8ab063b47666502a356b5e4d.tar.xz
spack-2f6027486d1d569f8ab063b47666502a356b5e4d.zip
Add version of environment modules which does not depend on X windows
-rw-r--r--var/spack/repos/builtin/packages/environment-modules/package.py5
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()