source: trunk/dports/news/tin/Portfile

Last change on this file was 153858, checked in by khindenburg@…, 11 months ago

tin: copy of tin-devel Portfile + update version and livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 153858 2016-10-14 02:26:17Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                tin
7conflicts           tin-devel tin-recent
8version             2.4.0
9categories          news
10license             BSD
11platforms           darwin
12maintainers         nomaintainer
13
14homepage            http://www.tin.org/
15description         A threaded NNTP and spool based UseNet newsreader
16
17long_description    tin is a full-screen easy to use Usenet reader. It can read news \
18            locally or remotely via a NNTP (Network News Transport Protocol) \
19            server. It will automatically utilize NOV (News OVerview) style \
20            index files if available locally or via the NNTP XOVER command.
21
22master_sites        ftp://ftp.tin.org/pub/news/clients/tin/stable
23
24checksums           rmd160  6006eefdf6274b7aefb10c25d4c25d18751917be \
25                    sha256  26ee20980c88308f225c0bae55b6db12365ced3398dbea0621992dff0e74cbb6
26
27depends_lib         port:icu \
28                    port:libiconv \
29                    port:libidn \
30                    port:ncurses \
31                    port:pcre
32
33distname            tin-${version}
34
35configure.args      --enable-break-long-lines \
36                    --enable-nntp \
37                    --enable-mh-mail-handling \
38                    --enable-included-msgs \
39                    --enable-ipv6 \
40                    --with-coffee \
41                    --mandir=${prefix}/share/man \
42                    --infodir=${prefix}/share/info \
43                    --datadir=${prefix}/share \
44                    --sysconfdir=${prefix}/etc \
45                    --with-defaults-dir=${prefix}/etc/${name} \
46                    --disable-pgp-gpg \
47                    --without-ispell \
48                    --with-screen=ncursesw
49
50build.dir           "${worksrcpath}/src"
51
52pre-destroot {
53    xinstall -d "${destroot}${prefix}/share/doc/${name}"
54    xinstall -d "${destroot}${prefix}/etc/${name}"
55    xinstall -m 644 -v -W "${worksrcpath}/doc" \
56        auth.txt CHANGES config-anomalies \
57        filtering good-netkeeping-seal iso2asc.txt \
58        keymap.sample mailcap.sample pgp.txt \
59        reading-mail.txt TODO umlaute.txt umlauts.txt \
60        WHATSNEW \
61        "${destroot}${prefix}/share/doc/${name}"
62    file copy "${worksrcpath}/doc/tin.defaults" \
63        "${destroot}${prefix}/etc/${name}/tin.defaults-${version}"
64}
65
66post-destroot {
67    xinstall -m 755 -v -W "${worksrcpath}/tools" \
68        expiretover tinews.pl tinlock \
69        "${destroot}${prefix}/bin"
70
71    # mutt-devel also installs these man pages, so removing here (since they
72    # describe mail formats, makes a little more sense to be in the mail app)
73    # ticket #11475
74    delete ${destroot}${prefix}/share/man/man5/mbox.5
75    delete ${destroot}${prefix}/share/man/man5/mmdf.5
76}
77
78post-activate {
79    set f "${prefix}/etc/${name}/tin.defaults"
80    if {![file exists ${f}]} {
81        file copy ${f}-${version} ${f}
82    }
83}
84
85variant gpg description {GnuPG support} {
86    depends_run             bin:gpg:gnupg2
87    configure.args-delete   --disable-pgp-gpg
88    configure.args-append   --with-gpg=${prefix}/bin/gpg2 \
89                            --without-pgp \
90                            --without-pgpk
91}
92
93variant ispell description {Ispell/Aspell support} {
94    depends_run             bin:ispell:aspell
95    configure.args-delete   --without-ispell
96    configure.args-append   --with-ispell=${prefix}/bin/ispell
97}
98
99livecheck.type      regex
100livecheck.url       ${homepage}
101livecheck.regex     {([0-9.]+)</A> \(stable}
Note: See TracBrowser for help on using the repository browser.