this repo has no description
1opam-version: "2.0"
2synopsis: "MSYS2 Environment Settings"
3description: """
4After installation, the package's variables indicate which MSYS2 Environment is
5active.
6
7- msys2:msystem (exported as MSYSTEM) is the MSYS2 Environment Name.
8- msys2:carch (exported as MSYSTEM_CARCH) is the compiler's target architecture
9 (i686, x86_64 or aarch64),
10- msys2:chost (exported as MSYSTEM_CHOST and MINGW_CHOST) is the compiler's
11 target triplet ("%{msys2:carch}%-w64-mingw32").
12- msys2:root (exported as MSYSTEM_PREFIX and MINGW_PREFIX) is the Unix path to
13 the root of the MSYS2 Environment.
14- msys2:package-prefix (exported as MINGW_PACKAGE_PREFIX) is the prefix used for
15 MSYS2 Pacman packages for this Environment.
16
17Additionally, Path, MANPATH and INFOPATH are all updated with the appropriate
18directories from msys2:root. PKG_CONFIG_PATH, PKG_CONFIG_SYSTEM_INCLUDE_PATH,
19PKG_CONFIG_SYSTEM_LIBRARY_PATH and ACLOCAL_PATH are all _set_ to the appropriate
20values for msys2:root. Finally, CONFIG_SITE is exported as /etc/config.site as
21per MSYS2's own configuration.
22
23See https://www.msys2.org/docs/environments/ for further information."""
24maintainer: "David Allsopp <david@tarides.com>"
25authors: "David Allsopp"
26license: "CC0-1.0+"
27homepage: "https://opam.ocaml.org"
28bug-reports: "https://github.com/ocaml/opam-repository/issues"
29flags: compiler
30available: os = "win32" & os-distribution = "msys2"
31dev-repo: "git+https://github.com/dra27/msys2-opam.git"
32build: [
33 ["sh" "./gen_config.sh" name
34 "CLANG32" {msys2-clang32:installed}
35 "CLANG64" {msys2-clang64:installed}
36 "CLANGARM64" {msys2-clangarm64:installed}
37 "MINGW32" {msys2-mingw32:installed}
38 "MINGW64" {msys2-mingw64:installed}
39 "UCRT64" {msys2-ucrt64:installed}]
40]
41depends:
42 ("msys2-clang32" |
43 "msys2-clang64" |
44 "msys2-clangarm64" |
45 "msys2-mingw32" |
46 "msys2-mingw64" |
47 "msys2-ucrt64")
48setenv: [
49 [ CONFIG_SITE = "/etc/config.site" ]
50 [ MSYSTEM = "%{_:msystem}%" ]
51 [ MSYSTEM_CARCH = "%{_:carch}%" ]
52 [ MSYSTEM_CHOST = "%{_:chost}%" ]
53 [ MSYSTEM_PREFIX = "%{_:root}%" ]
54 [ MINGW_CHOST = "%{_:chost}%" ]
55 [ MINGW_PREFIX = "%{_:root}%" ]
56 [ MINGW_PACKAGE_PREFIX = "%{_:package-prefix}%" ]
57 [ PATH += "%{_:native-root}%/bin" ]
58 [ MANPATH += "%{_:root}%/local/man" ]
59 [ MANPATH += "%{_:root}%/share/man" ]
60 [ INFOPATH += "%{_:root}%/local/info" ]
61 [ INFOPATH += "%{_:root}%/share/info" ]
62 [ PKG_CONFIG_PATH = "%{_:root}%/lib/pkgconfig:%{_:root}%/share/pkgconfig" ]
63 [ PKG_CONFIG_SYSTEM_INCLUDE_PATH = "%{_:root}%/include" ]
64 [ PKG_CONFIG_SYSTEM_LIBRARY_PATH = "%{_:root}%/lib" ]
65 [ ACLOCAL_PATH = "%{_:root}%/share/aclocal:%{_:root}%/usr/share/aclocal" ]
66]
67x-env-path-rewrite: [
68 [ PATH ";" "target-quoted" ]
69 [ MANPATH ":" "host" ]
70 [ INFOPATH ":" "host" ]
71 [ PKG_CONFIG_PATH false ]
72 [ PKG_CONFIG_SYSTEM_INCLUDE_PATH false ]
73 [ PKG_CONFIG_SYSTEM_LIBRARY_PATH false ]
74 [ ACLOCAL_PATH false ]
75]
76url {
77 src:
78 "https://github.com/dra27/msys2-opam/archive/refs/tags/0.1.0.tar.gz"
79 checksum: [
80 "sha256=9532eb3711376d8437d95abbf91875755a933882ec58b4b5f2318e8a1d6f312c"
81 "sha512=bcf3adbec1dfe065785f36e27fa84a7de72dea71d0cb0a63b2fb9fd89fac9db5455caa6aafeec7ce98317438677aacb77e6e28b24ba67481b19ebe45dca98cc4"
82 ]
83}