1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
4 ;;; This file is part of GNU Guix.
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 (define-module (distro packages tcl)
20 #:use-module (guix packages)
21 #:use-module (guix download)
22 #:use-module (guix build-system gnu)
23 #:use-module (guix licenses))
32 (uri (string-append "mirror://sourceforge/tcl/Tcl/"
33 version "/tcl" version "-src.tar.gz"))
36 "1pnabp3xsja4rc8c01l9q1avb65a3zhdzci3j54qa5krqjwj4i1m"))))
37 (build-system gnu-build-system)
39 '(#:phases (alist-cons-before
40 'configure 'pre-configure
44 'install 'install-private-headers
46 ;; Private headers are needed by Expect.
47 (zero? (system* "make" "install-private-headers")))
50 ;; XXX: There are a few test failures (related to HTTP, most
51 ;; likely related to name resolution), but that doesn't cause
53 #:test-target "test"))
54 (home-page "http://www.tcl.tk/")
55 (synopsis "The Tcl scripting language")
56 (description "The Tcl (Tool Command Language) scripting language.")
57 (license (bsd-style "http://www.tcl.tk/software/tcltk/license.html"
68 (uri (string-append "mirror://sourceforge/expect/Expect/"
69 version "/expect" version ".tar.gz"))
72 "0h60bifxj876afz4im35rmnbnxjx4lbdqp2ja3k30fwa8a8cm3dj"))))
73 (build-system gnu-build-system)
75 `(;; TODO: Add these optional dependencies.
82 (list (string-append "--with-tcl="
83 (assoc-ref %build-inputs "tcl")
85 (string-append "--with-tclinclude="
86 (assoc-ref %build-inputs "tcl")
88 (string-append "--exec-prefix="
89 (assoc-ref %outputs "out")))
91 #:phases (alist-cons-before
92 'configure 'set-path-to-stty
94 (substitute* "configure"
95 (("STTY_BIN=/bin/stty")
96 (string-append "STTY_BIN=" (which "stty")))))
99 #:test-target "test"))
100 (home-page "http://expect.nist.gov/")
102 "A tool for automating interactive applications")
104 "Expect is a tool for automating interactive applications such as
105 telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect really makes this
106 stuff trivial. Expect is also useful for testing these same
107 applications. And by adding Tk, you can wrap interactive applications in
109 (license public-domain))) ; as written in `license.terms'