UPDATE: Unison / GTK2
[ben@assam-tol ben] $ port info unison
unison 2.10.2, net/unison (Variants: x11)
http://www.cis.upenn.edu/~bcpierce/unison/
[ben@assam-tol ben] $ sudo port install unison +x11
---> Unpacking tgz archive for libiconv 1.9.2_1
---> Installing libiconv 1.9.2_1
---> Activating libiconv 1.9.2_1
---> Cleaning libiconv
---> Installing gettext 0.14.3_1
---> Activating gettext 0.14.3_1
---> Cleaning gettext
---> Unpacking tgz archive for pkgconfig 0.17.2_1
---> Installing pkgconfig 0.17.2_1
---> Activating pkgconfig 0.17.2_1
---> Cleaning pkgconfig
---> Unpacking tgz archive for glib1 1.2.10_4
---> Installing glib1 1.2.10_4
---> Activating glib1 1.2.10_4
---> Cleaning glib1
---> Unpacking tgz archive for gtk1 1.2.10_6
---> Installing gtk1 1.2.10_6
---> Activating gtk1 1.2.10_6
---> Cleaning gtk1
---> Fetching ocaml
---> Verifying checksum(s) for ocaml
---> Extracting ocaml
---> Configuring ocaml
---> Building ocaml with target world.opt
---> Staging ocaml into destroot
---> Packaging tgz archive for ocaml 3.08.3_0
---> Installing ocaml 3.08.3_0
---> Activating ocaml 3.08.3_0
---> Cleaning ocaml
---> Unpacking tgz archive for lablgtk 1.2.7_0
---> Installing lablgtk 1.2.7_0
---> Activating lablgtk 1.2.7_0
---> Cleaning lablgtk
---> Building unison with target all
Error: Target com.apple.build returned: shell command "cd
"/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_unison/work/unison-2.10.2"
&& make all NATIVE=true UISTYLE=gtk" returned error 2
Command output: UISTYLE = gtk
Building for Unix
NATIVE = true
THREADS = false
STATIC = false
OSTYPE =
OSARCH = osx
ocamlopt: pixmaps.ml ---> pixmaps.cmx
ocamlopt -I lwt -I ubase -I /opt/local/lib/ocaml/lablgtk -c
/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_unison/work/unison-2.10.2/pixmaps.ml
ocamlopt: uigtk.mli ---> uigtk.cmi
ocamlopt -I lwt -I ubase -I /opt/local/lib/ocaml/lablgtk -c
/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_unison/work/unison-2.10.2/uigtk.mli
ocamlopt: uigtk.ml ---> uigtk.cmx
ocamlopt -I lwt -I ubase -I /opt/local/lib/ocaml/lablgtk -c
/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_unison/work/unison-2.10.2/uigtk.ml
File
"/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_unison/work/unison-2.10.2/uigtk.ml",
line 1609, characters 48-105:
This expression has type unit but is here used with type bool
make: * [uigtk.cmx] Error 2
The reason why unison doesn't build is that the GTK toolkit is no longer supported by the Unison people:
http://groups.yahoo.com/group/unison-users/message/3568
I have updated the Portfile to use GTK2. Patch: