From 06a21f757cf305279e44c627b378509c787a9b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B5ivo=20Leedj=C3=A4rv?= Date: Thu, 19 Dec 2024 20:33:36 +0100 Subject: [PATCH] Update unison.opam Include NMAKE build option. Do a manual install for Win32 as there is no automatic installation in a non-POSIX environment. --- unison.opam | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/unison.opam b/unison.opam index ec9b5b12f..eb44b5f7f 100644 --- a/unison.opam +++ b/unison.opam @@ -9,8 +9,14 @@ license: "GPL-3.0-or-later" homepage: "https://www.cis.upenn.edu/~bcpierce/unison/" bug-reports: "https://github.com/bcpierce00/unison/issues" dev-repo: "git://github.com/bcpierce00/unison.git" -build: [make "NATIVE=%{ocaml:native}%" "-j" jobs] -install: [make "NATIVE=%{ocaml:native}%" "PREFIX=%{prefix}%" "install"] +build: [ + [make "NATIVE=%{ocaml:native}%" "-j" jobs] {!host-system-msvc:installed} + ["nmake" "NATIVE=%{ocaml:native}%"] {host-system-msvc:installed} +] +install: [ + [make "install" "PREFIX=%{prefix}%"] {os != "win32"} + ["cmd" "/c" "copy" "src\\unison*.exe" "%{prefix}%\\bin"] {os = "win32"} +] depends: [ "ocaml" {>= "4.08"} ]