1 | # $Id: $ |
---|
2 | PortSystem 1.0 |
---|
3 | name hypermail |
---|
4 | version 2.1.7 |
---|
5 | categories textproc |
---|
6 | maintainers blb@pobox.com |
---|
7 | description Hypermail, mail to cross-referenced HTML converter |
---|
8 | |
---|
9 | long_description \ |
---|
10 | Hypermail is a program that takes a file of mail messages in UNIX mailbox \ |
---|
11 | format and generates a set of cross-referenced HTML documents. |
---|
12 | |
---|
13 | homepage http://www.hypermail.org/ |
---|
14 | |
---|
15 | master_sites http://www.hypermail.org/dist/ \ |
---|
16 | http://distfiles.opendarwin.org/:lt |
---|
17 | |
---|
18 | distfiles-append ltconfig13:lt ltmain13:lt |
---|
19 | |
---|
20 | platforms darwin |
---|
21 | checksums ${distname}${extract.sufx} md5 bbbf059f8e29c4b0d6bbc995567050cd \ |
---|
22 | ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \ |
---|
23 | ltmain13 md5 e094ae92724c4015dbab97de151c2525 |
---|
24 | |
---|
25 | extract.only ${distname}${extract.sufx} |
---|
26 | patchfiles patch-msg2archive.c |
---|
27 | |
---|
28 | # Update configure and libtool files; rename INSTALL as make gets confused |
---|
29 | # otherwise (on HFS+ where INSTALL and install are the same file) |
---|
30 | post-patch { |
---|
31 | system "cp ${distpath}/ltconfig13 ${worksrcpath}/src/pcre/ltconfig" |
---|
32 | system "cp ${distpath}/ltconfig13 ${worksrcpath}/src/fnv/ltconfig" |
---|
33 | system "cp ${distpath}/ltmain13 ${worksrcpath}/src/pcre/ltmain.sh" |
---|
34 | system "cp ${distpath}/ltmain13 ${worksrcpath}/src/fnv/ltmain.sh" |
---|
35 | system "cp /usr/share/libtool/config.* ${worksrcpath}/src/pcre" |
---|
36 | system "cp /usr/share/libtool/config.* ${worksrcpath}/src/fnv" |
---|
37 | system "mv ${worksrcpath}/INSTALL ${worksrcpath}/INSTALL.txt" |
---|
38 | } |
---|
39 | |
---|
40 | configure.env CFLAGS="-L${prefix}/lib" |
---|
41 | configure.args --with-cgidir=${destroot}/${prefix}/share/hypermail/cgi-bin \ |
---|
42 | --with-htmldir=${destroot}/${prefix}/share/doc/hypermail \ |
---|
43 | --without-gdbm |
---|
44 | |
---|
45 | install.args prefix=${destroot}/${prefix} |
---|
46 | pre-install { |
---|
47 | system "mkdir -p ${destroot}/${prefix}/share/doc/hypermail/images" |
---|
48 | } |
---|
49 | |
---|
50 | variant gdbm { |
---|
51 | depends_lib lib:libgdbm:gdbm |
---|
52 | configure.args --with-cgidir=${destroot}/${prefix}/share/hypermail/cgi-bin \ |
---|
53 | --with-htmldir=${destroot}/${prefix}/share/doc/hypermail \ |
---|
54 | --with-gdbm=${prefix} |
---|
55 | } |
---|
56 | |
---|