Merged the best of two Spack packages for Environment Modules.
Named "environment-modules" to be consistent with Fedora and Ubuntu repositories.
See d96ea5b
for original packages/modules/package.py
This commit is contained in:
parent
459aab628d
commit
1c483ffe4e
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
|
|
||||||
class EnvironmentModules(Package):
|
class EnvironmentModules(Package):
|
||||||
"""Environment Modules for HPC"""
|
"""The Environment Modules package provides for the dynamic
|
||||||
|
modification of a user's environment via modulefiles."""
|
||||||
|
|
||||||
homepage = "https://sourceforge.net/p/modules/wiki/Home/"
|
homepage = "https://sourceforge.net/p/modules/wiki/Home/"
|
||||||
url = "http://prdownloads.sourceforge.net/modules/modules-3.2.10.tar.gz"
|
url = "http://prdownloads.sourceforge.net/modules/modules-3.2.10.tar.gz"
|
||||||
@ -16,12 +17,17 @@ def install(self, spec, prefix):
|
|||||||
# See: https://sourceforge.net/p/modules/bugs/62/
|
# See: https://sourceforge.net/p/modules/bugs/62/
|
||||||
CPPFLAGS = ['-DUSE_INTERP_ERRORLINE']
|
CPPFLAGS = ['-DUSE_INTERP_ERRORLINE']
|
||||||
config_args = [
|
config_args = [
|
||||||
"--prefix=%s" % prefix,
|
'--prefix=%s' % prefix,
|
||||||
"--with-tcl=%s" % join_path(spec['tcl'].prefix, 'lib'), # It looks for tclConfig.sh
|
'--disable-debug',
|
||||||
|
'--disable-dependency-tracking',
|
||||||
|
'--disable-silent-rules',
|
||||||
|
'--disable-versioning',
|
||||||
|
'--datarootdir=%s' % prefix.share,
|
||||||
|
'--with-tcl=%s' % join_path(spec['tcl'].prefix, 'lib'), # It looks for tclConfig.sh
|
||||||
'CPPFLAGS=%s' % ' '.join(CPPFLAGS)
|
'CPPFLAGS=%s' % ' '.join(CPPFLAGS)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
configure(*config_args)
|
configure(*config_args)
|
||||||
make()
|
make()
|
||||||
make("install")
|
make('install')
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
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")
|
|
Loading…
Reference in New Issue
Block a user