Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions packages/unison-gui/unison-gui.2.53.8/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
opam-version: "2.0"
maintainer: "[email protected]"
authors: [
"Trevor Jim"
"Benjamin C. Pierce"
"Jérôme Vouillon"
]
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"
depends: [
"unison" {= version}
"lablgtk3"
"ocamlfind"
]
available: os != "win32"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just built and run unison-gui on 5.4.0 mingw-w64 on my machine, so this definitely isn't necessary:

Suggested change
available: os != "win32"

synopsis: "Pseudo-package for Unison GUI"
description: """
Unison is a file-synchronization tool for Unix and Windows. It allows
two replicas of a collection of files and directories to be stored on
different hosts (or different disks on the same host), modified
separately, and then brought up to date by propagating the changes in
each replica to the other."""
url {
src:
"https://github.com/bcpierce00/unison/archive/refs/tags/v2.53.8.tar.gz"
checksum: [
"md5=30ed70474d660a0a93de74d97ca22d67"
"sha512=3e4ea9dc23645ff472c3d7bae79cad042a8ec0bbd57c8e28c49d1ad08cb2f177b09c60fec4853b11390d5825be74adb19334fcd7d2167963a05f67729890408a"
]
}
54 changes: 54 additions & 0 deletions packages/unison/unison.2.53.8/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
opam-version: "2.0"
maintainer: "[email protected]"
authors: [
"Trevor Jim"
"Benjamin C. Pierce"
"Jérôme Vouillon"
]
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"
patches: ["unison.patch"]
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"}
]
depopts: [
"lablgtk3" {>= "3.1.0"}
"ocamlfind"
"host-system-msvc"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't be right - if the host-system- package changes, the entire switch will rebuild anyway:

Suggested change
"host-system-msvc"

]
conflicts: [
"lablgtk3" {os = "win32"}
]
Comment on lines +29 to +31
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
conflicts: [
"lablgtk3" {os = "win32"}
]

synopsis: "File-synchronization tool for Unix and Windows"
description: """
Unison is a file-synchronization tool for Unix and Windows. It allows
two replicas of a collection of files and directories to be stored on
different hosts (or different disks on the same host), modified
separately, and then brought up to date by propagating the changes in
each replica to the other."""
url {
src:
"https://github.com/bcpierce00/unison/archive/refs/tags/v2.53.8.tar.gz"
checksum: [
"md5=30ed70474d660a0a93de74d97ca22d67"
"sha512=3e4ea9dc23645ff472c3d7bae79cad042a8ec0bbd57c8e28c49d1ad08cb2f177b09c60fec4853b11390d5825be74adb19334fcd7d2167963a05f67729890408a"
]
}
extra-source "unison.patch" {
src:
"https://patch-diff.githubusercontent.com/raw/bcpierce00/unison/pull/1166.diff"
checksum: [
"md5=24c03f83a9a058baf8d19b69d8fbef4c"
"sha512=6ec72d840240407ef8fd98e2fda176f4f377b8a11d77bc75019d0c3a5b15ad3a6d553bf6b49683f2874984392464396ec5ec1f97908ef9a36912cd96588014de"
Comment on lines +49 to +52
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably have a linter for this - adding ?full_index uses the full shas in the resulting diff, which stabilizes the patch over time (cf. #23849)

Suggested change
"https://patch-diff.githubusercontent.com/raw/bcpierce00/unison/pull/1166.diff"
checksum: [
"md5=24c03f83a9a058baf8d19b69d8fbef4c"
"sha512=6ec72d840240407ef8fd98e2fda176f4f377b8a11d77bc75019d0c3a5b15ad3a6d553bf6b49683f2874984392464396ec5ec1f97908ef9a36912cd96588014de"
"https://patch-diff.githubusercontent.com/raw/bcpierce00/unison/pull/1166.diff?full_index=1"
checksum: [
"md5=79801715d7b346374cbbe61dc5b3808d"
"sha512=80e0f4e39d2b0156aa6f20925760c2502f2ff8f95d0f936b5974188603a9abf4938e67522e9b317605fcc6e55a401efdc4ae912ddf98f79cd2fe60a4e9680445"

]
}