source: trunk/dports/devel/expect/Portfile

Last change on this file was 125738, checked in by mf2k@…, 3 years ago

adodb argus-monitor base blt cacti cdpr doclifter eventlog expect gkrellm honeyd iwidgets kchmviewer libdnsres monarch moodss moomps nagios nagios-plugins nedi netmrg network-weathermap nfdump nfsen nrg nrpe nsca ntop p5-archive-zip p5-cgi p5-cgi-speedycgi p5-convert-asn1 p5-libintl-perl p5-mhonarc p5-net p5-perl-ldap rancid rrdtool scotty sendpage smokeping snort sympa syslog-ng tclx tftp-hpa tktable uplog vm-pop3d xserve-raid-tools zabbix: Ports abandoned by markd. (#44782)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 125738 2014-09-25 14:43:03Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    expect
6conflicts               bahamut whois
7version                 5.45
8revision                4
9platforms               darwin
10categories              devel
11license                 Tcl/Tk
12maintainers             nomaintainer
13description             An automating and testing tool
14long_description        Expect is a tool for automating interactive applications \
15                        such as telnet, ftp, passwd, fsck, rlogin, tip, etc. \
16                        Expect is also useful for testing these same applications. \
17                        And by adding Tk, you can also wrap interactive \
18                        applications in X11 GUIs.
19homepage                http://expect.sourceforge.net/
20
21# Set tclv and md5 checksum to the current MacPorts Tcl port version, though port doesn't
22# break if they aren't in sync.
23
24set tclv                8.6.0
25
26master_sites            sourceforge:project/expect/Expect/${version}:exp \
27                        sourceforge:project/tcl/Tcl/${tclv}:tcl
28
29dist_subdir             tcltk
30distname                ${name}${version}
31
32distfiles               ${distname}.tar.gz:exp \
33                        tcl${tclv}-src.tar.gz:tcl
34
35checksums               ${distname}.tar.gz \
36                        rmd160  edffe881ee45abe6e9aa150ea5958a04d0ffeab0 \
37                        sha256  b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040 \
38                        tcl${tclv}-src.tar.gz \
39                        rmd160  656d100ad89d3c63596159b43c36f0fbd0507aca \
40                        sha256  354422b9c4791685499123b2dfe01faa98b555c08906c010cb4449ddc75dcade
41
42depends_lib             port:tcl
43
44post-patch {
45        # For each example that gets installed in ${prefix}/bin, fix its
46        # shebang (#!) line to directly run expect (why not?) to fix
47        # "can't find package Expect while executing 'package require Expect'"
48        foreach example {autoexpect autopasswd cryptdir decryptdir dislocate \
49                ftp-rfc kibitz lpunlock mkpasswd multixterm passmass rftp \
50                rlogin-cwd timed-read timed-run tknewsbiff tkpasswd unbuffer \
51                weather xkibitz xpstat} {
52                set file ${worksrcpath}/example/${example}
53                system "patch ${file} < ${filespath}/patch-example.diff"
54                reinplace "s|@PREFIX@|${prefix}|g" ${file}
55        }
56}
57
58configure.cppflags-append -I${workpath}/tcl${tclv}/generic -I${workpath}/tcl${tclv}/unix
59configure.ldflags-append -ltclstub8.6
60configure.args          --disable-shared \
61                        --mandir=${prefix}/share/man \
62                        --with-tcl=${prefix}/lib \
63                        --with-tclinclude=${workpath}/tcl${tclv}/generic/
64
65test.run                yes
66test.target             test
67
68post-destroot           { ln -s expect${version}/libexpect${version}.a ${destroot}${prefix}/lib/libexpect.a
69
70                        file mkdir ${destroot}${prefix}/share/doc/${name}/examples
71                        eval xinstall -m 644 [glob ${worksrcpath}/example/*] \
72                                ${destroot}${prefix}/share/doc/${name}/examples
73
74                        xinstall -m 644 -W ${worksrcpath} ChangeLog FAQ INSTALL NEWS README \
75                                ${destroot}${prefix}/share/doc/${name}
76                        }
77
Note: See TracBrowser for help on using the repository browser.