Ticket #8812: Portfile.3

File Portfile.3, 5.2 KB (added by vinc17@…, 17 years ago)

new portfile (removed --enable-debug, reformatted, *FLAGS clean-up, livecheck)

Line 
1# $Id: Portfile 17682 2007-06-03 01:12:50Z lefevre $
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 this makes sense);
8#  * unstable patches (new features), numbered Uddd (U001, U002,
9#    and so on), which are applied to the unstable branch only.
10# At some point, the unstable branch is regarded as stable, making
11# a new stable release and a new stable branch.  Then this branch
12# gets stable patches as usual (fixes, translation updates...).
13# A new unstable branch is created (split from the current stable
14# branch) as soon as the first unstable patch (U001) needs to be
15# applied.
16
17# Portfile update policy: Follow the development line as shown on
18# <http://www.tin.org/history.html>, preferring unstable versions
19# to stable ones when there is a split.
20# The goal of this tin-recent port (as opposed to tin and tin-devel)
21# is to have the highest upstream version (regarded as either stable
22# or unstable), i.e. with the latest features, using a single port,
23# thus benefiting from some port management features, such as those
24# provided by "port outdated" and "port upgrade".
25
26# Note: Portfile reformatted according to portstyle(7).
27
28PortSystem 1.0
29name                tin-recent
30version             1.9.2
31categories          news
32platforms           darwin
33maintainers         vincent-opdarw@vinc17.org
34homepage            http://www.tin.org/
35description         A Usenet newsreader
36
37long_description    TIN is a full-screen easy to use Usenet newsreader. \
38                    It can read news locally or remotely via a NNTP \
39                    server. It will automatically utilize NOV \
40                    newsoverview style index files if available locally \
41                    or via the NNTP (X)OVER command (RFC2980). \
42                    Portfile update policy: follow the development line \
43                    as shown on <http://www.tin.org/history.html>, \
44                    preferring unstable versions at a split.
45
46master_sites        ftp://ftp.tin.org/pub/news/clients/tin/v1.9/ \
47                    ftp://ftp.stikman.com/pub/tin/v1.9/ \
48                    ftp://ftp.cuhk.edu.hk/pub/packages/news/tin/v1.9/
49
50use_bzip2           yes
51checksums           md5 251094ddf0e2b059227a4b02187c5f3e \
52                    sha1 51ba9fbd3bd4413b2630e86ad2f864ce75bf52aa \
53                    rmd160 e2171a6ac047eff79b07109db40022b047ee06ef
54
55distname            tin-${version}
56
57livecheck.check     regex
58livecheck.url       ${homepage}
59livecheck.regex     /tin-(\[\\d.\]+)\\.tar\\.gz
60
61# The libraries libintl, libiconv and libpcre are needed by tin. If the
62# MacPorts ones are not used, tin 1.9.1 crashes. I don't know which one is
63# the culprit (the PCRE that comes with tin in known to be buggy, but it is
64# the same as in MacPorts). However it is recommended to use the libraries
65# from MacPorts anyway.
66depends_lib         port:gettext port:libiconv port:ncurses port:pcre
67
68# Do not use the --enable-debug option. See
69#   From: Vincent Lefevre <vincent@vinc17.org>
70#   Newsgroups: tin.bugs
71#   Subject: BUG REPORT tin 1.9.1 release 20060409 ("Benmore") [UNIX]
72#   Date: Mon,  6 Nov 2006 02:38:19 +0100 (CET)
73#   Message-ID: <20061106012750$653a@prunille.vinc17.org>
74configure.args      --enable-break-long-lines \
75                    --enable-nntp \
76                    --enable-mh-mail-handling \
77                    --enable-included-msgs \
78                    --with-coffee \
79                    --mandir=${prefix}/share/man \
80                    --infodir=${prefix}/share/info \
81                    --datadir=${prefix}/share \
82                    --sysconfdir=${prefix}/etc \
83                    --disable-pgp-gpg \
84                    --with-screen=ncurses
85
86build.dir           "${worksrcpath}/src"
87
88pre-destroot {
89    xinstall -d "${destroot}${prefix}/share/doc/${name}"
90    xinstall -d "${destroot}${prefix}/etc/tin"
91    xinstall -m 644 -v -W "${worksrcpath}/doc" \
92      auth.txt CHANGES config-anomalies filtering good-netkeeping-seal \
93      iso2asc.txt keymap.sample mailcap.sample pgp.txt reading-mail.txt \
94      TODO umlaute.txt umlauts.txt WHATSNEW \
95      "${destroot}${prefix}/share/doc/${name}"
96    file copy "${worksrcpath}/doc/tin.defaults" \
97      "${destroot}${prefix}/etc/tin/tin.defaults-${version}"
98}
99
100post-destroot {
101    xinstall -m 755 -v -W "${worksrcpath}/tools" \
102      expiretover tinews.pl tinlock "${destroot}${prefix}/bin"
103}
104
105post-activate {
106    set f "${prefix}/etc/tin/tin.defaults"
107    if {![file exists ${f}]} {
108      file copy ${f}-${version} ${f}
109    }
110}
111
112variant ipv6 {
113    configure.args-append --enable-ipv6
114}
115
116variant gpg {
117    depends_run bin:gpg:gnupg
118    configure.args-delete --disable-pgp-gpg
119    configure.args-append --with-gpg=${prefix}/bin/gpg \
120                          --without-pgp \
121                          --without-pgpk
122}
123
124variant pgp5 {
125    depends_run bin:pgpk:pgp
126    configure.args-delete --disable-pgp-gpg
127    configure.args-append --with-pgpk=${prefix}/bin/pgpk \
128                          --without-gpg \
129                          --without-pgp
130}
131
132variant ispell {
133    depends_build bin:ispell:ispell
134    configure.args-append --enable-ispell
135}