Ticket #28028: Portfile

File Portfile, 1.9 KB (added by someuser12, 14 years ago)

proposed Portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 69376 2010-07-02 21:06:00Z dports@macports.org $
3
4PortSystem        1.0
5name              unison
6version           2.40.63
7categories        net
8maintainers       nomaintainer
9description       Unison File Synchronizer
10long_description  Unison is a file-synchronization tool for Unix and \
11                  Windows. It allows two replicas of a collection of \
12                  files and directories to be stored on different hosts \
13                  (or different disks on the same host), modified \
14                  separately, and then brought up to date by propagating \
15                  the changes in each replica to the other.
16homepage          http://www.cis.upenn.edu/~bcpierce/unison/
17master_sites      ${homepage}/download/releases/stable/
18platforms         darwin openbsd
19checksums           md5     3281207850cf6f0a17fe73f371893bd3 \
20                    sha1    645e70bc37a5d4e8e9ccb7bad065fc579b18cf75 \
21                    rmd160  5dede9ea2f1213d4a22ed1914da7bfb1921f9993
22patchfiles        patch-Makefile
23
24use_configure   no
25
26build.args              UISTYLE=text NATIVE=true THREADS=true
27depends_build   bin:camlp4:ocaml
28
29destroot.args   PREFIX=${prefix} UISTYLE=text NATIVE=true THREADS=true
30
31variant x11 {
32        depends_lib-append              port:lablgtk2
33
34        build.args-delete               UISTYLE=text
35        build.args-append               UISTYLE=gtk2
36
37        destroot.args-delete    UISTYLE=text
38        destroot.args-append    UISTYLE=gtk2
39}
40
41variant aqua {
42        build.args-delete               UISTYLE=text
43        build.args-append               UISTYLE=macnew
44        destroot {
45                xinstall -d -m 0755 ${destroot}${applications_dir}
46                system "cd ${worksrcpath}/uimacnew/build && mv Default/* . || true"
47                file copy ${worksrcpath}/uimacnew/build/Unison.app \
48                        ${destroot}${applications_dir}
49        }
50}
51
52livecheck.type      regex
53livecheck.url       ${master_sites}
54livecheck.regex     {unison-(\d+(?:\.\d+)*)}