source: trunk/dports/news/tin-devel/Portfile

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

tin-devel: add deps; remove old pgp5 variant; adjust gpg and ispell variants

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