# -*- 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 # $Id$ PortSystem 1.0 name unison version 2.48.4 revision 1 categories net maintainers nomaintainer license GPL-3 description Unison File Synchronizer long_description Unison is a file-synchronization tool for Unix and \ Windows. It allows two replicas of a collection of \ files and directories to be stored on different \ hosts (or different disks on the same host), \ modified separately, and then brought up to date by \ propagating the changes in each replica to the other. homepage http://www.cis.upenn.edu/~bcpierce/unison/ master_sites ${homepage}download/releases/${name}-${version}/ platforms darwin openbsd set branch [join [lrange [split ${version} .] 0 1] .] checksums rmd160 d5a1d66caffc02832c446f375a16319779fc5e0b \ sha256 30aa53cd671d673580104f04be3cf81ac1e20a2e8baaf7274498739d59e99de8 patchfiles-append patch-Makefile.diff platform darwin 8 { patchfiles-append patch-Makefile.OCaml-MINOSXVERSION.diff } worksrcdir src use_configure no build.args UISTYLE=text NATIVE=true THREADS=true depends_build bin:camlp4:ocaml destroot.args PREFIX=${prefix} UISTYLE=text NATIVE=true THREADS=true default_variants +symlink variant symlink description {Create symlink to versioned binary} { post-destroot { ln -s ${prefix}/bin/${name}-${branch} ${destroot}${prefix}/bin/${name} } } variant x11 conflicts aqua { patchfiles-append patch-Makefile.OCaml.diff depends_lib-append port:lablgtk2 build.args-replace UISTYLE=text \ UISTYLE=gtk2 destroot.args-replace UISTYLE=text \ UISTYLE=gtk2 notes-prepend " You may need to run this from an xterm for it to work: \ unison -ui graphic " } variant aqua description {Build Aqua front-end} conflicts x11 { patchfiles-append patch-uimacnew-uimacnew.xcodeproj-project.pbxproj.diff build.args-replace UISTYLE=text \ UISTYLE=macnew destroot { system "cd ${worksrcpath}/uimacnew/build && mv Default/* . || true" copy ${worksrcpath}/uimacnew/build/Unison.app \ ${destroot}${applications_dir} } } notes " Unison has always suggested using the same version across machines accessing the\ the same files. If you want to keep the previous version, you can reactivate\ the previous version; see: https://trac.macports.org/wiki/howto/InstallingOlderPort " livecheck.type regex livecheck.url ${homepage}download/releases/stable/ livecheck.regex {unison-(\d+(?:\.\d+)*)}