source: trunk/dports/net/unison/Portfile

Last change on this file was 153795, checked in by khindenburg@…, 13 months ago

unison:

Add +symlink variant - enabled by default
Add note about using +x11 variant (which does work)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 153795 2016-10-11 14:21:18Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                unison
7version             2.48.4
8revision            1
9categories          net
10maintainers         nomaintainer
11license             GPL-3
12description         Unison File Synchronizer
13long_description    Unison is a file-synchronization tool for Unix and \
14                    Windows. It allows two replicas of a collection of \
15                    files and directories to be stored on different \
16                    hosts (or different disks on the same host), \
17                    modified separately, and then brought up to date by \
18                    propagating the changes in each replica to the other.
19homepage            http://www.cis.upenn.edu/~bcpierce/unison/
20master_sites        ${homepage}download/releases/${name}-${version}/
21platforms           darwin openbsd
22
23set branch          [join [lrange [split ${version} .] 0 1] .]
24
25checksums           rmd160  d5a1d66caffc02832c446f375a16319779fc5e0b \
26                    sha256  30aa53cd671d673580104f04be3cf81ac1e20a2e8baaf7274498739d59e99de8
27
28patchfiles-append   patch-Makefile.diff
29platform darwin 8 {
30    patchfiles-append patch-Makefile.OCaml-MINOSXVERSION.diff
31}
32
33worksrcdir          src
34
35use_configure       no
36
37build.args          UISTYLE=text NATIVE=true THREADS=true
38depends_build       bin:camlp4:ocaml
39
40destroot.args       PREFIX=${prefix} UISTYLE=text NATIVE=true THREADS=true
41
42default_variants    +symlink
43
44variant symlink description {Create symlink to versioned binary} {
45    post-destroot {
46        ln -s ${prefix}/bin/${name}-${branch} ${destroot}${prefix}/bin/${name}
47    }
48}
49
50variant x11 conflicts aqua {
51    patchfiles-append       patch-Makefile.OCaml.diff
52
53    depends_lib-append      port:lablgtk2
54
55    build.args-replace      UISTYLE=text \
56                            UISTYLE=gtk2
57
58    destroot.args-replace   UISTYLE=text \
59                            UISTYLE=gtk2
60
61    notes-prepend "
62You may need to run this from an xterm for it to work: \
63unison -ui graphic
64"
65}
66
67variant aqua description {Build Aqua front-end} conflicts x11 {
68    patchfiles-append       patch-uimacnew-uimacnew.xcodeproj-project.pbxproj.diff
69
70    build.args-replace      UISTYLE=text \
71                            UISTYLE=macnew
72    destroot {
73        system "cd ${worksrcpath}/uimacnew/build && mv Default/* . || true"
74        copy ${worksrcpath}/uimacnew/build/Unison.app \
75            ${destroot}${applications_dir}
76    }
77}
78
79notes "
80Unison has always suggested using the same version across machines accessing the\
81the same files. If you want to keep the previous version, you can reactivate\
82the previous version; see:
83
84https://trac.macports.org/wiki/howto/InstallingOlderPort
85"
86
87livecheck.type      regex
88livecheck.url       ${homepage}download/releases/stable/
89livecheck.regex     {unison-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.