|
| 1 | +opam-version: "2.0" |
| 2 | + |
| 3 | +authors: [ |
| 4 | + "Trevor Jim" |
| 5 | + "Benjamin C. Pierce" |
| 6 | + "Jérôme Vouillon" |
| 7 | +] |
| 8 | +license: "GPL-3.0-or-later" |
| 9 | +homepage: "https://www.cis.upenn.edu/~bcpierce/unison/" |
| 10 | +bug-reports: "https://github.com/bcpierce00/unison/issues" |
| 11 | +dev-repo: "git://github.com/bcpierce00/unison.git" |
| 12 | +patches: ["unison.patch"] |
| 13 | +build: [ |
| 14 | + [make "NATIVE=%{ocaml:native}%" "-j" jobs] {!host-system-msvc:installed} |
| 15 | + ["nmake" "NATIVE=%{ocaml:native}%"] {host-system-msvc:installed} |
| 16 | +] |
| 17 | +install: [ |
| 18 | + [make "install" "PREFIX=%{prefix}%"] {os != "win32"} |
| 19 | + ["cmd" "/c" "copy" "src\\unison*.exe" "%{prefix}%\\bin"] {os = "win32"} |
| 20 | +] |
| 21 | +depends: [ |
| 22 | + "ocaml" {>= "4.08"} |
| 23 | +] |
| 24 | +depopts: [ |
| 25 | + "lablgtk3" {>= "3.1.0"} |
| 26 | + "ocamlfind" |
| 27 | + "host-system-msvc" |
| 28 | +] |
| 29 | +conflicts: [ |
| 30 | + "lablgtk3" {os = "win32"} |
| 31 | +] |
| 32 | +synopsis: "File-synchronization tool for Unix and Windows" |
| 33 | +description: """ |
| 34 | +Unison is a file-synchronization tool for Unix and Windows. It allows |
| 35 | +two replicas of a collection of files and directories to be stored on |
| 36 | +different hosts (or different disks on the same host), modified |
| 37 | +separately, and then brought up to date by propagating the changes in |
| 38 | +each replica to the other.""" |
| 39 | +url { |
| 40 | + src: |
| 41 | + "https://github.com/bcpierce00/unison/archive/refs/tags/v2.53.8.tar.gz" |
| 42 | + checksum: [ |
| 43 | + "md5=30ed70474d660a0a93de74d97ca22d67" |
| 44 | + "sha512=3e4ea9dc23645ff472c3d7bae79cad042a8ec0bbd57c8e28c49d1ad08cb2f177b09c60fec4853b11390d5825be74adb19334fcd7d2167963a05f67729890408a" |
| 45 | + ] |
| 46 | +} |
| 47 | +extra-source "unison.patch" { |
| 48 | + src: |
| 49 | + "https://patch-diff.githubusercontent.com/raw/bcpierce00/unison/pull/1166.diff" |
| 50 | + checksum: [ |
| 51 | + "md5=24c03f83a9a058baf8d19b69d8fbef4c" |
| 52 | + "sha512=6ec72d840240407ef8fd98e2fda176f4f377b8a11d77bc75019d0c3a5b15ad3a6d553bf6b49683f2874984392464396ec5ec1f97908ef9a36912cd96588014de" |
| 53 | + ] |
| 54 | +} |
0 commit comments