Ticket #27449: Portfile-itcl-3.4.diff

File Portfile-itcl-3.4.diff, 2.9 KB (added by markd@…, 13 years ago)
  • Portfile

    old new  
    33PortSystem 1.0
    44
    55name                    itcl
    6 version                 3.3
    7 revision                2
     6version                 3.4b1
    87categories              lang
    98maintainers             nomaintainer
    109description             Object oriented extension to Tcl.
    1110long_description        ${description}
    1211homepage                http://incrtcl.sourceforge.net/
    1312platforms               darwin
    14 master_sites            sourceforge:incrtcl:itcl \
     13master_sites            sourceforge:incrtcl/files/%5BIncr%20Tcl_Tk%5D-source/3.4:itcl \
    1514                        sourceforge:tcl:tcl
    1615distname                ${name}${version}
    1716# Set tclv and md5 checksum to the current MacPorts Tcl port version, though port doesn't
    1817# break if they aren't in sync.
    1918
    20 set tclv                8.4.14
     19set tclv                8.5.9
    2120
    2221distfiles               ${distname}.tar.gz:itcl \
    2322                                tcl${tclv}-src.tar.gz:tcl
    24 checksums               ${name}${version}.tar.gz md5 d958b3d1c52fa5336b5aacc1251b5ce3 \
    25                                 tcl${tclv}-src.tar.gz md5 51c6bf74d3ffdb0bd866ecdac6ff6460
     23checksums               ${distname}.tar.gz md5 e4c97750c08ab47e960b91911fdd0132 \
     24                                tcl${tclv}-src.tar.gz md5 8512d8db3233041dd68a81476906012a
    2625depends_build           port:tcl port:tk
    2726build.args              CPPFLAGS=-I${prefix}/include
    28 worksrcdir              ${name}${version}
     27worksrcdir              ${name}3.4
    2928
    3029configure.env           TCLROOT=${prefix}
    31 configure.cflags        "-I${workpath}/tcl${tclv}/generic"
    32 configure.ldflags-append        "-tcl8.4"
     30configure.cflags        "-I${workpath}/tcl${tclv}/generic -I${workpath}/tcl${tclv}/unix"
     31configure.ldflags-append        "-tcl8.5"
    3332
    3433configure.args          --with-tcl=${prefix}/lib
    3534
    3635configure.universal_args-delete --disable-dependency-tracking
    3736
    3837post-patch {
    39         reinplace "s|@itcl_LIB_FILE@|${prefix}/lib/libitcl3.3.dylib|g" \
     38        reinplace "s|@itcl_LIB_FILE@|${prefix}/lib/libitcl3.4.dylib|g" \
    4039               ${worksrcpath}/itclConfig.sh.in
    41         reinplace "s|@PACKAGE_VERSION@|3.3|g" \
     40        reinplace "s|@PACKAGE_VERSION@|3.4|g" \
    4241                ${worksrcpath}/itclConfig.sh.in
    4342        reinplace "s|@itcl_BUILD_LIB_SPEC@|-L${prefix}/lib -litcl|g" \
    4443                ${worksrcpath}/itclConfig.sh.in
     
    4948}
    5049
    5150post-build {
    52                 system "ranlib ${worksrcpath}/libitclstub3.3.a"
     51                system "ranlib ${worksrcpath}/libitclstub3.4.a"
    5352}
    5453
    5554destroot {
    5655        set _d ${destroot}${prefix}
    5756        set _w ${worksrcpath}
    58         file mkdir -p ${_d}/lib/itcl3.3
    59         xinstall -m 755 ${_w}/itclConfig.sh ${_d}/lib/itcl3.3
    60         file copy -force ${_w}/pkgIndex.tcl ${_d}/lib/itcl3.3
    61         file copy -force ${_w}/library/itcl.tcl ${_d}/lib/itcl3.3
    62         file copy -force ${_w}/libitcl3.3.dylib ${_d}/lib
    63         file copy -force ${_w}/libitclstub3.3.a ${_d}/lib
     57        file mkdir -p ${_d}/lib/itcl3.4
     58        xinstall -m 755 ${_w}/itclConfig.sh ${_d}/lib/itcl3.4
     59        file copy -force ${_w}/pkgIndex.tcl ${_d}/lib/itcl3.4
     60        file copy -force ${_w}/library/itcl.tcl ${_d}/lib/itcl3.4
     61        file copy -force ${_w}/libitcl3.4.dylib ${_d}/lib
     62        file copy -force ${_w}/libitclstub3.4.a ${_d}/lib
    6463
    6564        file mkdir -p ${_d}/include
    6665        foreach x {itcl.h itclDecls.h itclInt.h itclIntDecls.h } {