[MacPorts] #3770: UPDATE: unison 2.12.0

MacPorts noreply at macports.org
Thu Mar 24 07:05:38 PDT 2016


#3770: UPDATE: unison 2.12.0
------------------------+-----------------------------
  Reporter:  benwill@…  |      Owner:  julien.touche@…
      Type:  update     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  1.0
Resolution:  fixed      |   Keywords:
      Port:  unison     |
------------------------+-----------------------------
Changes (by ryandesign@…):

 * type:  defect => update
 * port:   => unison


Old description:

> 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 at 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

New description:

 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 at 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
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/3770#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list