| 1 | # $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | name unison-devel |
|---|
| 5 | version 2.38.0 |
|---|
| 6 | categories net |
|---|
| 7 | maintainers openmaintainer |
|---|
| 8 | description Unison File Synchronizer (development version) |
|---|
| 9 | long_description Unison is a file-synchronization tool for Unix and \ |
|---|
| 10 | Windows. It allows two replicas of a collection of \ |
|---|
| 11 | files and directories to be stored on different hosts \ |
|---|
| 12 | (or different disks on the same host), modified \ |
|---|
| 13 | separately, and then brought up to date by propagating \ |
|---|
| 14 | the changes in each replica to the other. |
|---|
| 15 | homepage http://www.cis.upenn.edu/~bcpierce/unison/ |
|---|
| 16 | master_sites ${homepage}/download/releases/stable/ |
|---|
| 17 | platforms darwin openbsd |
|---|
| 18 | checksums md5 0701f095c1721776a0454b94607eda48 \ |
|---|
| 19 | sha1 68ea5709de4fcc2f9aef7b01b24637503b61b5ac \ |
|---|
| 20 | rmd160 8216a2e482d5a445dd7acdb62e1bb6377e90d1a1 |
|---|
| 21 | |
|---|
| 22 | fetch.type svn |
|---|
| 23 | svn.url https://webdav.seas.upenn.edu/svn/unison/trunk/ |
|---|
| 24 | svn.tag 390 |
|---|
| 25 | worksrcdir trunk |
|---|
| 26 | |
|---|
| 27 | use_configure no |
|---|
| 28 | use_parallel_build no |
|---|
| 29 | |
|---|
| 30 | post-patch { |
|---|
| 31 | reinplace "s|/usr/bin/unison|${prefix}/bin/unison|g" \ |
|---|
| 32 | ${worksrcpath}/src/uimacnew/MyController.m |
|---|
| 33 | reinplace "s|ARCHS=x86_64|ARCHS=${configure.build_arch}|g" \ |
|---|
| 34 | ${worksrcpath}/src/Makefile.OCaml |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | build.args UISTYLE=text NATIVE=true THREADS=true |
|---|
| 38 | depends_build bin:camlp4:ocaml |
|---|
| 39 | |
|---|
| 40 | destroot { |
|---|
| 41 | xinstall -d -m 0755 ${destroot}/bin |
|---|
| 42 | xinstall ${worksrcpath}/src/unison ${destroot}${prefix}/bin |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | variant x11 { |
|---|
| 46 | depends_lib-append port:lablgtk2 |
|---|
| 47 | |
|---|
| 48 | build.args-delete UISTYLE=text |
|---|
| 49 | build.args-append UISTYLE=gtk2 |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | variant aqua { |
|---|
| 53 | build.args-delete UISTYLE=text |
|---|
| 54 | build.args-append UISTYLE=macnew |
|---|
| 55 | destroot { |
|---|
| 56 | xinstall -d -m 0755 ${destroot}/Applications/MacPorts |
|---|
| 57 | file copy ${worksrcpath}/src/uimacnew/build/Default/Unison.app \ |
|---|
| 58 | ${destroot}/Applications/MacPorts/ |
|---|
| 59 | xinstall ${worksrcpath}/src/uimacnew/build/Default/Unison.app/Contents/MacOS/cltool \ |
|---|
| 60 | ${destroot}${prefix}/bin/unison |
|---|
| 61 | } |
|---|
| 62 | } |
|---|