Ticket #33203: tclx-Portfile.patch

File tclx-Portfile.patch, 2.9 KB (added by gustafn, 12 years ago)

unified diff for Portfile

  • Portfile

    old new  
    44
    55name                    tclx
    66version                 8.4
    7 revision                1
     7revision                2
    88categories              lang
    99maintainers             markd
    10 description             API for parsing XML documents using Tcl
    11 long_description        ${description}
     10description             Tcl with extended command set
     11long_description        {Tclx wxtends Tcl by providing new operating system interface commands,
     12                        extended file control, scanning and status commands and many others.
     13                        Considered by many to be a must-have for large Tcl apps.}
    1214homepage                http://tclx.sourceforge.net/
    1315platforms               darwin
     16dist_subdir             tcltk
    1417distname                ${name}${version}
     18
     19set tclv                8.5.11
     20
    1521master_sites            sourceforge \
    16                                 macports:markd:tclpheaders
     22                        sourceforge:project/tcl/Tcl/${tclv}:tcl
    1723distfiles               ${distname}.tar.bz2 \
    18                                 tcl8.4.14-privateheaders.tar.bz2:tclpheaders
    19 checksums               ${distname}.tar.bz2 md5 395c2fbe35e1723570b005161b9fc8f8 \
    20                                 tcl8.4.14-privateheaders.tar.bz2 md5 32d173ca361169ea3049c28c936854c8
    21 use_bzip2               yes
     24                        tcl${tclv}-src.tar.gz:tcl
     25checksums               ${distname}.tar.bz2 \
     26                                md5    395c2fbe35e1723570b005161b9fc8f8 \
     27                                sha1   f75c0b6c77748fc0a6183e25984f8202268d1b78 \
     28                                rmd160 96c10fdebfe97f4d2c59b61d1116ca0b3efddf7b \
     29                        tcl${tclv}-src.tar.gz \
     30                                md5     b01a9691c83990b3db0ce62d1012ca67 \
     31                                sha1    cb70dcfb7625389afd774e0438a7ade3e7aa13c8 \
     32                                rmd160  36140b5e8365c190202132dd6f0dfeb831ea9bc8
    2233
    23 depends_lib             port:tcl \
    24                         port:tk
     34use_bzip2               yes
     35extract.only            ${distname}.tar.bz2
     36post-extract {
     37    system -W ${distpath} "gnutar xvfz tcl${tclv}-src.tar.gz -C ${workpath}"
     38}
    2539
    26 configure.cflags-append "-I${prefix}/include"
     40depends_lib             port:tcl
    2741
     42configure.cflags        "-I${workpath}/tcl${tclv}/generic -I${workpath}/tcl${tclv}/unix"
    2843configure.args          --enable-shared \
    2944                        --with-help=Help \
    3045                        --with-tcl=${prefix}/lib \
    31                         --with-tk=${prefix}/lib
     46                        --with-tclinclude=${workpath}/tcl${tclv}/generic/
    3247
    3348destroot.target         install-binaries install-libraries
    34 
    35 post-extract {
    36 # Private headers from Tcl 8.4.12
    37         file copy -force ${workpath}/tcl8.4.14-privateheaders/generic/tclInt.h \
    38                 ${worksrcpath}/generic
    39         file copy -force ${workpath}/tcl8.4.14-privateheaders/generic/tclIntDecls.h \
    40                 ${worksrcpath}/generic
    41         file copy -force ${workpath}/tcl8.4.14-privateheaders/generic/tclIntPlatDecls.h \
    42                 ${worksrcpath}/generic
    43         file copy -force ${workpath}/tcl8.4.14-privateheaders/unix/tclUnixPort.h \
    44                 ${worksrcpath}/unix
    45 }