source: trunk/dports/net/unison/Portfile @ 66889

Last change on this file since 66889 was 66889, checked in by ryandesign@…, 9 years ago

unison: use ${applications_dir}; don't hardcode /Applications/MacPorts

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
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 66889 2010-04-24 20:33:39Z ryandesign@macports.org $
3
4PortSystem        1.0
5name              unison
6version           2.32.52
7categories        net
8maintainers       eridius
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     0701f095c1721776a0454b94607eda48 \
20                    sha1    68ea5709de4fcc2f9aef7b01b24637503b61b5ac \
21                    rmd160  8216a2e482d5a445dd7acdb62e1bb6377e90d1a1
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+)*)}
Note: See TracBrowser for help on using the repository browser.