summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/tcl/package.py
blob: db8bee88d0d18ac07ebbd1f898b09bc8b522962f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from spack import *

class Tcl(Package):
    """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,
       networking, administration, testing and many more. Open source
       and business-friendly, Tcl is a mature yet evolving language
       that is truly cross platform, easily deployed and highly
       extensible."""
    homepage = "http://www.tcl.tk"

    def url_for_version(self, version):
        return 'http://prdownloads.sourceforge.net/tcl/tcl%s-src.tar.gz' % version

    version('8.6.5', '0e6426a4ca9401825fbc6ecf3d89a326')
    version('8.6.4', 'd7cbb91f1ded1919370a30edd1534304')
    version('8.6.3', 'db382feca91754b7f93da16dc4cdad1f')
    version('8.5.19', '0e6426a4ca9401825fbc6ecf3d89a326')

    depends_on('zlib')

    def install(self, spec, prefix):
        with working_dir('unix'):
            configure("--prefix=%s" % prefix)
            make()
            make("install")