-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdkml-component-offline-opam.opam
71 lines (65 loc) · 2.38 KB
/
dkml-component-offline-opam.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "2.2.1"
synopsis: "Offline install of opam"
description: """
Offline install that places opam in the installation directory.
Depending on the end-user's integer size, as reported by Sys.int_size, either 32-bit or 64-bit opam will be installed.
On macOS the end-user target ABI can be either darwin_arm64 or darwin_x86_64 when you have both dkml-base-compiler and
conf-dkml-cross-toolchain installed in your switch, regardless whether your host's ABI is darwin_arm64 or darwin_x86.64.
Otherwise on macOS the target ABI must match the host ABI.
The package version, and what [opam --version] returns, are closely associated with the Opam version from the Opam
source code. The only modifications are to ensure that the package version can be ordered using semver. In particular:
* 2.2.0~alpha~dev -> 2.2.0~alpha0~20221231
* 2.2.0~alpha~1 -> 2.2.0~alpha1~20230601
* 2.2.0 -> 2.2.0
The dates (YYYYMMDD) are the Git commit dates in the Opam source code, and simply replacing the tildes (~) with dashes (-) is
sufficient to be compatible with semver and winget version ordering.
Includes a patch to distinguish MSYS2 from Cygwin, esp. for rsync rather than symlinking which is needed on MSYS2.
"""
maintainer: ["opensource+dkml@support.diskuv.com"]
authors: ["Diskuv, Inc. <opensource+dkml@support.diskuv.com>"]
license: "Apache-2.0"
homepage: "https://github.com/diskuv/dkml-component-opam"
bug-reports: "https://github.com/diskuv/dkml-component-opam/issues"
depends: [
"dune" {>= "2.9"}
"dkml-component-common-opam" {= version}
"dkml-component-staging-opam32" {= version}
"dkml-component-staging-opam64" {= version}
"dkml-component-staging-ocamlrun" {>= "4.12.1~"}
"dkml-install" {>= "0.5.1"}
"diskuvbox" {>= "0.2.0"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/diskuv/dkml-component-opam.git"
install: [
[
"diskuvbox"
"copy-dir"
"assets/staging-files/win32"
"%{_:share}%/staging-files/windows_x86"
]
[
"diskuvbox"
"copy-dir"
"assets/staging-files/win32"
"%{_:share}%/staging-files/windows_x86_64"
]
]