1 | # $Id: Portfile,v 1.42 2006/01/07 19:02:20 matt Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name tin |
---|
5 | version 1.8.0 |
---|
6 | categories news |
---|
7 | platforms darwin |
---|
8 | maintainers matt@opendarwin.org |
---|
9 | homepage http://www.tin.org/ |
---|
10 | description A threaded NNTP and spool based UseNet newsreader |
---|
11 | |
---|
12 | long_description tin is a full-screen easy to use Usenet reader. It can read news \ |
---|
13 | locally or remotely via a NNTP (Network News Transport Protocol) \ |
---|
14 | server. It will automatically utilize NOV (News OVerview) style \ |
---|
15 | index files if available locally or via the NNTP XOVER command. |
---|
16 | |
---|
17 | master_sites ftp://ftp.tin.org/${name}/v1.8/ \ |
---|
18 | ftp://ftp.cuhk.edu.hk/pub/packages/news/${name}/v1.8/ \ |
---|
19 | ftp://ftp.lip6.fr/pub/unix/news/readers/tin-unoff/ \ |
---|
20 | ftp://ftp.stikman.com/pub/${name}/v1.8/ |
---|
21 | |
---|
22 | use_bzip2 yes |
---|
23 | |
---|
24 | checksums md5 696d69b71c2962863fd11bce1848cc0d |
---|
25 | |
---|
26 | configure.args --enable-break-long-lines \ |
---|
27 | --enable-nntp \ |
---|
28 | --enable-mh-mail-handling \ |
---|
29 | --enable-included-msgs \ |
---|
30 | --with-coffee \ |
---|
31 | --mandir=${prefix}/share/man \ |
---|
32 | --infodir=${prefix}/share/info \ |
---|
33 | --datadir=${prefix}/share \ |
---|
34 | --sysconfdir=${prefix}/etc \ |
---|
35 | --with-defaults-dir=${prefix}/etc/${name} \ |
---|
36 | --disable-pgp-gpg |
---|
37 | |
---|
38 | #pre-build { system "patch -p0 ${worksrcpath}/src/Makefile < ${filesdir}/patch-src-Makefile.diff" } |
---|
39 | |
---|
40 | build.dir ${worksrcpath}/src |
---|
41 | |
---|
42 | pre-destroot { file mkdir ${destroot}${prefix}/share/doc/${name} |
---|
43 | file mkdir ${destroot}${prefix}/etc/${name} |
---|
44 | xinstall -m 644 -v -W ${worksrcpath}/doc \ |
---|
45 | auth.txt CHANGES config-anomalies \ |
---|
46 | filtering good-netkeeping-seal iso2asc.txt \ |
---|
47 | keymap.sample mailcap.sample pgp.txt \ |
---|
48 | reading-mail.txt TODO umlaute.txt umlauts.txt \ |
---|
49 | WHATSNEW \ |
---|
50 | ${destroot}${prefix}/share/doc/${name} |
---|
51 | file copy ${worksrcpath}/doc/tin.defaults \ |
---|
52 | ${destroot}${prefix}/etc/${name} |
---|
53 | } |
---|
54 | |
---|
55 | post-destroot { xinstall -m 755 -v -W ${worksrcpath}/tools \ |
---|
56 | expiretover tinews.pl tinlock \ |
---|
57 | ${destroot}${prefix}/bin |
---|
58 | } |
---|
59 | |
---|
60 | variant ipv6 { configure.args-append --enable-ipv6 } |
---|
61 | |
---|
62 | variant gpg { depends_run bin:gpg:gnupg |
---|
63 | configure.args-delete --disable-pgp-gpg |
---|
64 | configure.args-append --with-gpg=${prefix}/bin/gpg \ |
---|
65 | --without-pgp \ |
---|
66 | --without-pgpk |
---|
67 | } |
---|
68 | |
---|
69 | variant pgp5 { depends_run bin:pgpk:pgp |
---|
70 | configure.args-delete --disable-pgp-gpg |
---|
71 | configure.args-append --with-pgpk=${prefix}/bin/pgpk \ |
---|
72 | --without-gpg \ |
---|
73 | --without-pgp |
---|
74 | } |
---|
75 | |
---|
76 | variant ncurses { configure.args-append -with-screen=ncurses } |
---|
77 | |
---|
78 | variant ispell { depends_build bin:ispell:ispell |
---|
79 | configure.args-append --enable-ispell |
---|
80 | } |
---|