Ticket #32914: Portfile.patch

File Portfile.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
    33PortSystem 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                         }
     4name      tin
     5version     2.0.1
     6revision    3
     7categories    news
     8platforms   darwin
     9maintainers   nomaintainer
     10homepage    http://www.tin.org/
     11description   A threaded NNTP and spool based UseNet newsreader
     12
     13long_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
     18master_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
     23use_bzip2   yes
     24
     25checksums           md5     e61837b8559e7cdbc35bc11f15c3b7ce \
     26                    sha1    bf54c04c114a194d54431240f31e3c7b80b0d790 \
     27                    rmd160  744ef16c7ce83971213b2ae2d26fac3c48a91eaa
     28
     29configure.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
     42build.dir   ${worksrcpath}/src
     43
     44configure.cppflags-append -DSIGWINCH=28
     45
     46pre-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
     57destroot.keepdirs ${destroot}${prefix}/etc/${name}
     58
     59post-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
     70post-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
     77variant 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
     84variant 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      }
    9090
    91 variant ncurses         { configure.args-append --with-screen=ncurses }
     91variant ncurses   { configure.args-append --with-screen=ncurses }
    9292
    9393variant ispell {        depends_build           bin:ispell:ispell
    9494                        configure.args-append   --enable-ispell
    95                                                 }
     95                              }