summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-03-31 12:15:11 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-03-31 12:15:11 -0700
commitd0c8245a58bf184f7921c853ef31734ea2c83e0a (patch)
tree6069417f8a46d0d07f1585827419977a5da3575e /var
parentc5f3475f482f385f346027b33be6563a1bb5421c (diff)
parent87b70e2cb45660c5c037dfce963c5dc946b2daf5 (diff)
downloadspack-d0c8245a58bf184f7921c853ef31734ea2c83e0a.tar.gz
spack-d0c8245a58bf184f7921c853ef31734ea2c83e0a.tar.bz2
spack-d0c8245a58bf184f7921c853ef31734ea2c83e0a.tar.xz
spack-d0c8245a58bf184f7921c853ef31734ea2c83e0a.zip
Merge pull request #685 from gartung/add-modules-package
add modules package and have setup script find it if built
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/modules/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/modules/package.py b/var/spack/repos/builtin/packages/modules/package.py
new file mode 100644
index 0000000000..b014ee460c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/modules/package.py
@@ -0,0 +1,25 @@
+from spack import *
+
+class Modules(Package):
+ """ The Environment Modules package provides for the dynamic modification of a user's environment via modulefiles. """
+
+ homepage = "http://modules.sf.net"
+ url = "http://downloads.sourceforge.net/project/modules/Modules/modules-3.2.10/modules-3.2.10.tar.gz"
+
+ version('3.2.10', '8b097fdcb90c514d7540bb55a3cb90fb')
+
+ depends_on("tcl")
+
+ def install(self, spec, prefix):
+
+ options = ['--prefix=%s' % prefix,
+ '--disable-debug',
+ '--disable-dependency-tracking',
+ '--disable-silent-rules',
+ '--disable-versioning',
+ '--datarootdir=%s' % prefix.share,
+ 'CPPFLAGS=-DUSE_INTERP_ERRORLINE']
+
+ configure(*options)
+ make()
+ make("install")