source: trunk/dports/news/tin-recent/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.5 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3# The Tin development model is based on patchsets, as indicated in
4# the doc/CHANGES file.  There are:
5#  * stable patches, numbered ddd (001, 002, and so on), which are
6#    applied to the current stable branch, and in general, to the
7#    unstable branch too (i.e. when there is one and when this makes
8#    sense);
9#  * unstable patches (new features), numbered Uddd (U001, U002,
10#    and so on), which are applied to the unstable branch only.
11# In general, at some point in the time, there are two currently
12# supported branches: a stable branch (e.g. 1.6) and an unstable
13# branch (e.g. 1.7).  At some later point (i.e. after a feature
14# freeze?), the development line (coming from the unstable branch)
15# is regarded as stable; this leads to a new stable release (e.g.
16# 1.8.0) and a new stable branch (e.g. 1.8).  At this point, the
17# old stable branch (e.g. 1.6) is abandonned.  Then the new stable
18# branch (1.8) gets stable patches as usual (fixes, translation
19# updates...), leading to new stable releases (e.g. 1.8.1), which
20# correspond to the latest unstable release (e.g. 1.7.10) + bug
21# fixes.  As soon as the first unstable patch (U001) needs to be
22# applied, a new unstable branch (e.g. 1.9) is created (split from
23# the current stable branch).
24
25# Portfile update policy: Follow the development line as shown on
26# <http://www.tin.org/history.html>, preferring unstable versions
27# to stable ones when there is a split, i.e. stay on the right.
28# The goal of this tin-recent port (as opposed to tin and tin-devel)
29# is to have the highest upstream version (regarded as either stable
30# or unstable), i.e. with the latest features, using a single port,
31# thus benefiting from some port management features, such as those
32# provided by "port outdated" and "port upgrade".
33
34# For instance, if ports are updated as soon as tin versions are
35# released:
36#    tin   tin-devel   tin-recent
37#   1.6.2    1.7.9       1.7.9
38#   1.6.2    1.7.10      1.7.10
39#   1.8.0    1.7.10      1.8.0
40#   1.8.1    1.7.10      1.8.1
41#   1.8.1    1.9.0       1.9.0
42#   1.8.1    1.9.1       1.9.1
43#   1.8.2    1.9.1       1.9.1
44#   1.8.3    1.9.2       1.9.2
45# where:
46#   1.7.9  =  1.7.8  + patches U040 to U045.
47#   1.7.10 =  1.7.9  + patches U046 to U052.
48#   1.8.0  =  1.7.10 + patches U053 to U056.
49#   1.8.1  =  1.8.0  + patches 001 to 006.
50#   1.9.0  =  1.8.1  + patches 007, 008 and U001.
51#   1.9.1  =  1.9.0  + patches 009 and U002.
52#   1.8.2  =  1.8.1  + patches 007 to 011.
53#   1.8.3  =  1.8.2  + patches 012 to 018.
54#   1.9.2  =  1.9.1  + patches 010 to 018 and U003 to U006.
55#   1.9.3  =  1.9.2  + patches 019 to 020 and U007 to U010.
56#   1.9.4  =  1.9.3  + patches 021 and U011 to U013.
57# Said otherwise:
58#   1.8.1  =  1.8.0  + patches 001 to 006.
59#   1.9.0  =  1.8.0  + patches 001 to 008 and U001.
60#   1.9.1  =  1.8.0  + patches 001 to 009 and U001 to U002.
61#   1.8.2  =  1.8.0  + patches 001 to 011.
62#   1.8.3  =  1.8.0  + patches 001 to 018.
63#   1.9.2  =  1.8.0  + patches 001 to 018 and U001 to U006.
64#   1.9.3  =  1.8.0  + patches 001 to 020 and U001 to U010.
65#   1.9.4  =  1.8.0  + patches 001 to 021 and U001 to U013.
66
67# Note: Portfile reformatted according to portstyle(7).
68
69PortSystem 1.0
70
71name                tin-recent
72version             1.9.4
73revision            1
74categories          news
75platforms           darwin
76maintainers         vincent-vinc17.org:opdarw
77homepage            http://www.tin.org/
78description         A Usenet newsreader
79
80long_description    TIN is a full-screen easy to use Usenet newsreader. \
81                    It can read news locally or remotely via a NNTP \
82                    server. It will automatically utilize NOV \
83                    newsoverview style index files if available locally \
84                    or via the NNTP (X)OVER command (RFC2980). \
85                    Portfile update policy: follow the development line \
86                    as shown on <http://www.tin.org/history.html>, \
87                    preferring unstable versions at a split.
88
89set tindir tin/v[strsed ${version} {/\.[0-9]*$//}]/
90master_sites        ftp://ftp.tin.org/pub/news/clients/${tindir} \
91                    ftp://ftp.cuhk.edu.hk/pub/packages/news/${tindir}
92
93use_bzip2           yes
94checksums           md5 6b851dd45723bbf23bfb2e134e74e75a \
95                    sha1 e1f5ff2f04923137f43119b144f8a20e733eea23 \
96                    rmd160 6a85e47ea06f2e86f2b8f688df137432ecb7c4e9
97
98distname            tin-${version}
99
100livecheck.check     regex
101livecheck.url       ${homepage}
102livecheck.regex     /tin-(\[0-9.\]+)\\.tar\\.gz
103
104# The libraries libintl, libiconv and libpcre are needed by tin. If the
105# MacPorts ones are not used, tin 1.9.1 crashes. I don't know which one is
106# the culprit (the PCRE that comes with tin in known to be buggy, but it is
107# the same as in MacPorts). However it is recommended to use the libraries
108# from MacPorts anyway.
109depends_lib         port:gettext port:libiconv port:ncursesw port:pcre
110
111# Do not use the --enable-debug option. See
112#   From: Vincent Lefevre <vincent@vinc17.org>
113#   Newsgroups: tin.bugs
114#   Subject: BUG REPORT tin 1.9.1 release 20060409 ("Benmore") [UNIX]
115#   Date: Mon,  6 Nov 2006 02:38:19 +0100 (CET)
116#   Message-ID: <20061106012750$653a@prunille.vinc17.org>
117configure.args      --enable-break-long-lines \
118                    --enable-nntp \
119                    --enable-mh-mail-handling \
120                    --enable-included-msgs \
121                    --enable-ipv6 \
122                    --with-coffee \
123                    --mandir=${prefix}/share/man \
124                    --infodir=${prefix}/share/info \
125                    --datadir=${prefix}/share \
126                    --sysconfdir=${prefix}/etc \
127                    --disable-pgp-gpg \
128                    --without-ispell \
129                    --with-screen=ncursesw
130
131build.dir           "${worksrcpath}/src"
132
133pre-destroot {
134    xinstall -d "${destroot}${prefix}/share/doc/${name}"
135    xinstall -d "${destroot}${prefix}/etc/tin"
136    xinstall -m 644 -v -W "${worksrcpath}/doc" \
137      auth.txt CHANGES config-anomalies filtering good-netkeeping-seal \
138      iso2asc.txt keymap.sample mailcap.sample pgp.txt reading-mail.txt \
139      TODO umlaute.txt umlauts.txt WHATSNEW \
140      "${destroot}${prefix}/share/doc/${name}"
141    file copy "${worksrcpath}/doc/tin.defaults" \
142      "${destroot}${prefix}/etc/tin/tin.defaults-${version}"
143}
144
145post-destroot {
146    xinstall -m 755 -v -W "${worksrcpath}/tools" \
147      expiretover tinews.pl tinlock "${destroot}${prefix}/bin"
148   # mutt-devel also installs these man pages, so removing here (since they
149   # describe mail formats, makes a little more sense to be in the mail app)
150   # ticket #11475
151   delete ${destroot}${prefix}/share/man/man5/mbox.5
152   delete ${destroot}${prefix}/share/man/man5/mmdf.5
153}
154
155post-activate {
156    set f "${prefix}/etc/tin/tin.defaults"
157    if {![file exists ${f}]} {
158      file copy ${f}-${version} ${f}
159    }
160}
161
162variant gpg description {GnuPG support} {
163    depends_run bin:gpg:gnupg
164    configure.args-delete --disable-pgp-gpg
165    configure.args-append --with-gpg=${prefix}/bin/gpg \
166                          --without-pgp \
167                          --without-pgpk
168}
169
170variant pgp5 description {PGPK support} {
171    depends_run bin:pgpk:pgp
172    configure.args-delete --disable-pgp-gpg
173    configure.args-append --with-pgpk=${prefix}/bin/pgpk \
174                          --without-gpg \
175                          --without-pgp
176}
177
178variant ispell description {Ispell support} {
179    depends_run bin:ispell:ispell
180    configure.args-delete --without-ispell
181    configure.args-append --with-ispell=${prefix}/bin/ispell
182}
Note: See TracBrowser for help on using the repository browser.