Ticket #6925: Portfile

File Portfile, 2.6 KB (added by matt@…, 18 years ago)

Portfile w/o the pre-build target

Line 
1# $Id: Portfile,v 1.42 2006/01/07 19:02:20 matt Exp $
2
3PortSystem 1.0
4name                    tin
5version                 1.8.0
6categories              news
7platforms               darwin
8maintainers             matt@opendarwin.org
9homepage                http://www.tin.org/
10description             A threaded NNTP and spool based UseNet newsreader
11
12long_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
17master_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                       
22use_bzip2               yes
23
24checksums               md5 696d69b71c2962863fd11bce1848cc0d
25
26configure.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
40build.dir               ${worksrcpath}/src
41
42pre-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
55post-destroot {         xinstall -m 755 -v -W ${worksrcpath}/tools \
56                                expiretover tinews.pl tinlock \
57                                ${destroot}${prefix}/bin
58                        }
59
60variant ipv6            { configure.args-append --enable-ipv6 }
61
62variant 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
69variant 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
76variant ncurses         { configure.args-append -with-screen=ncurses }
77
78variant ispell {        depends_build           bin:ispell:ispell
79                        configure.args-append   --enable-ispell
80                                                }