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 | |
---|
4 | PortSystem 1.0 |
---|
5 | name unison |
---|
6 | version 2.40.63 |
---|
7 | categories net |
---|
8 | maintainers nomaintainer |
---|
9 | description Unison File Synchronizer |
---|
10 | long_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. |
---|
16 | homepage http://www.cis.upenn.edu/~bcpierce/unison/ |
---|
17 | master_sites ${homepage}/download/releases/stable/ |
---|
18 | platforms darwin openbsd |
---|
19 | checksums md5 3281207850cf6f0a17fe73f371893bd3 \ |
---|
20 | sha1 645e70bc37a5d4e8e9ccb7bad065fc579b18cf75 \ |
---|
21 | rmd160 5dede9ea2f1213d4a22ed1914da7bfb1921f9993 |
---|
22 | patchfiles patch-Makefile |
---|
23 | |
---|
24 | use_configure no |
---|
25 | |
---|
26 | build.args UISTYLE=text NATIVE=true THREADS=true |
---|
27 | depends_build bin:camlp4:ocaml |
---|
28 | |
---|
29 | destroot.args PREFIX=${prefix} UISTYLE=text NATIVE=true THREADS=true |
---|
30 | |
---|
31 | variant 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 | |
---|
41 | variant 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 | |
---|
52 | livecheck.type regex |
---|
53 | livecheck.url ${master_sites} |
---|
54 | livecheck.regex {unison-(\d+(?:\.\d+)*)} |
---|