Changeset 92644


Ignore:
Timestamp:
May 2, 2012, 11:48:17 PM (5 years ago)
Author:
ryandesign@…
Message:

expect: fix "can't find package Expect while executing 'package require Expect'"; see #31225

Location:
trunk/dports/devel/expect
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/expect/Portfile

    r92640 r92644  
    66conflicts               whois
    77version                 5.45
    8 revision                2
     8revision                3
    99platforms               darwin
    1010categories              devel
     
    4343depends_lib             port:tcl
    4444
     45post-patch {
     46        # For each example that gets installed in ${prefix}/bin, fix its
     47        # shebang (#!) line to directly run expect (why not?) to fix
     48        # "can't find package Expect while executing 'package require Expect'"
     49        foreach example {autoexpect autopasswd cryptdir decryptdir dislocate \
     50                ftp-rfc kibitz lpunlock mkpasswd multixterm passmass rftp \
     51                rlogin-cwd timed-read timed-run tknewsbiff tkpasswd unbuffer \
     52                weather xkibitz xpstat} {
     53                set file ${worksrcpath}/example/${example}
     54                system "patch ${file} < ${filespath}/patch-example.diff"
     55                reinplace "s|@PREFIX@|${prefix}|g" ${file}
     56        }
     57}
     58
    4559configure.cflags        "-I${workpath}/tcl${tclv}/generic -I${workpath}/tcl${tclv}/unix"
    4660configure.args          --disable-shared \
Note: See TracChangeset for help on using the changeset viewer.