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

Last change on this file since 67323 was 67323, checked in by vinc17@…, 10 years ago

Added openmaintainer.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.8 KB
Line 
1# $Id: Portfile 67323 2010-05-05 15:51:10Z vinc17@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#   1.9.5  =  1.9.4  + patches U014 to U019.
58# Said otherwise:
59#   1.8.1  =  1.8.0  + patches 001 to 006.
60#   1.9.0  =  1.8.0  + patches 001 to 008 and U001.
61#   1.9.1  =  1.8.0  + patches 001 to 009 and U001 to U002.
62#   1.8.2  =  1.8.0  + patches 001 to 011.
63#   1.8.3  =  1.8.0  + patches 001 to 018.
64#   1.9.2  =  1.8.0  + patches 001 to 018 and U001 to U006.
65#   1.9.3  =  1.8.0  + patches 001 to 020 and U001 to U010.
66#   1.9.4  =  1.8.0  + patches 001 to 021 and U001 to U013.
67#   1.9.5  =  1.8.0  + patches 001 to 021 and U001 to U019.
68
69# Note: Portfile reformatted according to portstyle(7).
70
71PortSystem 1.0
72
73name                tin-recent
74version             1.9.5
75categories          news
76platforms           darwin
77maintainers         vinc17 openmaintainer
78homepage            http://www.tin.org/
79description         A Usenet newsreader
80
81long_description    TIN is a full-screen easy to use Usenet newsreader. \
82                    It can read news locally or remotely via a NNTP \
83                    server. It will automatically utilize NOV \
84                    newsoverview style index files if available locally \
85                    or via the NNTP (X)OVER command (RFC2980). \
86                    Portfile update policy: follow the development line \
87                    as shown on <http://www.tin.org/history.html>, \
88                    preferring unstable versions at a split.
89
90set tindir tin/v[strsed ${version} {/\.[0-9]*$//}]/
91master_sites        ftp://ftp.tin.org/pub/news/clients/${tindir} \
92                    ftp://ftp.cuhk.edu.hk/pub/packages/news/${tindir}
93
94use_bzip2           yes
95checksums           md5     a662bdebec2d98de382fa1d8dbdb2ac4 \
96                    sha1    64cfb2f13634ee14d3822be3f245450be48a105f \
97                    rmd160  db5b963e5f73d433dfb1bbfe0a7a7070842b5d83
98
99distname            tin-${version}
100
101livecheck.type      regex
102livecheck.url       ${homepage}
103livecheck.regex     /tin-(\[0-9.\]+)\\.tar\\.gz
104
105# The libraries libintl, libiconv and libpcre are needed by tin. If the
106# MacPorts ones are not used, tin 1.9.1 crashes. I don't know which one is
107# the culprit (the PCRE that comes with tin in known to be buggy, but it is
108# the same as in MacPorts). However it is recommended to use the libraries
109# from MacPorts anyway.
110depends_lib         port:gettext port:libiconv port:ncursesw port:pcre
111
112# Remove "da" from the ALL_LINGUAS variable of the configure script because
113# the da.po file is not provided in the tarball and "da" prevents the .mo
114# files from being rebuilt and installed. Bug reported to upstream.
115patchfiles          patch-configure.diff
116
117# Do not use the --enable-debug option. See
118#   From: Vincent Lefevre <vincent@vinc17.org>
119#   Newsgroups: tin.bugs
120#   Subject: BUG REPORT tin 1.9.1 release 20060409 ("Benmore") [UNIX]
121#   Date: Mon,  6 Nov 2006 02:38:19 +0100 (CET)
122#   Message-ID: <20061106012750$653a@prunille.vinc17.org>
123configure.args      --enable-break-long-lines \
124                    --enable-nntp \
125                    --enable-mh-mail-handling \
126                    --enable-included-msgs \
127                    --enable-ipv6 \
128                    --with-coffee \
129                    --mandir=${prefix}/share/man \
130                    --infodir=${prefix}/share/info \
131                    --datadir=${prefix}/share \
132                    --sysconfdir=${prefix}/etc \
133                    --disable-pgp-gpg \
134                    --without-ispell \
135                    --with-screen=ncursesw
136
137build.dir           "${worksrcpath}/src"
138
139pre-destroot {
140    xinstall -d "${destroot}${prefix}/share/doc/${name}"
141    xinstall -d "${destroot}${prefix}/etc/tin"
142    xinstall -m 644 -v -W "${worksrcpath}/doc" \
143      auth.txt CHANGES config-anomalies filtering good-netkeeping-seal \
144      iso2asc.txt keymap.sample mailcap.sample pgp.txt reading-mail.txt \
145      TODO umlaute.txt umlauts.txt WHATSNEW \
146      "${destroot}${prefix}/share/doc/${name}"
147    file copy "${worksrcpath}/doc/tin.defaults" \
148      "${destroot}${prefix}/etc/tin/tin.defaults-${version}"
149}
150
151post-destroot {
152    xinstall -m 755 -v -W "${worksrcpath}/tools" \
153      expiretover tinews.pl tinlock "${destroot}${prefix}/bin"
154   # mutt-devel also installs these man pages, so removing here (since they
155   # describe mail formats, makes a little more sense to be in the mail app)
156   # ticket #11475
157   delete ${destroot}${prefix}/share/man/man5/mbox.5
158   delete ${destroot}${prefix}/share/man/man5/mmdf.5
159}
160
161post-activate {
162    set f "${prefix}/etc/tin/tin.defaults"
163    if {![file exists ${f}]} {
164      file copy ${f}-${version} ${f}
165    }
166}
167
168variant gpg description {GnuPG support} {
169    depends_run bin:gpg:gnupg
170    configure.args-delete --disable-pgp-gpg
171    configure.args-append --with-gpg=${prefix}/bin/gpg \
172                          --without-pgp \
173                          --without-pgpk
174}
175
176variant pgp5 description {PGPK support} {
177    depends_run bin:pgpk:pgp
178    configure.args-delete --disable-pgp-gpg
179    configure.args-append --with-pgpk=${prefix}/bin/pgpk \
180                          --without-gpg \
181                          --without-pgp
182}
183
184variant ispell description {Ispell support} {
185    depends_run bin:ispell:ispell
186    configure.args-delete --without-ispell
187    configure.args-append --with-ispell=${prefix}/bin/ispell
188}
Note: See TracBrowser for help on using the repository browser.