Merge pull request #1464 from hartzell/feature/update-lmod

No need to patch Lmod after 6.4.4
This commit is contained in:
Todd Gamblin 2016-08-07 15:55:16 -07:00 committed by GitHub
commit 8121ac2c27

View File

@ -38,6 +38,7 @@ class Lmod(Package):
homepage = 'https://www.tacc.utexas.edu/research-development/tacc-projects/lmod' # NOQA: ignore=E501 homepage = 'https://www.tacc.utexas.edu/research-development/tacc-projects/lmod' # NOQA: ignore=E501
url = 'https://github.com/TACC/Lmod/archive/6.4.1.tar.gz' url = 'https://github.com/TACC/Lmod/archive/6.4.1.tar.gz'
version('6.4.5', '14f6c58dbc0a5a75574d795eac2c1e3c')
version('6.4.1', '7978ba777c8aa41a4d8c05fec5f780f4') version('6.4.1', '7978ba777c8aa41a4d8c05fec5f780f4')
version('6.3.7', '0fa4d5a24c41cae03776f781aa2dedc1') version('6.3.7', '0fa4d5a24c41cae03776f781aa2dedc1')
version('6.0.1', '91abf52fe5033bd419ffe2842ebe7af9') version('6.0.1', '91abf52fe5033bd419ffe2842ebe7af9')
@ -55,15 +56,16 @@ def setup_environment(self, spack_env, run_env):
spack_env.append_path('LUA_PATH', stage_lua_path.format( spack_env.append_path('LUA_PATH', stage_lua_path.format(
version=self.version), separator=';') version=self.version), separator=';')
patch('fix_tclsh_paths.patch') patch('fix_tclsh_paths.patch', when='@:6.4.3')
def patch(self): def patch(self):
"""The tcl scripts should use the tclsh that was discovered """The tcl scripts should use the tclsh that was discovered
by the configure script. Touch up their #! lines so that the by the configure script. Touch up their #! lines so that the
sed in the Makefile's install step has something to work on. sed in the Makefile's install step has something to work on.
Requires the change in the associated patch file.fg""" Requires the change in the associated patch file.fg"""
for tclscript in glob('src/*.tcl'): if self.spec.version <= Version('6.4.3'):
filter_file(r'^#!.*tclsh', '#!@path_to_tclsh@', tclscript) for tclscript in glob('src/*.tcl'):
filter_file(r'^#!.*tclsh', '#!@path_to_tclsh@', tclscript)
def install(self, spec, prefix): def install(self, spec, prefix):
configure('--prefix=%s' % prefix) configure('--prefix=%s' % prefix)