# -*- 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
github.setup bcpierce00 unison 2.51.2 v
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/
checksums rmd160 24050d73c3d38389816828dd8ce77b4de7c80639 \
sha256 8e071e862fef675ea034f0c3e4b881d392be0889db4f04ad894cc5a931891e3d \
supported_archs i386 x86_64
patchfiles-append patch-Makefile.OCaml.diff \
# see https://github.com/bcpierce00/unison/commit/2e7ea9481c6c3ff2ec513c39f73cfe15c0763c06
patchfiles-append patch-lablgtk.diff
reinplace "s|__MACPORTS_PREFIX__|${prefix}|g" ${worksrcpath}/src/uimac14/MyController.m
set deployment_version [join [split ${macosx_deployment_target} .] ""]0
reinplace "s|__MACPORTS_DEPLOYMENT_VERSION__|${deployment_version}|g" ${worksrcpath}/src/uimac14/English.lproj/MainMenu.xib
# see https://trac.macports.org/ticket/57234
if {[vercmp ${xcodeversion} 10.0] >= 0} {
build.env-append XCODEFLAGS=-UseNewBuildSystem=NO
build.env-append CC=${configure.cc}
destroot.env-append PREFIX=${prefix}
build.args UISTYLE=text THREADS=true
destroot.args UISTYLE=text THREADS=true
variant gtk description {Build GTK front-end} conflicts aqua {
depends_lib-append port:lablgtk2