diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-12-17 22:37:46 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-12-17 22:37:46 -0800 |
commit | ffd1d95806d3534f4961941553d786180c38a4f1 (patch) | |
tree | b30693971614bf2147badaad6f2f1497caf21df5 | |
parent | 4d982f5aca91f0c3d94e612e704ffe16302ab604 (diff) | |
parent | f91e1ae83fd60f575eb9e316125ca9a2a63be52e (diff) | |
download | spack-ffd1d95806d3534f4961941553d786180c38a4f1.tar.gz spack-ffd1d95806d3534f4961941553d786180c38a4f1.tar.bz2 spack-ffd1d95806d3534f4961941553d786180c38a4f1.tar.xz spack-ffd1d95806d3534f4961941553d786180c38a4f1.zip |
Merge pull request #250 from davidbeckingsale/features/lmod
Added Lmod package
-rw-r--r-- | var/spack/packages/lmod/package.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/packages/lmod/package.py b/var/spack/packages/lmod/package.py new file mode 100644 index 0000000000..d642594f92 --- /dev/null +++ b/var/spack/packages/lmod/package.py @@ -0,0 +1,26 @@ +from spack import * +import os + +class Lmod(Package): + """ + Lmod is a Lua based module system that easily handles the MODULEPATH + Hierarchical problem. Environment Modules provide a convenient way to + dynamically change the users' environment through modulefiles. This + includes easily adding or removing directories to the PATH environment + variable. Modulefiles for Library packages provide environment variables + that specify where the library and header files can be found. + """ + homepage = "https://www.tacc.utexas.edu/research-development/tacc-projects/lmod" + url = "http://sourceforge.net/projects/lmod/files/Lmod-6.0.1.tar.bz2/download" + + version('6.0.1', '91abf52fe5033bd419ffe2842ebe7af9') + + depends_on("lua@5.2:") + + def install(self, spec, prefix): + # Add our lua to PATH + os.environ['PATH'] = spec['lua'].prefix.bin + ';' + os.environ['PATH'] + + configure('--prefix=%s' % prefix) + make() + make("install") |