Fixed up to work on a machine without any system-install tcl.
This commit is contained in:
parent
1c483ffe4e
commit
79836520d9
@ -14,16 +14,21 @@ class EnvironmentModules(Package):
|
|||||||
depends_on('tcl')
|
depends_on('tcl')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
|
tcl_spec = spec['tcl']
|
||||||
|
|
||||||
# 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,
|
"--without-tclx",
|
||||||
|
"--with-tclx-ver=0.0",
|
||||||
|
"--prefix=%s" % prefix,
|
||||||
|
"--with-tcl=%s" % join_path(tcl_spec.prefix, 'lib'), # It looks for tclConfig.sh
|
||||||
|
"--with-tcl-ver=%d.%d" % (tcl_spec.version.version[0], tcl_spec.version.version[1]),
|
||||||
'--disable-debug',
|
'--disable-debug',
|
||||||
'--disable-dependency-tracking',
|
'--disable-dependency-tracking',
|
||||||
'--disable-silent-rules',
|
'--disable-silent-rules',
|
||||||
'--disable-versioning',
|
'--disable-versioning',
|
||||||
'--datarootdir=%s' % prefix.share,
|
'--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)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user