summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/tcl/package.py
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-01-15 18:23:16 -0600
committerTodd Gamblin <tgamblin@llnl.gov>2017-01-15 16:23:16 -0800
commitf480e3449eeb047e055af5bbfdf41eefd8de8d1a (patch)
tree5ff068acc4d74dd7164a9125a53ea4e92135809f /var/spack/repos/builtin/packages/tcl/package.py
parent4b7b595e3cac6207e2f1a19fe5d250faf74ca495 (diff)
downloadspack-f480e3449eeb047e055af5bbfdf41eefd8de8d1a.tar.gz
spack-f480e3449eeb047e055af5bbfdf41eefd8de8d1a.tar.bz2
spack-f480e3449eeb047e055af5bbfdf41eefd8de8d1a.tar.xz
spack-f480e3449eeb047e055af5bbfdf41eefd8de8d1a.zip
Added customization for make targets in 'build' and 'install' phases for CMakePackage (#2742)
* Added customization for make targets in 'build' and 'install' phases for CMakePackage * Use rst in build system docs so that Sphinx generates nice API docs * Allow AutotoolsPackages to be built in a different directory * Flake8 * Fix missing import * Allow configure to be located in different directory * Update espressopp to use build targets * Flake8 * Sphinx fix, lists must be a new paragraph * Back out change that allowed a configure script in a different directory than build_directory * Add missing deps, build in parallel * Missing space for rst list
Diffstat (limited to 'var/spack/repos/builtin/packages/tcl/package.py')
-rw-r--r--var/spack/repos/builtin/packages/tcl/package.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/tcl/package.py b/var/spack/repos/builtin/packages/tcl/package.py
index 16d896acc6..d9b535305d 100644
--- a/var/spack/repos/builtin/packages/tcl/package.py
+++ b/var/spack/repos/builtin/packages/tcl/package.py
@@ -25,7 +25,7 @@
from spack import *
-class Tcl(Package):
+class Tcl(AutotoolsPackage):
"""Tcl (Tool Command Language) is a very powerful but easy to
learn dynamic programming language, suitable for a very wide
range of uses, including web and desktop applications,
@@ -52,10 +52,10 @@ class Tcl(Package):
env.set('TCL_LIBRARY', join_path(self.prefix.lib, 'tcl{0}'.format(
self.spec.version.up_to(2))))
- def install(self, spec, prefix):
- with working_dir('unix'):
- configure("--prefix={0}".format(prefix))
- make()
- make("install")
- with working_dir(prefix.bin):
+ def build_directory(self):
+ return 'unix'
+
+ @AutotoolsPackage.sanity_check('install')
+ def symlink_tclsh(self):
+ with working_dir(self.prefix.bin):
symlink('tclsh{0}'.format(self.version.up_to(2)), 'tclsh')