Ticket #13679: patch-Portfile.diff

File patch-Portfile.diff, 2.7 KB (added by darren.bane@…, 16 years ago)

Patch against news/tin-devel/Portfile

  • Portfile

    old new  
    22
    33PortSystem 1.0
    44name                    tin-devel
    5 version                 1.7.10
    6 revision                1
     5version                 1.9.2
    76categories              news
    87platforms               darwin
    98maintainers             nomaintainer
     
    1514                        server. It will automatically utilize NOV (News OVerview) style \
    1615                        index files if available locally or via the NNTP XOVER command.
    1716
    18 master_sites            ftp://ftp.tin.org/tin/v1.7/ \
    19                         ftp://ftp.cuhk.edu.hk/pub/packages/news/tin/v1.7/ \
    20                         ftp://ftp.stikman.com/pub/tin/v1.7/
     17master_sites            ftp://ftp.tin.org/tin/v1.9/ \
     18                        ftp://ftp.cuhk.edu.hk/pub/packages/news/tin/v1.9/
    2119                       
    2220use_bzip2               yes
    2321
    24 checksums               md5 23473a665d6d39ed4463b77d227cbb28
     22checksums               md5 251094ddf0e2b059227a4b02187c5f3e \
     23                        sha1 51ba9fbd3bd4413b2630e86ad2f864ce75bf52aa \
     24                        rmd160 e2171a6ac047eff79b07109db40022b047ee06ef
    2525
    2626distname                tin-${version}
    2727
    2828configure.args          --enable-break-long-lines \
    2929                        --enable-nntp \
    30                         --enable-debug \
    3130                        --enable-mh-mail-handling \
    3231                        --enable-included-msgs \
    3332                        --with-coffee \
     
    3534                        --infodir=${prefix}/share/info \
    3635                        --datadir=${prefix}/share \
    3736                        --sysconfdir=${prefix}/etc \
     37                        --with-defaults-dir=${prefix}/etc/${name} \
    3838                        --disable-pgp-gpg
    3939                       
     40build.dir               ${worksrcpath}/src
    4041
    41 build.dir               "${worksrcpath}/src"
    42 
    43 pre-destroot {          file mkdir "${destroot}${prefix}/share/doc/${name}"
    44                         file mkdir "${destroot}${prefix}/etc/${name}"
    45                         xinstall -m 644 -v -W "${worksrcpath}/doc" \
     42pre-destroot {          file mkdir ${destroot}${prefix}/share/doc/${name}
     43                        file mkdir ${destroot}${prefix}/etc/${name}
     44                        xinstall -m 644 -v -W ${worksrcpath}/doc \
    4645                                auth.txt CHANGES config-anomalies \
    4746                                filtering good-netkeeping-seal iso2asc.txt \
    4847                                keymap.sample mailcap.sample pgp.txt \
    4948                                reading-mail.txt TODO umlaute.txt umlauts.txt \
    5049                                WHATSNEW \
    51                                 "${destroot}${prefix}/share/doc/${name}"
    52                         file copy "${worksrcpath}/doc/tin.defaults" \
    53                                 "${destroot}${prefix}/etc/${name}"
     50                                ${destroot}${prefix}/share/doc/${name}
    5451                        }
    5552
    56 post-destroot {         xinstall -m 755 -v -W "${worksrcpath}/tools" \
     53destroot.keepdirs       ${destroot}${prefix}/etc/${name}
     54
     55post-destroot {         xinstall -m 755 -v -W ${worksrcpath}/tools \
    5756                                expiretover tinews.pl tinlock \
    58                                 "${destroot}${prefix}/bin"
     57                                ${destroot}${prefix}/bin
     58                        }
     59
     60post-activate {         set f tin.defaults
     61                        if {![file exists ${prefix}/etc/${name}/${f}]} {
     62                                file copy ${worksrcpath}/doc/${f} \
     63                                        ${prefix}/etc/${name}/${f}
     64                                }
    5965                        }
    6066
    6167variant ipv6            { configure.args-append --enable-ipv6 }
     
    7985variant ispell {        depends_build           bin:ispell:ispell
    8086                        configure.args-append   --enable-ispell
    8187                        }
    82