Ticket #32914: Portfile.2.patch

File Portfile.2.patch, 6.5 KB (added by nefar@…, 12 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 46912 2009-02-17 02:20:09Z raimue@macports.org $
    22
    3 PortSystem 1.0
    4 name                    tin
    5 version                 1.8.3
    6 revision                3
    7 categories              news
    8 platforms               darwin
    9 maintainers             nomaintainer
    10 homepage                http://www.tin.org/
    11 description             A threaded NNTP and spool based UseNet newsreader
    12 
    13 long_description        tin is a full-screen easy to use Usenet reader. It can read news \
    14                         locally or remotely via a NNTP (Network News Transport Protocol) \
    15                         server. It will automatically utilize NOV (News OVerview) style \
    16                         index files if available locally or via the NNTP XOVER command.
    17 
    18 master_sites            ftp://ftp.tin.org/${name}/v1.8/ \
    19                         ftp://ftp.cuhk.edu.hk/pub/packages/news/${name}/v1.8/ \
    20                         ftp://ftp.lip6.fr/pub/unix/news/readers/tin-unoff/ \
    21                         ftp://ftp.stikman.com/pub/${name}/v1.8/
    22                        
    23 use_bzip2               yes
    24 
    25 checksums               md5 e6ed45205020665c097556822b0d575b \
    26                         sha1 3822e7281d22433862075270b06bfa6b82226b0e \
    27                         rmd160 7e165eccb099cfc8aae073781a5642266321dd3e
    28 
    29 configure.args          --enable-break-long-lines \
    30                         --enable-nntp \
    31                         --enable-mh-mail-handling \
    32                         --enable-included-msgs \
    33                         --enable-ipv6 \
    34                         --with-coffee \
    35                         --mandir=${prefix}/share/man \
    36                         --infodir=${prefix}/share/info \
    37                         --datadir=${prefix}/share \
    38                         --sysconfdir=${prefix}/etc \
    39                         --with-defaults-dir=${prefix}/etc/${name} \
    40                         --disable-pgp-gpg
    41 
    42 build.dir               ${worksrcpath}/src
    43 
    44 configure.cppflags-append       -DSIGWINCH=28
    45 
    46 pre-destroot {          file mkdir ${destroot}${prefix}/share/doc/${name}
    47                         file mkdir ${destroot}${prefix}/etc/${name}
    48                         xinstall -m 644 -v -W ${worksrcpath}/doc \
    49                                 auth.txt CHANGES config-anomalies \
    50                                 filtering good-netkeeping-seal iso2asc.txt \
    51                                 keymap.sample mailcap.sample pgp.txt \
    52                                 reading-mail.txt TODO umlaute.txt umlauts.txt \
    53                                 WHATSNEW \
    54                                 ${destroot}${prefix}/share/doc/${name}
    55                         }
    56 
    57 destroot.keepdirs       ${destroot}${prefix}/etc/${name}
    58 
    59 post-destroot {         xinstall -m 755 -v -W ${worksrcpath}/tools \
    60                                 expiretover tinews.pl tinlock \
    61                                 ${destroot}${prefix}/bin
    62                         # mutt-devel also installs these man pages, so
    63                         # removing here (since they describe mail formats,
    64                         # makes a little more sense to be in the mail app)
    65                         # ticket #11475
    66                         delete ${destroot}${prefix}/share/man/man5/mbox.5
    67                         delete ${destroot}${prefix}/share/man/man5/mmdf.5
    68                         }
    69 
    70 post-activate {         set f tin.defaults
    71                         if {![file exists ${prefix}/etc/${name}/${f}]} {
    72                                 file copy ${worksrcpath}/doc/${f} \
    73                                         ${prefix}/etc/${name}/${f}
    74                                 }
    75                         }
    76 
    77 variant gpg {           depends_run             bin:gpg:gnupg
    78                         configure.args-delete   --disable-pgp-gpg
    79                         configure.args-append   --with-gpg=${prefix}/bin/gpg \
    80                                                 --without-pgp \
    81                                                 --without-pgpk
    82                         }
    83 
    84 variant pgp5 {          depends_run             bin:pgpk:pgp
    85                         configure.args-delete   --disable-pgp-gpg
    86                         configure.args-append   --with-pgpk=${prefix}/bin/pgpk \
    87                                                 --without-gpg \
    88                                                 --without-pgp
    89                         }
     3PortSystem          1.0
     4name                tin
     5version             2.0.1
     6categories          news
     7platforms           darwin
     8maintainers         nomaintainer
     9homepage            http://www.tin.org/
     10description         A threaded NNTP and spool based UseNet newsreader
     11
     12long_description  tin is a full-screen easy to use Usenet reader. It can read news \
     13      locally or remotely via a NNTP (Network News Transport Protocol) \
     14      server. It will automatically utilize NOV (News OVerview) style \
     15      index files if available locally or via the NNTP XOVER command.
     16
     17master_sites        ftp://ftp.tin.org/${name}/v2.0/ \
     18                    ftp://ftp.cuhk.edu.hk/pub/packages/news/${name}/v2.0/ \
     19                    ftp://ftp.lip6.fr/pub/unix/news/readers/tin-unoff/
     20
     21use_bzip2           yes
     22
     23checksums           md5     e61837b8559e7cdbc35bc11f15c3b7ce \
     24                    sha1    bf54c04c114a194d54431240f31e3c7b80b0d790 \
     25                    rmd160  744ef16c7ce83971213b2ae2d26fac3c48a91eaa
     26
     27configure.args      --enable-break-long-lines \
     28                    --enable-nntp \
     29                    --enable-mh-mail-handling \
     30                    --enable-included-msgs \
     31                    --enable-ipv6 \
     32                    --with-coffee \
     33                    --mandir=${prefix}/share/man \
     34                    --infodir=${prefix}/share/info \
     35                    --datadir=${prefix}/share \
     36                    --sysconfdir=${prefix}/etc \
     37                    --with-defaults-dir=${prefix}/etc/${name} \
     38                    --disable-pgp-gpg
     39
     40build.dir   ${worksrcpath}/src
     41
     42configure.cppflags-append -DSIGWINCH=28
     43
     44pre-destroot {    file mkdir ${destroot}${prefix}/share/doc/${name}
     45      file mkdir ${destroot}${prefix}/etc/${name}
     46      xinstall -m 644 -v -W ${worksrcpath}/doc \
     47        auth.txt CHANGES config-anomalies \
     48        filtering good-netkeeping-seal iso2asc.txt \
     49        keymap.sample mailcap.sample pgp.txt \
     50        reading-mail.txt TODO umlaute.txt umlauts.txt \
     51        WHATSNEW \
     52        ${destroot}${prefix}/share/doc/${name}
     53      }
     54
     55destroot.keepdirs ${destroot}${prefix}/etc/${name}
     56
     57post-destroot {   xinstall -m 755 -v -W ${worksrcpath}/tools \
     58        expiretover tinews.pl tinlock \
     59        ${destroot}${prefix}/bin
     60      # mutt-devel also installs these man pages, so
     61      # removing here (since they describe mail formats,
     62      # makes a little more sense to be in the mail app)
     63      # ticket #11475
     64      delete ${destroot}${prefix}/share/man/man5/mbox.5
     65      delete ${destroot}${prefix}/share/man/man5/mmdf.5
     66      }
     67
     68post-activate {   set f tin.defaults
     69      if {![file exists ${prefix}/etc/${name}/${f}]} {
     70        file copy ${worksrcpath}/doc/${f} \
     71          ${prefix}/etc/${name}/${f}
     72        }
     73      }
     74
     75variant gpg {   depends_run   bin:gpg:gnupg
     76      configure.args-delete --disable-pgp-gpg
     77      configure.args-append --with-gpg=${prefix}/bin/gpg \
     78            --without-pgp \
     79            --without-pgpk
     80      }
     81
     82variant pgp5 {    depends_run   bin:pgpk:pgp
     83      configure.args-delete   --disable-pgp-gpg
     84      configure.args-append --with-pgpk=${prefix}/bin/pgpk \
     85            --without-gpg \
     86            --without-pgp
     87      }
    9088
    91 variant ncurses         { configure.args-append --with-screen=ncurses }
     89variant ncurses   { configure.args-append --with-screen=ncurses }
    9290
    9391variant ispell {        depends_build           bin:ispell:ispell
    9492                        configure.args-append   --enable-ispell
    95                                                 }
     93                              }