source: trunk/dports/devel/expect/Portfile @ 45861

Last change on this file since 45861 was 45861, checked in by markd@…, 9 years ago

Add a patch for Tcl 8.5.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 45861 2009-01-23 19:16:23Z markd@macports.org $
2
3PortSystem 1.0
4
5name                    expect
6version                 5.43.0
7set shortversion        5.43
8revision                4
9platforms               darwin
10categories              devel
11maintainers             markd
12description             An automating and testing tool
13long_description        Expect is a tool for automating interactive applications \
14                        such as telnet, ftp, passwd, fsck, rlogin, tip, etc. \
15                        Expect is also useful for testing these same applications. \
16                        And by adding Tk, you can also wrap interactive \
17                        applications in X11 GUIs.
18homepage                http://expect.nist.gov/
19master_sites            http://expect.nist.gov/src/:exp \
20                        http://expect.nist.gov/old/:exp \
21                        sourceforge:tcl:tcl
22
23# Set tclv and md5 checksum to the current MacPorts Tcl port version, though port doesn't
24# break if they aren't in sync.
25
26set tclv                8.4.14
27
28distfiles               ${distname}.tar.gz:exp \
29                                tcl${tclv}-src.tar.gz:tcl
30checksums               ${distname}.tar.gz md5 43e1dc0e0bc9492cf2e1a6f59f276bc3 \
31                                tcl${tclv}-src.tar.gz md5 51c6bf74d3ffdb0bd866ecdac6ff6460
32
33depends_build           port:tcl
34
35worksrcdir              ${name}-${shortversion}
36patchfiles              expect-5.43.0-tcl_8.5.5_fix-1.diff
37
38configure.args          --disable-shared \
39                        --mandir=${prefix}/share/man \
40                        --with-tcl="${prefix}/lib" \
41                        --with-tclinclude="${workpath}/tcl${tclv}/generic/"
42
43test.run                yes
44test.target             test
45
46destroot.destdir        INSTALL_ROOT=${destroot}
47
48post-destroot           { ln -s libexpect${shortversion}.a ${destroot}${prefix}/lib/libexpect.a
49
50                        file mkdir ${destroot}${prefix}/share/doc/${name}/examples
51                        eval xinstall -m 644 [glob ${worksrcpath}/example/*] \
52                                ${destroot}${prefix}/share/doc/${name}/examples
53
54                        xinstall -m 644 -W ${worksrcpath} ChangeLog FAQ INSTALL NEWS README \
55                                ${destroot}${prefix}/share/doc/${name}
56                        }
57
Note: See TracBrowser for help on using the repository browser.