Ticket #21862: Portfile

File Portfile, 2.1 KB (added by cssdev, 15 years ago)

unison-devel port from Unison r390

Line 
1# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $
2
3PortSystem        1.0
4name              unison-devel
5version           2.38.0
6categories        net
7maintainers       openmaintainer
8description       Unison File Synchronizer (development version)
9long_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.
15homepage          http://www.cis.upenn.edu/~bcpierce/unison/
16master_sites      ${homepage}/download/releases/stable/
17platforms         darwin openbsd
18checksums         md5 0701f095c1721776a0454b94607eda48 \
19                  sha1 68ea5709de4fcc2f9aef7b01b24637503b61b5ac \
20                  rmd160 8216a2e482d5a445dd7acdb62e1bb6377e90d1a1
21
22fetch.type        svn
23svn.url           https://webdav.seas.upenn.edu/svn/unison/trunk/
24svn.tag           390
25worksrcdir        trunk
26
27use_configure   no
28use_parallel_build no
29
30post-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
37build.args              UISTYLE=text NATIVE=true THREADS=true
38depends_build   bin:camlp4:ocaml
39
40destroot {
41        xinstall -d -m 0755 ${destroot}/bin
42        xinstall ${worksrcpath}/src/unison ${destroot}${prefix}/bin
43}
44
45variant x11 {
46        depends_lib-append              port:lablgtk2
47
48        build.args-delete               UISTYLE=text
49        build.args-append               UISTYLE=gtk2
50}
51
52variant 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}