1 | # $Id: Portfile 12211 2006-05-09 20:28:31Z 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 | |
---|
28 | PortSystem 1.0 |
---|
29 | name tin-recent |
---|
30 | version 1.9.1 |
---|
31 | categories news |
---|
32 | platforms darwin |
---|
33 | maintainers vincent-opdarw@vinc17.org |
---|
34 | homepage http://www.tin.org/ |
---|
35 | description A Usenet newsreader |
---|
36 | |
---|
37 | long_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 | |
---|
46 | master_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 | |
---|
50 | use_bzip2 yes |
---|
51 | checksums md5 a049f8a5de50541e6e6b8d555cd1d4fb \ |
---|
52 | sha1 ae1c43f5adb1633f3242bf79cbfbfeff8b231c2f \ |
---|
53 | rmd160 e01be10fed302b46aafd37e912718cd6775d7fa5 |
---|
54 | |
---|
55 | distname tin-${version} |
---|
56 | |
---|
57 | # The libraries libintl, libiconv and libpcre are needed by tin. If the |
---|
58 | # DarwinPorts ones are not used, tin 1.9.1 crashes. I don't know which |
---|
59 | # one is the culprit (the PCRE that comes with tin in known to be buggy, |
---|
60 | # but it is the same as in DarwinPorts). However it is recommended to |
---|
61 | # use the libraries from DarwinPorts anyway. |
---|
62 | depends_lib port:gettext port:libiconv port:pcre |
---|
63 | |
---|
64 | configure.args --enable-break-long-lines \ |
---|
65 | --enable-nntp \ |
---|
66 | --enable-debug \ |
---|
67 | --enable-mh-mail-handling \ |
---|
68 | --enable-included-msgs \ |
---|
69 | --with-coffee \ |
---|
70 | --mandir=${prefix}/share/man \ |
---|
71 | --infodir=${prefix}/share/info \ |
---|
72 | --datadir=${prefix}/share \ |
---|
73 | --sysconfdir=${prefix}/etc \ |
---|
74 | --disable-pgp-gpg |
---|
75 | |
---|
76 | configure.env CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib" |
---|
77 | |
---|
78 | build.dir "${worksrcpath}/src" |
---|
79 | |
---|
80 | pre-destroot { |
---|
81 | file mkdir "${destroot}${prefix}/share/doc/${name}" |
---|
82 | file mkdir "${destroot}${prefix}/etc/tin" |
---|
83 | xinstall -m 644 -v -W "${worksrcpath}/doc" \ |
---|
84 | auth.txt CHANGES config-anomalies filtering \ |
---|
85 | good-netkeeping-seal iso2asc.txt keymap.sample \ |
---|
86 | mailcap.sample pgp.txt reading-mail.txt TODO \ |
---|
87 | umlaute.txt umlauts.txt WHATSNEW \ |
---|
88 | "${destroot}${prefix}/share/doc/${name}" |
---|
89 | file copy "${worksrcpath}/doc/tin.defaults" \ |
---|
90 | "${destroot}${prefix}/etc/tin/tin.defaults-${version}" |
---|
91 | } |
---|
92 | |
---|
93 | post-destroot { |
---|
94 | xinstall -m 755 -v -W "${worksrcpath}/tools" \ |
---|
95 | expiretover tinews.pl tinlock \ |
---|
96 | "${destroot}${prefix}/bin" |
---|
97 | } |
---|
98 | |
---|
99 | post-activate { |
---|
100 | set f "${prefix}/etc/tin/tin.defaults" |
---|
101 | if {![file exists ${f}]} { |
---|
102 | file copy ${f}-${version} ${f} |
---|
103 | } |
---|
104 | } |
---|
105 | |
---|
106 | variant ipv6 { configure.args-append --enable-ipv6 } |
---|
107 | |
---|
108 | variant gpg { |
---|
109 | depends_run bin:gpg:gnupg |
---|
110 | configure.args-delete --disable-pgp-gpg |
---|
111 | configure.args-append \ |
---|
112 | --with-gpg=${prefix}/bin/gpg \ |
---|
113 | --without-pgp \ |
---|
114 | --without-pgpk |
---|
115 | } |
---|
116 | |
---|
117 | variant pgp5 { |
---|
118 | depends_run bin:pgpk:pgp |
---|
119 | configure.args-delete --disable-pgp-gpg |
---|
120 | configure.args-append \ |
---|
121 | --with-pgpk=${prefix}/bin/pgpk \ |
---|
122 | --without-gpg \ |
---|
123 | --without-pgp |
---|
124 | } |
---|
125 | |
---|
126 | variant ncurses { configure.args-append --with-screen=ncurses } |
---|
127 | |
---|
128 | variant ispell { |
---|
129 | depends_build bin:ispell:ispell |
---|
130 | configure.args-append --enable-ispell |
---|
131 | } |
---|