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

class Tk(Package):
    """Tk is a graphical user interface toolkit that takes developing
       desktop applications to a higher level than conventional
       approaches. Tk is the standard GUI not only for Tcl, but for
       many other dynamic languages, and can produce rich, native
       applications that run unchanged across Windows, Mac OS X, Linux
       and more."""
    homepage = "http://www.tcl.tk"
    url      = "http://prdownloads.sourceforge.net/tcl/tk8.6.3-src.tar.gz"

    version('src', '85ca4dbf4dcc19777fd456f6ee5d0221')

    depends_on("tcl")

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