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 khindenburg@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name tin |
---|
7 | conflicts tin-devel tin-recent |
---|
8 | version 2.4.0 |
---|
9 | categories news |
---|
10 | license BSD |
---|
11 | platforms darwin |
---|
12 | maintainers nomaintainer |
---|
13 | |
---|
14 | homepage http://www.tin.org/ |
---|
15 | description A threaded NNTP and spool based UseNet newsreader |
---|
16 | |
---|
17 | long_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 | |
---|
22 | master_sites ftp://ftp.tin.org/pub/news/clients/tin/stable |
---|
23 | |
---|
24 | checksums rmd160 6006eefdf6274b7aefb10c25d4c25d18751917be \ |
---|
25 | sha256 26ee20980c88308f225c0bae55b6db12365ced3398dbea0621992dff0e74cbb6 |
---|
26 | |
---|
27 | depends_lib port:icu \ |
---|
28 | port:libiconv \ |
---|
29 | port:libidn \ |
---|
30 | port:ncurses \ |
---|
31 | port:pcre |
---|
32 | |
---|
33 | distname tin-${version} |
---|
34 | |
---|
35 | configure.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 | |
---|
50 | build.dir "${worksrcpath}/src" |
---|
51 | |
---|
52 | pre-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 | |
---|
66 | post-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 | |
---|
78 | post-activate { |
---|
79 | set f "${prefix}/etc/${name}/tin.defaults" |
---|
80 | if {![file exists ${f}]} { |
---|
81 | file copy ${f}-${version} ${f} |
---|
82 | } |
---|
83 | } |
---|
84 | |
---|
85 | variant 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 | |
---|
93 | variant 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 | |
---|
99 | livecheck.type regex |
---|
100 | livecheck.url ${homepage} |
---|
101 | livecheck.regex {([0-9.]+)</A> \(stable} |
---|