Opened 19 years ago

Closed 19 years ago

Last modified 8 years ago

#3770 closed update (fixed)

UPDATE: unison 2.12.0

Reported by: benwill@… Owned by: julien.touche@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: unison

Description (last modified by ryandesign (Ryan Carsten Schmidt))

2.12.0 is the current stable version of unison. However, I don't think this should replace the current unison port (2.10.2), as the file formats are incompatible and so it's useful to have both installed. Perhaps this port should be called 'unison' and the older one renamed unison-2.10.2?

Note also that this version does install a symlink /opt/local/bin/unison --> unison-2.12.0 which conflicts with 2.10.2 and so it's necessary to use -f to install.

Improvements over 2.10.2:

  • Uses threading
  • /opt/local/bin/unison is a symlink instead of an extra binary
  • Variant 'aqua' for native GUI
--- Portfile.orig       2005-06-28 18:21:02.000000000 -0700
+++ Portfile    2005-06-30 00:52:46.000000000 -0700
@@ -2,8 +2,8 @@
 
 PortSystem        1.0
 name              unison
-version           2.10.2
-revision          1
+version           2.12.0
+portname         ${name}-${version}
 categories        net
 maintainers       julien.touche@touche.fr.st
 description       Unison File Synchronizer
@@ -16,19 +16,30 @@
 homepage          http://www.cis.upenn.edu/~bcpierce/unison/
 master_sites      ${homepage}download/stable/latest/
 platforms         darwin openbsd
-checksums         md5 a93cf03d4221ab6bab8b758b0325a9d5
+checksums         md5 c2b818e77e95951b5db0b95272e385a2
 patchfiles        patch-Makefile
 dist_subdir       ${name}/${version}
 distname          ${name}-${version}
 
-set worksrcdir    ${name}-${version}
-
 use_configure  no
 
-build.args             UISTYLE=text NATIVE=true
+build.args             UISTYLE=text NATIVE=true THREADS=true
 depends_lib            bin:camlp4:ocaml
 
-destroot.args  PREFIX=${prefix} UISTYLE=text NATIVE=true
+destroot.args  PREFIX=${prefix} UISTYLE=text NATIVE=true THREADS=true
+
+variant aqua {
+       build.args-delete               UISTYLE=text
+       build.args-append               UISTYLE=mac
+       destroot.cmd     {}
+       destroot.destdir {}
+       destroot.target  {}
+       post-destroot {
+               xinstall -d -m 0755 ${destroot}/Applications/DarwinPorts
+               system "cp -r ${worksrcpath}/uimac/build/Unison.app \
+                       ${destroot}/Applications/DarwinPorts/"
+       }
+}
 
 variant x11 {
        depends_lib-append              port:lablgtk2

Attachments (1)

patch-Makefile.diff (1.0 KB) - added by benwill@… 19 years ago.
Patch against patch-Makefile to make a /opt/local/bin/unison a symlink

Download all attachments as: .zip

Change History (4)

comment:1 Changed 19 years ago by benwill@…

Owner: changed from darwinports-bugs@… to julien.touche@…

Changed 19 years ago by benwill@…

Attachment: patch-Makefile.diff added

Patch against patch-Makefile to make a /opt/local/bin/unison a symlink

comment:2 Changed 19 years ago by mww@…

Resolution: fixed
Status: newclosed

comited, thanks!

comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: unison added
Type: defectupdate
Note: See TracTickets for help on using tickets.