diff options
author | Kelly (KT) Thompson <KineticTheory@users.noreply.github.com> | 2017-08-18 15:01:02 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-08-18 16:01:02 -0500 |
commit | c41c5bc9b83f726eee5f1969bc4b53ffa8d89348 (patch) | |
tree | 2264648088f9bcc4651de5d3242a792803851864 /var | |
parent | d6d2dff324347dc7dab1d453ef17378c752b8a78 (diff) | |
download | spack-c41c5bc9b83f726eee5f1969bc4b53ffa8d89348.tar.gz spack-c41c5bc9b83f726eee5f1969bc4b53ffa8d89348.tar.bz2 spack-c41c5bc9b83f726eee5f1969bc4b53ffa8d89348.tar.xz spack-c41c5bc9b83f726eee5f1969bc4b53ffa8d89348.zip |
For Tk, also provide a symlink for wishX.X. (#5161)
+ gitk (and possibly other tools) expect to find the Tk executable `wish`, so
add a symlink with this name that points to the the versioned filename.
+ Example: `wish --> wish8.6`
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/tk/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tk/package.py b/var/spack/repos/builtin/packages/tk/package.py index 69ea8a6a00..ab25ba1d5b 100644 --- a/var/spack/repos/builtin/packages/tk/package.py +++ b/var/spack/repos/builtin/packages/tk/package.py @@ -53,3 +53,8 @@ class Tk(AutotoolsPackage): def configure_args(self): spec = self.spec return ['--with-tcl={0}'.format(spec['tcl'].prefix.lib)] + + @run_after('install') + def symlink_wish(self): + with working_dir(self.prefix.bin): + symlink('wish{0}'.format(self.version.up_to(2)), 'wish') |