summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMatthew Scott Krafczyk <krafczyk.matthew@gmail.com>2017-09-08 12:15:06 -0500
committerscheibelp <scheibel1@llnl.gov>2017-09-08 10:15:06 -0700
commit51828dd982f2642b3f52512aea4fb2c02395d378 (patch)
tree31311f4a5a33c19f0a07f8ea974b09b560b42558 /var
parent4f57c9651a5f4605d4e3668298bd20307181bfb5 (diff)
downloadspack-51828dd982f2642b3f52512aea4fb2c02395d378.tar.gz
spack-51828dd982f2642b3f52512aea4fb2c02395d378.tar.bz2
spack-51828dd982f2642b3f52512aea4fb2c02395d378.tar.xz
spack-51828dd982f2642b3f52512aea4fb2c02395d378.zip
Bootstrap environment-modules
Renames the existing bootstrap command to 'clone'. Repurposes 'spack bootstrap' to install packages that are useful to the operation of Spack (for now this is just environment-modules). For bash and ksh users running setup-env.sh, if a Spack-installed instance of environment-modules is detected and environment modules and dotkit are not externally available, Spack will define the 'module' command in the user's shell to use the environment-modules built by Spack.
Diffstat (limited to 'var')
-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 2774402605..fa0ea90fcf 100644
--- a/var/spack/repos/builtin/packages/environment-modules/package.py
+++ b/var/spack/repos/builtin/packages/environment-modules/package.py
@@ -35,6 +35,8 @@ class EnvironmentModules(Package):
version('3.2.10', '8b097fdcb90c514d7540bb55a3cb90fb')
+ variant('X', default=True, description='Build with X functionality')
+
# Dependencies:
depends_on('tcl', type=('build', 'link', 'run'))
@@ -75,6 +77,9 @@ class EnvironmentModules(Package):
'CPPFLAGS=' + ' '.join(cpp_flags)
]
+ if '~X' in spec:
+ config_args = ['--without-x'] + config_args
+
configure(*config_args)
make()
make('install')