Ticket #51004: Portfile

File Portfile, 1.9 KB (added by rlonstein@…, 9 years ago)

Portfile update v1.2.1

Line 
1# $Id$
2
3PortSystem          1.0
4
5name                isync
6version             1.2.1
7checksums           rmd160  dcf41159675ab2bd06a0070ac65b49fe13fb07b9 \
8                    sha256  e716de28c9a08e624a035caae3902fcf3b511553be5d61517a133e03aa3532ae
9
10categories          mail
11platforms           darwin
12license             GPL-2
13maintainers         nomaintainer
14description         Synchronizes a maildir with an imap server, provides mbsync command
15homepage            http://isync.sourceforge.net/
16
17long_description    isync is a command line utility for synchronizing a \
18                    remote IMAP mailbox with a local maildir-style mailbox. \
19                    This is useful for working in disconnected mode, such as \
20                    on a laptop. Modifications made locally and remotely are \
21                    synchronized so that no message status flags are lost. \
22                    Due to massive changes in interfaces the new command is \
23                    called mbsync, isync is still provided for compatibility.
24
25master_sites        sourceforge
26
27depends_lib         port:db53 \
28                    path:lib/libssl.dylib:openssl \
29                    port:zlib
30
31depends_run         path:share/curl/curl-ca-bundle.crt:curl-ca-bundle
32
33post-patch {
34    # Patch the sample configuration to use MacPorts certificates
35    reinplace -E "s#^CertificateFile .*\$#CertificateFile ${prefix}/share/curl/curl-ca-bundle.crt#g" \
36        ${worksrcpath}/src/mbsyncrc.sample
37}
38
39configure.args              --mandir=${prefix}/share/man
40configure.cppflags-append   -I${prefix}/include/db53
41configure.ldflags-append    -L${prefix}/lib/db53
42
43post-destroot {
44    xinstall -m 644 -W ${worksrcpath}/src \
45        compat/isync.1 mbsync.1 mdconvert.1 \
46        ${destroot}${prefix}/share/man/man1
47}
48
49notes "A sample configuration file has been installed in ${prefix}/share/doc/${name}/examples/mbsyncrc.sample"